From 0c6ee34d001f314f27350fa5f386a4575eabdd55 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 Oct 2015 03:19:25 +0000 Subject: [PATCH] REST API: add a utility function, `mysql_to_rfc3339()` to `functions.php` Background: https://github.com/WP-API/WP-API/commit/6d0ad766ca525c7a3aee921b66554ddf21a5c023 Props rmmcue. See #33982. Built from https://develop.svn.wordpress.org/trunk@34846 git-svn-id: http://core.svn.wordpress.org/trunk@34811 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 24 +++++++++++++++++++++--- wp-includes/version.php | 2 +- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b6158ed261..b2972d2435 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -680,15 +680,15 @@ function _http_build_query( $data, $prefix = null, $sep = null, $key = '', $urle * add_query_arg( 'key', 'value', 'http://example.com' ); * * Using an associative array: - * + * * add_query_arg( array( * 'key1' => 'value1', * 'key2' => 'value2', * ), 'http://example.com' ); - * + * * Omitting the URL from either use results in the current URL being used * (the value of `$_SERVER['REQUEST_URI']`). - * + * * Values are expected to be encoded appropriately with urlencode() or rawurlencode(). * * Setting any query variable's value to boolean false removes the key (see remove_query_arg()). @@ -5022,3 +5022,21 @@ function wp_post_preview_js() {