Changeset 48574
- Timestamp:
- 07/23/2020 12:50:57 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r48561 r48574 1300 1300 * @since 5.2.0 1301 1301 * 1302 * @param array $info_array Information gathered from the `WP_Debug_Data::debug_data` function.1303 * @param string $type The data type to return, either 'info' or 'debug'.1302 * @param array $info_array Information gathered from the `WP_Debug_Data::debug_data` function. 1303 * @param string $type The data type to return, either 'info' or 'debug'. 1304 1304 * @return string The formatted data. 1305 1305 */ -
trunk/src/wp-admin/includes/class-wp-screen.php
r48508 r48574 468 468 * 469 469 * @param WP_Screen $screen A screen object. 470 * @param string $helpHelp text.470 * @param string $help Help text. 471 471 */ 472 472 public static function add_old_compat_help( $screen, $help ) { … … 497 497 * @since 3.3.0 498 498 * 499 * @param string $option Option ID 500 * @param mixed $argsOption-dependent arguments.499 * @param string $option Option ID. 500 * @param mixed $args Option-dependent arguments. 501 501 */ 502 502 public function add_option( $option, $args = array() ) { -
trunk/src/wp-admin/includes/image.php
r48508 r48574 8 8 9 9 /** 10 * Crop an Image to a given size.10 * Crops an image to a given size. 11 11 * 12 12 * @since 2.1.0 -
trunk/src/wp-admin/includes/list-table.php
r48104 r48574 71 71 * @since 2.7.0 72 72 * 73 * @param string $screenThe handle for the screen to add help to. This is usually the hook name returned by the73 * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the 74 74 * add_*_page() functions. 75 75 * @param string[] $columns An array of columns with column IDs as the keys and translated column names as the values. -
trunk/src/wp-admin/includes/meta-boxes.php
r48436 r48574 18 18 * @global string $action 19 19 * 20 * @param WP_Post 21 * @param array 20 * @param WP_Post $post Current post object. 21 * @param array $args { 22 22 * Array of arguments for building the post submit meta box. 23 23 * … … 1186 1186 * @param string $class 1187 1187 * @param string $value 1188 * @param mixed $deprecated Never used.1188 * @param mixed $deprecated Never used. 1189 1189 */ 1190 1190 function xfn_check( $class, $value = '', $deprecated = '' ) { -
trunk/src/wp-admin/includes/misc.php
r48420 r48574 1191 1191 * @since 5.0.0 1192 1192 * 1193 * @param array $responseThe Heartbeat response.1193 * @param array $response The Heartbeat response. 1194 1194 * @return array The Heartbeat response. 1195 1195 */ -
trunk/src/wp-admin/includes/plugin.php
r48566 r48574 859 859 * @param bool $network_wide Whether to enable the plugin for all sites in the network. 860 860 * Default false. 861 * @param bool $silentPrevent calling activation hooks. Default false.861 * @param bool $silent Prevent calling activation hooks. Default false. 862 862 * @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation. 863 863 */ -
trunk/src/wp-admin/includes/post.php
r48529 r48574 14 14 * @since 2.6.0 15 15 * 16 * @param bool $updateAre we updating a pre-existing post?16 * @param bool $update Are we updating a pre-existing post? 17 17 * @param array $post_data Array of post data. Defaults to the contents of $_POST. 18 18 * @return array|WP_Error Array of post data on success, WP_Error on failure. … … 1506 1506 1507 1507 /** 1508 * Output HTML for the post thumbnail meta-box.1508 * Returns HTML for the post thumbnail meta box. 1509 1509 * 1510 1510 * @since 2.9.0 1511 1511 * 1512 * @param int $thumbnail_id ID of the attachment used for thumbnail1513 * @param int|WP_Post $post Optional. The post ID or object associated with the thumbnail, defaults to global $post.1514 * @return string html1512 * @param int $thumbnail_id ID of the attachment used for thumbnail 1513 * @param int|WP_Post $post Optional. The post ID or object associated with the thumbnail, defaults to global $post. 1514 * @return string The post thumbnail HTML. 1515 1515 */ 1516 1516 function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { -
trunk/src/wp-admin/includes/privacy-tools.php
r48330 r48574 219 219 * @since 5.4.0 Added the `$group_id` and `$groups_count` parameters. 220 220 * 221 * @param array $group_data {221 * @param array $group_data { 222 222 * The group data to render. 223 223 * -
trunk/src/wp-admin/includes/screen.php
r48109 r48574 198 198 * 199 199 * @param string $option An option name. 200 * @param mixed $argsOption-dependent arguments.200 * @param mixed $args Option-dependent arguments. 201 201 */ 202 202 function add_screen_option( $option, $args = array() ) { -
trunk/src/wp-admin/includes/template.php
r48573 r48574 1796 1796 * @global array $wp_settings_errors Storage array of errors registered during this pageload 1797 1797 * 1798 * @param string $setting Optional slug title of a specific setting whose errors you want.1799 * @param bool ean $sanitizeWhether to re-sanitize the setting value before returning errors.1798 * @param string $setting Optional. Slug title of a specific setting whose errors you want. 1799 * @param bool $sanitize Optional. Whether to re-sanitize the setting value before returning errors. 1800 1800 * @return array Array of settings errors. 1801 1801 */ -
trunk/src/wp-admin/users.php
r48352 r48574 248 248 * @since 5.2.0 249 249 * 250 * @param bool ean$users_have_additional_content Whether the users have additional content. Default false.251 * @param int[] 250 * @param bool $users_have_additional_content Whether the users have additional content. Default false. 251 * @param int[] $userids Array of IDs for users being deleted. 252 252 */ 253 253 $users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $userids ); -
trunk/src/wp-comments-post.php
r47887 r48574 51 51 * @param WP_Comment $comment Comment object. 52 52 * @param WP_User $user Comment author's user object. The user may not exist. 53 * @param bool ean$cookies_consent Comment author's consent to store cookies.53 * @param bool $cookies_consent Comment author's consent to store cookies. 54 54 */ 55 55 do_action( 'set_comment_cookies', $comment, $user, $cookies_consent ); -
trunk/src/wp-includes/category-template.php
r48197 r48574 1083 1083 $walker = new Walker_Category; 1084 1084 } else { 1085 /** 1086 * @var Walker $walker 1087 */ 1085 1088 $walker = $args[2]['walker']; 1086 1089 } … … 1106 1109 $walker = new Walker_CategoryDropdown; 1107 1110 } else { 1111 /** 1112 * @var Walker $walker 1113 */ 1108 1114 $walker = $args[2]['walker']; 1109 1115 } -
trunk/src/wp-includes/class-wp-embed.php
r48135 r48574 102 102 * This function should probably also only be used for sites that do not support oEmbed. 103 103 * 104 * @param string $idAn internal ID/name for the handler. Needs to be unique.105 * @param string $regexThe regex that will be used to see if this handler should be used for a URL.104 * @param string $id An internal ID/name for the handler. Needs to be unique. 105 * @param string $regex The regex that will be used to see if this handler should be used for a URL. 106 106 * @param callable $callback The callback function that will be called if the regex is matched. 107 * @param int $priority Optional. Used to specify the order in which the registered handlers will be tested (default: 10). Lower numbers correspond with earlier testing, and handlers with the same priority are tested in the order in which they were added to the action. 107 * @param int $priority Optional. Used to specify the order in which the registered handlers will be tested. 108 * Lower numbers correspond with earlier testing, and handlers with the same priority are 109 * tested in the order in which they were added to the action. Default 10. 108 110 */ 109 111 public function register_handler( $id, $regex, $callback, $priority = 10 ) { -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r48121 r48574 510 510 * @since 3.5.0 511 511 * 512 * @param int $src_x The start x position to crop from.513 * @param int $src_y The start y position to crop from.514 * @param int $src_w The width to crop.515 * @param int $src_h The height to crop.516 * @param int $dst_w Optional. The destination width.517 * @param int $dst_h Optional. The destination height.512 * @param int $src_x The start x position to crop from. 513 * @param int $src_y The start y position to crop from. 514 * @param int $src_w The width to crop. 515 * @param int $src_h The height to crop. 516 * @param int $dst_w Optional. The destination width. 517 * @param int $dst_h Optional. The destination height. 518 518 * @param bool $src_abs Optional. If the source crop points are absolute. 519 519 * @return bool|WP_Error -
trunk/src/wp-includes/class-wp-image-editor.php
r48110 r48574 123 123 * @abstract 124 124 * 125 * @param int $src_xThe start x position to crop from.126 * @param int $src_yThe start y position to crop from.127 * @param int $src_wThe width to crop.128 * @param int $src_hThe height to crop.129 * @param int $dst_wOptional. The destination width.130 * @param int $dst_hOptional. The destination height.125 * @param int $src_x The start x position to crop from. 126 * @param int $src_y The start y position to crop from. 127 * @param int $src_w The width to crop. 128 * @param int $src_h The height to crop. 129 * @param int $dst_w Optional. The destination width. 130 * @param int $dst_h Optional. The destination height. 131 131 * @param bool $src_abs Optional. If the source crop points are absolute. 132 132 * @return bool|WP_Error … … 232 232 * manually without the `$quality` argument. 233 233 * 234 * set_quality()has priority over the filter.234 * The WP_Image_Editor::set_quality() method has priority over the filter. 235 235 * 236 236 * @since 3.5.0 … … 248 248 * manually without the `$quality` argument. 249 249 * 250 * set_quality()has priority over the filter.250 * The WP_Image_Editor::set_quality() method has priority over the filter. 251 251 * 252 252 * The filter is evaluated under two contexts: 'image_resize', and 'edit_image', -
trunk/src/wp-includes/class-wp-role.php
r46596 r48574 26 26 * 27 27 * @since 2.0.0 28 * @var array 28 * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values 29 * represent whether the role has that capability. 29 30 */ 30 31 public $capabilities; … … 33 34 * Constructor - Set up object properties. 34 35 * 35 * The list of capabilities ,must have the key as the name of the capability36 * The list of capabilities must have the key as the name of the capability 36 37 * and the value a boolean of whether it is granted to the role. 37 38 * … … 39 40 * 40 41 * @param string $role Role name. 41 * @param bool[] $capabilities List of capabilities keyed by the capability name,42 * e.g. array( 'edit_posts' => true, 'delete_posts' => false ).42 * @param bool[] $capabilities Array of key/value pairs where keys represent a capability name and boolean values 43 * represent whether the role has that capability. 43 44 */ 44 45 public function __construct( $role, $capabilities ) { … … 52 53 * @since 2.0.0 53 54 * 54 * @param string $cap Capability name.55 * @param bool $grant Whether role has capability privilege.55 * @param string $cap Capability name. 56 * @param bool $grant Whether role has capability privilege. 56 57 */ 57 58 public function add_cap( $cap, $grant = true ) { … … 62 63 /** 63 64 * Removes a capability from a role. 64 *65 * This is a container for WP_Roles::remove_cap() to remove the66 * capability from the role. That is to say, that WP_Roles::remove_cap()67 * implements the functionality, but it also makes sense to use this class,68 * because you don't need to enter the role name.69 65 * 70 66 * @since 2.0.0 … … 80 76 * Determines whether the role has the given capability. 81 77 * 82 * The capabilities is passed through the {@see 'role_has_cap'} filter.83 * The first parameter for the hook is the list of capabilities the class84 * has assigned. The second parameter is the capability name to look for.85 * The third and final parameter for the hook is the role name.86 *87 78 * @since 2.0.0 88 79 * 89 80 * @param string $cap Capability name. 90 * @return bool True if the role has the given capability. False otherwise.81 * @return bool Whether the role has the given capability. 91 82 */ 92 83 public function has_cap( $cap ) { … … 96 87 * @since 2.0.0 97 88 * 98 * @param bool[] $capabilities Associative array of capabilities for the role. 89 * @param bool[] $capabilities Array of key/value pairs where keys represent a capability name and boolean values 90 * represent whether the role has that capability. 99 91 * @param string $cap Capability name. 100 92 * @param string $name Role name. -
trunk/src/wp-includes/class-wp-user.php
r47848 r48574 54 54 55 55 /** 56 * The individual capabilities the user has been given. 57 * 58 * @since 2.0.0 59 * @var array 56 * Capabilities that the individual user has been granted outside of those inherited from their role. 57 * 58 * @since 2.0.0 59 * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values 60 * represent whether the user has that capability. 60 61 */ 61 62 public $caps = array(); … … 73 74 * 74 75 * @since 2.0.0 75 * @var array76 * @var string[] 76 77 */ 77 78 public $roles = array(); -
trunk/src/wp-includes/comment.php
r48235 r48574 561 561 * @param WP_Comment $comment Comment object. 562 562 * @param WP_User $user Comment author's user object. The user may not exist. 563 * @param bool ean$cookies_consent Optional. Comment author's consent to store cookies. Default true.563 * @param bool $cookies_consent Optional. Comment author's consent to store cookies. Default true. 564 564 */ 565 565 function wp_set_comment_cookies( $comment, $user, $cookies_consent = true ) { -
trunk/src/wp-includes/embed.php
r48109 r48574 133 133 * @see WP_oEmbed 134 134 * 135 * @param string 136 * 137 * @param string 138 * @param bool ean$regex Optional. Whether the `$format` parameter is in a RegEx format. Default false.135 * @param string $format The format of URL that this provider can handle. You can use asterisks 136 * as wildcards. 137 * @param string $provider The URL to the oEmbed provider. 138 * @param bool $regex Optional. Whether the `$format` parameter is in a RegEx format. Default false. 139 139 */ 140 140 function wp_oembed_add_provider( $format, $provider, $regex = false ) { -
trunk/src/wp-includes/post-template.php
r48573 r48574 1523 1523 $walker = new Walker_Page; 1524 1524 } else { 1525 /** 1526 * @var Walker $walker 1527 */ 1525 1528 $walker = $r['walker']; 1526 1529 } … … 1552 1555 $walker = new Walker_PageDropdown; 1553 1556 } else { 1557 /** 1558 * @var Walker $walker 1559 */ 1554 1560 $walker = $args[2]['walker']; 1555 1561 } -
trunk/src/wp-includes/sitemaps.php
r48553 r48574 62 62 * @param string $name Unique name for the sitemap provider. 63 63 * @param WP_Sitemaps_Provider $provider The `Sitemaps_Provider` instance implementing the sitemap. 64 * @return bool Returns true if the sitemap was added. False on failure.64 * @return bool Whether the sitemap was added. 65 65 */ 66 66 function wp_register_sitemap_provider( $name, WP_Sitemaps_Provider $provider ) { -
trunk/src/wp-includes/sitemaps/class-wp-sitemaps.php
r48543 r48574 225 225 * 226 226 * @param bool $bypass Pass-through of the pre_handle_404 filter value. 227 * @param WP_Query $query The WP_Query object.227 * @param WP_Query $query The WP_Query object. 228 228 * @return bool Bypass value. 229 229 */ … … 251 251 * 252 252 * @param string $output robots.txt output. 253 * @param bool $public Whether the site is public or not.253 * @param bool $public Whether the site is public. 254 254 * @return string The robots.txt output. 255 255 */ -
trunk/src/wp-includes/widgets/class-wp-nav-menu-widget.php
r48349 r48574 96 96 * @since 4.4.0 Added the `$instance` parameter. 97 97 * 98 * @param array 98 * @param array $nav_menu_args { 99 99 * An array of arguments passed to wp_nav_menu() to retrieve a navigation menu. 100 100 * … … 102 102 * @type mixed $menu Menu ID, slug, or name. 103 103 * } 104 * @param WP_Term 105 * @param array 106 * @param array 104 * @param WP_Term $nav_menu Nav menu object for the current menu. 105 * @param array $args Display arguments for the current widget. 106 * @param array $instance Array of settings for the current widget. 107 107 */ 108 108 wp_nav_menu( apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args, $instance ) );
Note: See TracChangeset
for help on using the changeset viewer.