Changeset 38125
- Timestamp:
- 07/20/2016 07:32:05 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r37985 r38125 3598 3598 * 3599 3599 * @since 2.9.0 3600 * @since 4.6.0 Adjusted to use `wp_get_canonical_url()`.3600 * @since 4.6.0 Adjusted to use wp_get_canonical_url(). 3601 3601 */ 3602 3602 function rel_canonical() { -
trunk/src/wp-includes/meta.php
r38108 r38125 1096 1096 * @since 4.6.0 1097 1097 * 1098 * @param string $object_type The type of object. 1099 * @param string $meta_key The meta key. 1100 * 1098 * @param string $object_type The type of object. 1099 * @param string $meta_key The meta key. 1101 1100 * @return bool True if successful. False if the meta key was not registered. 1102 1101 */ … … 1134 1133 * 1135 1134 * @param string $object_type The type of object. Post, comment, user, term. 1136 *1137 1135 * @return array List of registered meta keys. 1138 1136 */ … … 1156 1154 * @param string $meta_key Optional. Registered metadata key. If not specified, retrieve all registered 1157 1155 * metadata for the specified object. 1158 *1159 1156 * @return mixed A single value or array of values for a key if specified. An array of all registered keys 1160 1157 * and values for an object ID if not. -
trunk/src/wp-includes/ms-blogs.php
r38055 r38125 462 462 * @since 4.6.0 463 463 * 464 * @param int $id Blog ID.465 * @param WP_Site $blog 464 * @param int $id Blog ID. 465 * @param WP_Site $blog Site object. 466 466 * @param string $domain_path_key md5 hash of domain and path. 467 467 */ … … 521 521 * 522 522 * @see update_site_cache() 523 *524 523 * @global wpdb $wpdb WordPress database abstraction object. 525 524 * … … 1090 1089 * @global WP_Network $current_site 1091 1090 * 1092 * @param WP_Network|int|null $network Network to retrieve .1091 * @param WP_Network|int|null $network Network to retrieve, passed by reference. 1093 1092 * @return WP_Network|null The network object or null if not found. 1094 1093 */ -
trunk/src/wp-includes/ms-load.php
r37985 r38125 138 138 * @since 3.9.0 139 139 * @since 4.4.0 Converted to leverage WP_Network 140 * @since 4.6.0 Converted to use `get_network()`140 * @since 4.6.0 Converted to use get_network() 141 141 * 142 142 * @param object|int $network The network's database row or ID. … … 284 284 * @param string $domain The requested domain. 285 285 * @param string $path The requested path. 286 * @param bool $subdomain Whether a subdomain (true) or subdirectory (false) configuration. 286 * @param bool $subdomain Optional. Whether a subdomain (true) or subdirectory (false) configuration. 287 * Default false. 287 288 * @return bool|string True if bootstrap successfully populated `$current_blog` and `$current_site`. 288 289 * False if bootstrap could not be properly completed. -
trunk/src/wp-includes/plugin.php
r38061 r38125 670 670 * @param array $args Array of additional function arguments to be passed to apply_filters(). 671 671 * @param string $version The version of WordPress that deprecated the hook. 672 * @param string $replacement Optional. The hook that should have been used. 673 * @param string $message Optional. A message regarding the change. 672 * @param string $replacement Optional. The hook that should have been used. Default false. 673 * @param string $message Optional. A message regarding the change. Default null. 674 674 */ 675 675 function apply_filters_deprecated( $tag, $args, $version, $replacement = false, $message = null ) { … … 1004 1004 1005 1005 /** 1006 * Back up global variables used for actions and filters.1006 * Backs up global variables used for actions and filters. 1007 1007 * 1008 1008 * Prevents redefinition of these globals in advanced-cache.php from accidentally … … 1017 1017 * @global array $wp_current_filter Stores the list of current filters with the current one last. 1018 1018 * @staticvar array $backup_globals Backed up globals. 1019 * 1019 1020 * @return array the staticvar from the first time it is set. 1020 1021 */ 1021 1022 function _backup_plugin_globals(){ 1022 1023 global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter; 1024 1023 1025 static $backup_globals = array(); 1026 1024 1027 if ( empty( $backup_globals ) ) { 1025 1028 $backup_globals = array( … … 1034 1037 1035 1038 /** 1036 * Safely restore backed up global variables used for actions and filters.1039 * Safely restores backed up global variables used for actions and filters. 1037 1040 * 1038 1041 * @since 4.6.0 … … 1047 1050 function _restore_plugin_globals(){ 1048 1051 global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter; 1052 1049 1053 $backup_globals = _backup_plugin_globals(); 1054 1050 1055 if ( $wp_filter !== $backup_globals['backup_wp_filter'] ){ 1051 1056 $wp_filter = array_merge_recursive( $wp_filter, $backup_globals['backup_wp_filter'] ); -
trunk/src/wp-includes/post.php
r38118 r38125 4317 4317 * 4318 4318 * @since 1.5.0 4319 * @since 4.6.0 The $page parameter isoptional.4319 * @since 4.6.0 Converted the `$page` parameter to optional. 4320 4320 * 4321 4321 * @param WP_Post|object|int $page Optional. Page ID or WP_Post object. Default is global $post. … … 4956 4956 * @since 4.6.0 4957 4957 * 4958 * @param int $post_id Optional. Attachment ID. Default 0.4958 * @param int $post_id Optional. Attachment ID. Default is the ID of the global `$post`. 4959 4959 * @return string|false False on failure. Attachment caption on success. 4960 4960 */ -
trunk/src/wp-includes/query.php
r37985 r38125 1474 1474 * Introduced the `$comment_status` and `$ping_status` parameters. 1475 1475 * Introduced `RAND(x)` syntax for `$orderby`, which allows an integer seed value to random sorts. 1476 * @since 4.6.0 Added 'post_name__in' support for `$orderby`. Introduced `$lazy_load_term_meta`.1476 * @since 4.6.0 Added 'post_name__in' support for `$orderby`. Introduced the `$lazy_load_term_meta` argument. 1477 1477 * @access public 1478 1478 * -
trunk/src/wp-includes/script-loader.php
r38119 r38125 919 919 * 920 920 * @link http://api.jqueryui.com/datepicker/#options 921 * 921 922 * @global WP_Locale $wp_locale The WordPress date and time locale object. 922 923 */ -
trunk/src/wp-includes/taxonomy.php
r38077 r38125 1226 1226 * 1227 1227 * @since 2.3.0 1228 * @since 4.6.0 Added `$term_query`.1228 * @since 4.6.0 Added the `$term_query` parameter. 1229 1229 * 1230 1230 * @param array $terms Array of found terms. -
trunk/src/wp-includes/user.php
r37985 r38125 2334 2334 2335 2335 /** 2336 * Initiate email notifications related to the creation of new users.2336 * Initiates email notifications related to the creation of new users. 2337 2337 * 2338 2338 * Notifications are sent both to the site admin and to the newly created user. 2339 2339 * 2340 2340 * @since 4.4.0 2341 * @since 4.6.0 The `$notify` parameter accepts 'user' for sending notification only to the user created. 2341 * @since 4.6.0 Converted the `$notify` parameter to accept 'user' for sending 2342 * notifications only to the user created. 2342 2343 * 2343 2344 * @param int $user_id ID of the newly created user. 2344 * @param string $notify Optional. Type of notification that should happen. Accepts 'admin' or an empty string 2345 * (admin only), 'user', or 'both' (admin and user). Default 'both'. 2345 * @param string $notify Optional. Type of notification that should happen. Accepts 'admin' 2346 * or an empty string (admin only), 'user', or 'both' (admin and user). 2347 * Default 'both'. 2346 2348 */ 2347 2349 function wp_send_new_user_notifications( $user_id, $notify = 'both' ) { -
trunk/src/wp-includes/wp-db.php
r37985 r38125 757 757 758 758 /** 759 * Given a charset and collation, determine the best charset and collation to use.759 * Determines the best charset and collation to use given a charset and collation. 760 760 * 761 761 * For example, when able, utf8mb4 should be used instead of utf8. 762 762 * 763 763 * @since 4.6.0 764 * 765 * @param string $charset The character set to check.766 * @param string $collate The collationto check.767 * 764 * @access public 765 * 766 * @param string $charset The character set to check. 767 * @param string $collate The collation to check. 768 768 * @return array The most appropriate character set and collation to use. 769 769 */ … … 3237 3237 * 3238 3238 * @since 2.7.0 3239 * @since 4.1.0 Support was addedfor the 'utf8mb4' feature.3240 * @since 4.6.0 Support was addedfor the 'utf8mb4_520' feature.3239 * @since 4.1.0 Added support for the 'utf8mb4' feature. 3240 * @since 4.6.0 Added support for the 'utf8mb4_520' feature. 3241 3241 * 3242 3242 * @see wpdb::db_version() … … 3277 3277 return version_compare( $client_version, '5.5.3', '>=' ); 3278 3278 } 3279 case 'utf8mb4_520' : 3279 case 'utf8mb4_520' : // @since 4.6.0 3280 3280 return version_compare( $version, '5.6', '>=' ); 3281 3281 }
Note: See TracChangeset
for help on using the changeset viewer.