Changeset 52204
- Timestamp:
- 11/18/2021 01:48:43 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-installer-skin.php
r50931 r52204 283 283 * @since 5.5.0 284 284 * 285 * @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.286 * @param array $current_theme_data Array with current theme data.287 * @param array $new_theme_data Array with uploaded theme data.285 * @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info. 286 * @param WP_Theme $current_theme_data Current theme data. 287 * @param array $new_theme_data Array with uploaded theme data. 288 288 */ 289 289 echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data ); -
trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php
r51779 r52204 243 243 * @since 5.4.0 244 244 * 245 * @param int $item_id Menu item ID.246 * @param WP_Post $menu_item Menu item data object.247 * @param int $depth Depth of menu item. Used for padding.248 * @param stdClass $args An object of menu item arguments.249 * @param int $current_object_id Nav menu ID.245 * @param string $item_id Menu item ID as a numeric string. 246 * @param WP_Post $menu_item Menu item data object. 247 * @param int $depth Depth of menu item. Used for padding. 248 * @param stdClass|null $args An object of menu item arguments. 249 * @param int $current_object_id Nav menu ID. 250 250 */ 251 251 do_action( 'wp_nav_menu_item_custom_fields', $item_id, $menu_item, $depth, $args, $current_object_id ); -
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r50505 r52204 252 252 * @global array $themes_allowedtags 253 253 * 254 * @param object$theme {254 * @param stdClass $theme { 255 255 * An object that contains theme data returned by the WordPress.org API. 256 256 * … … 353 353 * @param string[] $actions An array of theme action links. Defaults are 354 354 * links to Install Now, Preview, and Details. 355 * @param WP_Theme $theme Theme object. 355 * @param stdClass $theme An object that contains theme data returned by the 356 * WordPress.org API. 356 357 */ 357 358 $actions = apply_filters( 'theme_install_actions', $actions, $theme ); … … 413 414 * Used to make the theme installer work for no-js. 414 415 * 415 * @param object $theme -A WordPress.org Theme API object.416 * @param stdClass $theme A WordPress.org Theme API object. 416 417 */ 417 418 public function theme_installer_single( $theme ) { … … 433 434 * @global array $themes_allowedtags 434 435 * 435 * @param object $theme -A WordPress.org Theme API object.436 * @param stdClass $theme A WordPress.org Theme API object. 436 437 */ 437 438 public function install_theme_info( $theme ) { … … 547 548 * @since 3.4.0 548 549 * 549 * @param object $theme -A WordPress.org Theme API object.550 * @param stdClass $theme A WordPress.org Theme API object. 550 551 * @return string Theme status. 551 552 */ -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r52192 r52204 406 406 * 407 407 * @param string $remote_destination The location on the remote filesystem to be cleared. 408 * @return bool|WP_Error True upon success, WP_Error on failure.408 * @return true|WP_Error True upon success, WP_Error on failure. 409 409 */ 410 410 public function clear_destination( $remote_destination ) { -
trunk/src/wp-admin/includes/dashboard.php
r52014 r52204 1728 1728 * @since 3.2.0 1729 1729 * 1730 * @param string $notice The notice content. 1731 * @param array $response An array containing web browser information. See `wp_check_browser_version()`. 1730 * @param string $notice The notice content. 1731 * @param array|false $response An array containing web browser information, or 1732 * false on failure. See `wp_check_browser_version()`. 1732 1733 */ 1733 1734 echo apply_filters( 'browse-happy-notice', $notice, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores -
trunk/src/wp-admin/includes/media.php
r52171 r52204 3642 3642 * @param string $file Path to video file. 3643 3643 * @param string $file_format File format of video, as analyzed by getID3. 3644 * @param string$data Raw metadata from getID3.3644 * @param array $data Raw metadata from getID3. 3645 3645 */ 3646 3646 return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data ); -
trunk/src/wp-admin/includes/meta-boxes.php
r51943 r52204 985 985 * @since 4.4.0 986 986 * 987 * @param string 988 * @param WP_Post $post The current post.987 * @param string|false $template The template used for the current post. 988 * @param WP_Post $post The current post. 989 989 */ 990 990 do_action( 'page_attributes_meta_box_template', $template, $post ); -
trunk/src/wp-admin/includes/template.php
r51873 r52204 97 97 * @see wp_terms_checklist() 98 98 * 99 * @param array $args An arrayof arguments.100 * @param int $post_id The post ID.99 * @param array|string $args An array or string of arguments. 100 * @param int $post_id The post ID. 101 101 */ 102 102 $params = apply_filters( 'wp_terms_checklist_args', $args, $post_id ); -
trunk/src/wp-admin/includes/theme.php
r51601 r52204 623 623 * @since 2.8.0 624 624 * 625 * @param array| object|WP_Error $res WordPress.org Themes API response.626 * @param string $action Requested action. Likely values are 'theme_information',627 * 'feature_list', or 'query_themes'.628 * @param object$args Arguments used to query for installer pages from the WordPress.org Themes API.625 * @param array|stdClass|WP_Error $res WordPress.org Themes API response. 626 * @param string $action Requested action. Likely values are 'theme_information', 627 * 'feature_list', or 'query_themes'. 628 * @param stdClass $args Arguments used to query for installer pages from the WordPress.org Themes API. 629 629 */ 630 630 return apply_filters( 'themes_api_result', $res, $action, $args ); -
trunk/src/wp-admin/includes/user.php
r51463 r52204 26 26 * 27 27 * @param int $user_id Optional. User ID. 28 * @return int|WP_Error User ID of the updated user .28 * @return int|WP_Error User ID of the updated user or WP_Error on failure. 29 29 */ 30 30 function edit_user( $user_id = 0 ) { … … 235 235 * @since 4.4.0 236 236 * 237 * @param int $user_id ID of the newly created user.238 * @param string $notify Type of notification that should happen. See wp_send_new_user_notifications()239 * for more information on possible values.237 * @param int|WP_Error $user_id ID of the newly created user or WP_Error on failure. 238 * @param string $notify Type of notification that should happen. See 239 * wp_send_new_user_notifications() for more information. 240 240 */ 241 241 do_action( 'edit_user_created_user', $user_id, $notify ); -
trunk/src/wp-includes/category-template.php
r52180 r52204 662 662 * @since 2.1.0 663 663 * 664 * @param string $output HTML output.665 * @param array $args An array of taxonomy-listing arguments. See wp_list_categories()666 * for information on accepted arguments.664 * @param string $output HTML output. 665 * @param array|string $args An array or query string of taxonomy-listing arguments. See 666 * wp_list_categories() for information on accepted arguments. 667 667 */ 668 668 $html = apply_filters( 'wp_list_categories', $output, $args ); -
trunk/src/wp-includes/class-wp-customize-manager.php
r51919 r52204 5924 5924 * @see WP_Customize_Manager::__construct() 5925 5925 * 5926 * @param array $themes Nested arrayof theme data.5926 * @param array|stdClass $themes Nested array or object of theme data. 5927 5927 * @param array $args List of arguments, such as page, search term, and tags to query for. 5928 5928 * @param WP_Customize_Manager $manager Instance of Customize manager. -
trunk/src/wp-includes/class-wp-theme.php
r52093 r52204 1214 1214 * @since 5.8.0 Include block templates. 1215 1215 * 1216 * @return string[] Array of page templates, keyed by filename and post type,1217 * 1216 * @return array[] Array of page template arrays, keyed by post type and filename, 1217 * with the value of the translated header name. 1218 1218 */ 1219 1219 public function get_post_templates() { -
trunk/src/wp-includes/functions.php
r52187 r52204 8135 8135 * @since 5.6.0 The `$directory_cache` parameter was added. 8136 8136 * 8137 * @param string $directory Full path of a directory.8138 * @param string| array$exclude Optional. Full path of a subdirectory to exclude from the total,8139 * or array of paths. Expected without trailing slash(es).8140 * @param int $max_execution_time Optional. Maximum time to run before giving up. In seconds.8141 * The timeout is global and is measured from the moment8142 * WordPress started to load.8143 * @param array $directory_cache Optional. Array of cached directory paths.8137 * @param string $directory Full path of a directory. 8138 * @param string|string[] $exclude Optional. Full path of a subdirectory to exclude from the total, 8139 * or array of paths. Expected without trailing slash(es). 8140 * @param int $max_execution_time Optional. Maximum time to run before giving up. In seconds. 8141 * The timeout is global and is measured from the moment 8142 * WordPress started to load. 8143 * @param array $directory_cache Optional. Array of cached directory paths. 8144 8144 * 8145 8145 * @return int|false|null Size in bytes if a valid directory. False if not. Null if timeout. … … 8192 8192 * @since 5.6.0 8193 8193 * 8194 * @param int|false $space_used The amount of used space, in bytes. Default false. 8194 * @param int|false $space_used The amount of used space, in bytes. Default false. 8195 * @param string $directory Full path of a directory. 8196 * @param string|string[]|null $exclude Full path of a subdirectory to exclude from the total, 8197 * or array of paths. 8198 * @param int $max_execution_time Maximum time to run before giving up. In seconds. 8199 * @param array $directory_cache Array of cached directory paths. 8195 8200 */ 8196 8201 $size = apply_filters( 'pre_recurse_dirsize', false, $directory, $exclude, $max_execution_time, $directory_cache ); -
trunk/src/wp-includes/ms-functions.php
r52074 r52204 1272 1272 * @param int $blog_id Blog ID. 1273 1273 * @param int $user_id User ID. 1274 * @param int$password User password.1274 * @param string $password User password. 1275 1275 * @param string $signup_title Site title. 1276 1276 * @param array $meta Signup meta data. By default, contains the requested privacy setting and lang_id. -
trunk/src/wp-includes/post-template.php
r50791 r52204 1006 1006 * @since 3.6.0 1007 1007 * 1008 * @param string $output HTML output of paginated posts' page links.1009 * @param array $args An arrayof arguments. See wp_link_pages()1010 * for information on accepted arguments.1008 * @param string $output HTML output of paginated posts' page links. 1009 * @param array|string $args An array or query string of arguments. See wp_link_pages() 1010 * for information on accepted arguments. 1011 1011 */ 1012 1012 $html = apply_filters( 'wp_link_pages', $output, $args ); … … 1647 1647 * 1648 1648 * @param string $link_html The page link HTML output. 1649 * @param int $id Post ID.1649 * @param int|WP_Post $id Post ID or object. Can be 0 for the current global post. 1650 1650 * @param string|int[] $size Requested image size. Can be any registered image size name, or 1651 1651 * an array of width and height values in pixels (in that order). -
trunk/src/wp-includes/post-thumbnail-template.php
r52065 r52204 225 225 * @param string $html The post thumbnail HTML. 226 226 * @param int $post_id The post ID. 227 * @param int $post_thumbnail_id The post thumbnail ID .227 * @param int $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one. 228 228 * @param string|int[] $size Requested image size. Can be any registered image size name, or 229 229 * an array of width and height values in pixels (in that order). 230 * @param string $attr Query stringof attributes.230 * @param string|array $attr Query string or array of attributes. 231 231 */ 232 232 return apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr ); -
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r52080 r52204 1398 1398 1399 1399 /** 1400 * Filters the REST API endpoint data.1400 * Filters the publicly-visible data for a single REST API route. 1401 1401 * 1402 1402 * @since 4.4.0 1403 1403 * 1404 * @param WP_REST_Request $request Request data. The namespace is passed as the 'namespace' parameter.1404 * @param array $data Publicly-visible data for the route. 1405 1405 */ 1406 1406 $available[ $route ] = apply_filters( 'rest_endpoints_description', $data ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-navigation-areas-controller.php
r52161 r52204 212 212 * @param stdClass $area Post status data. 213 213 * @param WP_REST_Request $request Full details about the request. 214 * @return WP_REST_Response Post status data.214 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 215 215 */ 216 216 public function prepare_item_for_response( $area, $request ) { … … 247 247 * returned. 248 248 * 249 * @param WP_REST_Response $response The response object.250 * @param object $area The original status object.251 * @param WP_REST_Request $request Request used to generate the response.249 * @param WP_REST_Response\WP_Error $response The response object, or WP_Error object on failure. 250 * @param object $area The original status object. 251 * @param WP_REST_Request $request Request used to generate the response. 252 252 */ 253 253 return apply_filters( 'rest_prepare_navigation_area', $response, $area, $request ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
r52068 r52204 461 461 * @since 5.8.0 462 462 * 463 * @param string $widget_id ID of the widget marked for deletion.464 * @param string $sidebar_id ID of the sidebar the widget was deleted from.465 * @param WP_REST_Response $response The response data.466 * @param WP_REST_Request $request The request sent to the API.463 * @param string $widget_id ID of the widget marked for deletion. 464 * @param string $sidebar_id ID of the sidebar the widget was deleted from. 465 * @param WP_REST_Response|WP_Error $response The response data, or WP_Error object on failure. 466 * @param WP_REST_Request $request The request sent to the API. 467 467 */ 468 468 do_action( 'rest_delete_widget', $widget_id, $sidebar_id, $response, $request ); … … 734 734 * @since 5.8.0 735 735 * 736 * @param WP_REST_Response $response The response object.737 * @param array $widget The registered widget data.738 * @param WP_REST_Request $request Request used to generate the response.736 * @param WP_REST_Response|WP_Error $response The response object, or WP_Error object on failure. 737 * @param array $widget The registered widget data. 738 * @param WP_REST_Request $request Request used to generate the response. 739 739 */ 740 740 return apply_filters( 'rest_prepare_widget', $response, $widget, $request ); -
trunk/src/wp-includes/sitemaps/class-wp-sitemaps-provider.php
r51652 r52204 43 43 * @param int $page_num Page of results. 44 44 * @param string $object_subtype Optional. Object subtype name. Default empty. 45 * @return array Array of URLsfor a sitemap.45 * @return array[] Array of URL information for a sitemap. 46 46 */ 47 47 abstract public function get_url_list( $page_num, $object_subtype = '' ); -
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
r51788 r52204 60 60 * @param string $object_subtype Optional. Post type name. Default empty. 61 61 * 62 * @return array Array of URLsfor a sitemap.62 * @return array[] Array of URL information for a sitemap. 63 63 */ 64 64 public function get_url_list( $page_num, $object_subtype = '' ) { … … 81 81 * @since 5.5.0 82 82 * 83 * @param array 84 * @param string $post_type Post type name.85 * @param int $page_num Page of results.83 * @param array[]|null $url_list The URL list. Default null. 84 * @param string $post_type Post type name. 85 * @param int $page_num Page of results. 86 86 */ 87 87 $url_list = apply_filters( -
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
r51788 r52204 57 57 * @param int $page_num Page of results. 58 58 * @param string $object_subtype Optional. Taxonomy name. Default empty. 59 * @return array Array of URLsfor a sitemap.59 * @return array[] Array of URL information for a sitemap. 60 60 */ 61 61 public function get_url_list( $page_num, $object_subtype = '' ) { … … 77 77 * @since 5.5.0 78 78 * 79 * @param array 80 * @param string $taxonomy Taxonomy name.81 * @param int $page_num Page of results.79 * @param array[]|null $url_list The URL list. Default null. 80 * @param string $taxonomy Taxonomy name. 81 * @param int $page_num Page of results. 82 82 */ 83 83 $url_list = apply_filters( … … 150 150 151 151 /** 152 * Filters the max number of pages before it is generated.152 * Filters the max number of pages for a taxonomy sitemap before it is generated. 153 153 * 154 154 * Passing a non-null value will short-circuit the generation, … … 157 157 * @since 5.5.0 158 158 * 159 * @param int 160 * @param string $taxonomy Taxonomy name.159 * @param int|null $max_num_pages The maximum number of pages. Default null. 160 * @param string $taxonomy Taxonomy name. 161 161 */ 162 162 $max_num_pages = apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', null, $taxonomy ); -
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-users.php
r48100 r52204 35 35 * required for compatibility with the parent 36 36 * provider class. Default empty. 37 * @return array Array of URLsfor a sitemap.37 * @return array[] Array of URL information for a sitemap. 38 38 */ 39 39 public function get_url_list( $page_num, $object_subtype = '' ) { … … 46 46 * @since 5.5.0 47 47 * 48 * @param array 49 * @param int $page_num Page of results.48 * @param array[]|null $url_list The URL list. Default null. 49 * @param int $page_num Page of results. 50 50 */ 51 51 $url_list = apply_filters( … … 100 100 public function get_max_num_pages( $object_subtype = '' ) { 101 101 /** 102 * Filters the max number of pages before it is generated.102 * Filters the max number of pages for a user sitemap before it is generated. 103 103 * 104 104 * Passing a non-null value will effectively short-circuit the generation, … … 107 107 * @since 5.5.0 108 108 * 109 * @param int $max_num_pages The maximum number of pages. Default null.109 * @param int|null $max_num_pages The maximum number of pages. Default null. 110 110 */ 111 111 $max_num_pages = apply_filters( 'wp_sitemaps_users_pre_max_num_pages', null ); -
trunk/src/wp-includes/taxonomy.php
r52163 r52204 2893 2893 * @param int $object_id The ID of the object from which the terms will be removed. 2894 2894 * @param string|int|array $terms The slug(s) or ID(s) of the term(s) to remove. 2895 * @param array|string$taxonomy Taxonomy name.2895 * @param string $taxonomy Taxonomy name. 2896 2896 * @return bool|WP_Error True on success, false or WP_Error on failure. 2897 2897 */ -
trunk/src/wp-includes/theme-compat/embed-content.php
r46586 r52204 28 28 * @since 4.9.0 29 29 * 30 * @param int $thumbnail_id Attachment ID.30 * @param int|false $thumbnail_id Attachment ID, or false if there is none. 31 31 */ 32 32 $thumbnail_id = apply_filters( 'embed_thumbnail_id', $thumbnail_id ); -
trunk/src/wp-includes/widgets.php
r52016 r52204 490 490 * @since 3.0.0 491 491 * 492 * @param int $id The widget ID.492 * @param int|string $id The widget ID. 493 493 */ 494 494 do_action( 'wp_unregister_sidebar_widget', $id ); -
trunk/tests/phpunit/includes/class-wp-sitemaps-empty-test-provider.php
r48072 r52204 21 21 * @param int $page_num Page of results. 22 22 * @param string $object_subtype Optional. Object subtype name. Default empty. 23 * @return array List of URLsfor a sitemap.23 * @return array[] Array of URL information for a sitemap. 24 24 */ 25 25 public function get_url_list( $page_num, $object_subtype = '' ) { -
trunk/tests/phpunit/includes/class-wp-sitemaps-large-test-provider.php
r48532 r52204 31 31 * @param int $page_num Page of results. 32 32 * @param string $object_subtype Optional. Object subtype name. Default empty. 33 * @return array List of URLsfor a sitemap.33 * @return array[] Array of URL information for a sitemap. 34 34 */ 35 35 public function get_url_list( $page_num, $object_subtype = '' ) { -
trunk/tests/phpunit/includes/class-wp-sitemaps-test-provider.php
r48072 r52204 35 35 * @param int $page_num Page of results. 36 36 * @param string $object_subtype Optional. Object subtype name. Default empty. 37 * @return array List of URLsfor a sitemap.37 * @return array[] Array of URL information for a sitemap. 38 38 */ 39 39 public function get_url_list( $page_num, $object_subtype = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.