From ceec5ac00b406e00d6a0a19be4b1fc20cdf4992d Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 13 Jul 2015 21:35:24 +0000 Subject: [PATCH] Fix inline documentation syntax for a few general-purpose functions and hooks added in 4.3. * `_deprecated_constructor()` See [32989] * `deprecated_constructor_trigger_error` See [32989] * `get_main_network_id()` See [32775] * `wp_post_preview_js()` See [32809] See #32891. Built from https://develop.svn.wordpress.org/trunk@33226 git-svn-id: http://core.svn.wordpress.org/trunk@33198 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 8 +++++--- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 33619fa458..30fac47480 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3421,12 +3421,11 @@ function _deprecated_function( $function, $version, $replacement = null ) { * Similar to _deprecated_function(), but with different strings. Used to * remove PHP4 style constructors. * - * The current behavior is to trigger a user error if WP_DEBUG is true. + * The current behavior is to trigger a user error if `WP_DEBUG` is true. * * This function is to be used in every PHP4 style constructor method that is deprecated. * * @since 4.3.0 - * * @access private * * @param string $class The class containing the deprecated constructor. @@ -3447,6 +3446,8 @@ function _deprecated_constructor( $class, $version ) { /** * Filter whether to trigger an error for deprecated functions. * + * `WP_DEBUG` must be true in addition to the filter evaluating to true. + * * @since 4.3.0 * * @param bool $trigger Whether to trigger the error for deprecated functions. Default true. @@ -3943,7 +3944,7 @@ function is_main_network( $network_id = null ) { * * @since 4.3.0 * - * @global wpdb $wpdb + * @global wpdb $wpdb WordPress database abstraction object. * * @return int The ID of the main network. */ @@ -4963,6 +4964,7 @@ function wp_delete_file( $file ) { /** * Outputs a small JS snippet on preview tabs/windows to remove `window.name` on unload. + * * This prevents reusing the same tab for a preview when the user has navigated away. * * @since 4.3.0 diff --git a/wp-includes/version.php b/wp-includes/version.php index dd0ea883aa..9c74c5b5cf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-beta2-33225'; +$wp_version = '4.3-beta2-33226'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.