From 5d0718497c75c1f98b7bcabfc105e1c51b18b6fb Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 Oct 2015 03:18:45 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@34846 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index b6158ed261..b2972d2435 100644 --- a/src/wp-includes/functions.php +++ b/src/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() {