From 439fe480100e8dc211066aae278722b823a2f08a Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 30 Nov 2014 11:53:22 +0000 Subject: [PATCH] Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-includes/option.php. Affects DocBlocks for the following hooks: * `pre_option_ . $option` * `default_option_ . $option` * `option_ . $option` * `pre_update_option_ . $option` * `update_option_{$option}` * `add_option_{$option}` * `delete_option_$option` * `delete_transient_ . $transient` * `pre_transient_ . $transient` * `transient_ . $transient` * `pre_set_transient_ . $transient` * `set_transient_ . $transient` * `pre_site_option_ . $option` * `default_site_option_ . $option` * `site_option_ . $option` * `pre_add_site_option_ . $option` * `add_site_option_{$option}` * `pre_delete_site_option_ . $option` * `delete_site_option_{$option}` * `pre_update_site_option_ . $option` * `update_site_option_{$option}` * `delete_site_transient_ . $transient` * `pre_site_transient_ . $transient` * `site_transient_ . $transient` * `pre_set_site_transient_ . $transient` * `set_site_transient_ . $transient` See #30552. Built from https://develop.svn.wordpress.org/trunk@30652 git-svn-id: http://core.svn.wordpress.org/trunk@30642 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/option.php | 57 ++++++++++++++++++++--------------------- wp-includes/version.php | 2 +- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/wp-includes/option.php b/wp-includes/option.php index 3a217ddc48..cff542adaf 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -32,7 +32,7 @@ function get_option( $option, $default = false ) { /** * Filter the value of an existing option before it is retrieved. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * Passing a truthy value to the filter will short-circuit retrieving * the option value, returning the passed value instead. @@ -57,13 +57,12 @@ function get_option( $option, $default = false ) { /** * Filter the default value for an option. * - * The dynamic portion of the hook name, $option, refers - * to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 3.4.0 * - * @param mixed $default The default value to return if the option - * does not exist in the database. + * @param mixed $default The default value to return if the option does not exist + * in the database. */ return apply_filters( 'default_option_' . $option, $default ); @@ -112,7 +111,7 @@ function get_option( $option, $default = false ) { /** * Filter the value of an existing option. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 1.5.0 As 'option_' . $setting * @since 3.0.0 @@ -245,7 +244,7 @@ function update_option( $option, $value ) { /** * Filter a specific option before its value is (maybe) serialized and updated. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.6.0 * @@ -308,7 +307,7 @@ function update_option( $option, $value ) { /** * Fires after the value of a specific option has been successfully updated. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.0.1 * @@ -410,7 +409,7 @@ function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) /** * Fires after a specific option has been added. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.5.0 As "add_option_{$name}" * @since 3.0.0 @@ -480,7 +479,7 @@ function delete_option( $option ) { /** * Fires after a specific option has been deleted. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 3.0.0 * @@ -514,7 +513,7 @@ function delete_transient( $transient ) { /** * Fires immediately before a specific transient is deleted. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * @since 3.0.0 * @@ -563,7 +562,7 @@ function get_transient( $transient ) { /** * Filter the value of an existing transient. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * Passing a truthy value to the filter will effectively short-circuit retrieval * of the transient, returning the passed value instead. @@ -602,7 +601,7 @@ function get_transient( $transient ) { /** * Filter an existing transient's value. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * @since 2.8.0 * @@ -631,7 +630,7 @@ function set_transient( $transient, $value, $expiration = 0 ) { /** * Filter a specific transient before its value is set. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * @since 3.0.0 * @@ -678,7 +677,7 @@ function set_transient( $transient, $value, $expiration = 0 ) { /** * Fires after the value for a specific transient has been set. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * @since 3.0.0 * @@ -933,7 +932,7 @@ function get_site_option( $option, $default = false, $use_cache = true ) { /** * Filter an existing site option before it is retrieved. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * Passing a truthy value to the filter will effectively short-circuit retrieval, * returning the passed value instead. @@ -957,7 +956,7 @@ function get_site_option( $option, $default = false, $use_cache = true ) { /** * Filter a specific default site option. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 3.4.0 * @@ -998,7 +997,7 @@ function get_site_option( $option, $default = false, $use_cache = true ) { /** * Filter the value of an existing site option. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.9.0 As 'site_option_' . $key * @since 3.0.0 @@ -1029,7 +1028,7 @@ function add_site_option( $option, $value ) { /** * Filter the value of a specific site option before it is added. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.9.0 As 'pre_add_site_option_' . $key * @since 3.0.0 @@ -1074,7 +1073,7 @@ function add_site_option( $option, $value ) { /** * Fires after a specific site option has been successfully added. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.9.0 As "add_site_option_{$key}" * @since 3.0.0 @@ -1117,7 +1116,7 @@ function delete_site_option( $option ) { /** * Fires immediately before a specific site option is deleted. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 3.0.0 */ @@ -1140,7 +1139,7 @@ function delete_site_option( $option ) { /** * Fires after a specific site option has been deleted. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.9.0 As "delete_site_option_{$key}" * @since 3.0.0 @@ -1184,7 +1183,7 @@ function update_site_option( $option, $value ) { /** * Filter a specific site option before its value is updated. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.9.0 As 'pre_update_site_option_' . $key * @since 3.0.0 @@ -1226,7 +1225,7 @@ function update_site_option( $option, $value ) { /** * Fires after the value of a specific site option has been successfully updated. * - * The dynamic portion of the hook name, $option, refers to the option name. + * The dynamic portion of the hook name, `$option`, refers to the option name. * * @since 2.9.0 As "update_site_option_{$key}" * @since 3.0.0 @@ -1266,7 +1265,7 @@ function delete_site_transient( $transient ) { /** * Fires immediately before a specific site transient is deleted. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * @since 3.0.0 * @@ -1316,7 +1315,7 @@ function get_site_transient( $transient ) { /** * Filter the value of an existing site transient. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * Passing a truthy value to the filter will effectively short-circuit retrieval, * returning the passed value instead. @@ -1355,7 +1354,7 @@ function get_site_transient( $transient ) { /** * Filter the value of an existing site transient. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * @since 2.9.0 * @@ -1385,7 +1384,7 @@ function set_site_transient( $transient, $value, $expiration = 0 ) { /** * Filter the value of a specific site transient before it is set. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * @since 3.0.0 * @@ -1415,7 +1414,7 @@ function set_site_transient( $transient, $value, $expiration = 0 ) { /** * Fires after the value for a specific site transient has been set. * - * The dynamic portion of the hook name, $transient, refers to the transient name. + * The dynamic portion of the hook name, `$transient`, refers to the transient name. * * @since 3.0.0 * diff --git a/wp-includes/version.php b/wp-includes/version.php index d313a267fe..fe7475e41f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30651'; +$wp_version = '4.1-beta2-30652'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.