Changeset 57644
- Timestamp:
- 02/16/2024 09:45:18 PM (10 months ago)
- Location:
- trunk/src
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-application-passwords-list-table.php
r55732 r57644 147 147 * @since 5.6.0 148 148 * 149 * @param string $which The location of the bulk actions: 'top' or 'bottom'.149 * @param string $which The location of the bulk actions: Either 'top' or 'bottom'. 150 150 */ 151 151 protected function display_tablenav( $which ) { -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r57285 r57644 438 438 * 439 439 * @param string $comment_status The comment status name. Default 'All'. 440 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.440 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. 441 441 */ 442 442 do_action( 'manage_comments_nav', $comment_status, $which ); -
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r56825 r57644 837 837 * Array of arrays containing file information. False if unable to list directory contents. 838 838 * 839 * @type array $0...{839 * @type array ...$0 { 840 840 * Array of file information. Note that some elements may not be available on all filesystems. 841 841 * -
trunk/src/wp-admin/includes/class-wp-filesystem-direct.php
r55714 r57644 600 600 * Array of arrays containing file information. False if unable to list directory contents. 601 601 * 602 * @type array $0...{602 * @type array ...$0 { 603 603 * Array of file information. Note that some elements may not be available on all filesystems. 604 604 * -
trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php
r55714 r57644 732 732 * Array of arrays containing file information. False if unable to list directory contents. 733 733 * 734 * @type array $0...{734 * @type array ...$0 { 735 735 * Array of file information. Note that some elements may not be available on all filesystems. 736 736 * -
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r55714 r57644 626 626 * Array of arrays containing file information. False if unable to list directory contents. 627 627 * 628 * @type array $0...{628 * @type array ...$0 { 629 629 * Array of file information. Note that some elements may not be available on all filesystems. 630 630 * -
trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php
r57263 r57644 746 746 * Array of arrays containing file information. False if unable to list directory contents. 747 747 * 748 * @type array $0...{748 * @type array ...$0 { 749 749 * Array of file information. Note that some elements may not be available on all filesystems. 750 750 * -
trunk/src/wp-admin/includes/class-wp-list-table.php
r57285 r57644 565 565 * @since 3.1.0 566 566 * 567 * @param string $which The location of the bulk actions: 'top' or 'bottom'.567 * @param string $which The location of the bulk actions: Either 'top' or 'bottom'. 568 568 * This is designated as optional for backward compatibility. 569 569 */ … … 1013 1013 * @since 3.1.0 1014 1014 * 1015 * @param string $which 1015 * @param string $which The location of the pagination: Either 'top' or 'bottom'. 1016 1016 */ 1017 1017 protected function pagination( $which ) { … … 1664 1664 * 1665 1665 * @since 3.1.0 1666 * @param string $which 1666 * @param string $which The location of the navigation: Either 'top' or 'bottom'. 1667 1667 */ 1668 1668 protected function display_tablenav( $which ) { -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r56665 r57644 303 303 * @global string $mode List table view mode. 304 304 * 305 * @param string $which The location of the pagination nav markup: 'top' or 'bottom'.305 * @param string $which The location of the pagination nav markup: Either 'top' or 'bottom'. 306 306 */ 307 307 protected function pagination( $which ) { … … 320 320 * @since 5.3.0 321 321 * 322 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.322 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. 323 323 */ 324 324 protected function extra_tablenav( $which ) { … … 334 334 * @since 5.3.0 335 335 * 336 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.336 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. 337 337 */ 338 338 do_action( 'restrict_manage_sites', $which ); … … 354 354 * @since 5.3.0 355 355 * 356 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.356 * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. 357 357 */ 358 358 do_action( 'manage_sites_extra_tablenav', $which ); -
trunk/src/wp-admin/includes/plugin.php
r57592 r57644 494 494 495 495 /** 496 * Returns drop-in s that WordPress uses.496 * Returns drop-in plugins that WordPress uses. 497 497 * 498 498 * Includes Multisite drop-ins only when is_multisite() 499 499 * 500 500 * @since 3.0.0 501 * @return array[] Key is file name. The value is an array, with the first value the 502 * purpose of the drop-in and the second value the name of the constant that must be 503 * true for the drop-in to be used, or true if no constant is required. 501 * 502 * @return array[] { 503 * Key is file name. The value is an array of data about the drop-in. 504 * 505 * @type array ...$0 { 506 * Data about the drop-in. 507 * 508 * @type string $0 The purpose of the drop-in. 509 * @type string|true $1 Name of the constant that must be true for the drop-in 510 * to be used, or true if no constant is required. 511 * } 512 * } 504 513 */ 505 514 function _get_dropins() { -
trunk/src/wp-admin/includes/revision.php
r56548 r57644 86 86 * @param WP_Post $compare_from The revision post object to compare to or from. 87 87 * @param string $context The context of whether the current revision is the old 88 * or the new one. Values are'to' or 'from'.88 * or the new one. Either 'to' or 'from'. 89 89 */ 90 90 $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : ''; -
trunk/src/wp-admin/includes/theme.php
r57382 r57644 449 449 * @since 2.8.0 450 450 * 451 * @param string $action API action to perform: 'query_themes', 'theme_information',451 * @param string $action API action to perform: Accepts 'query_themes', 'theme_information', 452 452 * 'hot_tags' or 'feature_list'. 453 453 * @param array|object $args { -
trunk/src/wp-admin/includes/update.php
r57084 r57644 1077 1077 * @since 5.5.0 1078 1078 * 1079 * @param string $type The type of update being checked: 'theme' or 'plugin'.1079 * @param string $type The type of update being checked: Either 'theme' or 'plugin'. 1080 1080 * @return bool True if auto-updates are enabled for `$type`, false otherwise. 1081 1081 */ … … 1117 1117 * @since 5.6.0 1118 1118 * 1119 * @param string $type The type of update being checked: 'theme' or 'plugin'.1119 * @param string $type The type of update being checked: Either 'theme' or 'plugin'. 1120 1120 * @param bool|null $update Whether to update. The value of null is internally used 1121 1121 * to detect whether nothing has hooked into this filter. -
trunk/src/wp-includes/block-template-utils.php
r57627 r57644 175 175 176 176 /** 177 * Filters the list of template types.177 * Filters the list of default template types. 178 178 * 179 179 * @since 5.9.0 … … 249 249 * @access private 250 250 * 251 * @param string $template_type 'wp_template' or 'wp_template_part'.251 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 252 252 * @param string $slug Template slug. 253 253 * @return array|null { … … 306 306 * @access private 307 307 * 308 * @param string $template_type 'wp_template' or 'wp_template_part'.308 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 309 309 * @param array $query { 310 310 * Arguments to retrieve templates. Optional, empty by default. … … 521 521 * 522 522 * @param array $template_file Theme file. 523 * @param string $template_type 'wp_template' or 'wp_template_part'.523 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 524 524 * @return WP_Block_Template Template. 525 525 */ … … 926 926 * @type string $post_type Post type to get the templates for. 927 927 * } 928 * @param string $template_type 'wp_template' or 'wp_template_part'.928 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 929 929 * @return WP_Block_Template[] Array of block templates. 930 930 */ … … 947 947 * @type string $post_type Post type to get the templates for. 948 948 * } 949 * @param string $template_type 'wp_template' or 'wp_template_part'.949 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 950 950 */ 951 951 $templates = apply_filters( 'pre_get_block_templates', null, $query, $template_type ); … … 1052 1052 * 1053 1053 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1054 * @param string $template_type Optional. Template type :'wp_template' or 'wp_template_part'.1054 * @param string $template_type Optional. Template type. Either 'wp_template' or 'wp_template_part'. 1055 1055 * Default 'wp_template'. 1056 1056 * @return WP_Block_Template|null Template. … … 1067 1067 * or null to allow WP to run its normal queries. 1068 1068 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1069 * @param string $template_type Template type :'wp_template' or 'wp_template_part'.1069 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 1070 1070 */ 1071 1071 $block_template = apply_filters( 'pre_get_block_template', null, $id, $template_type ); … … 1113 1113 * @param WP_Block_Template|null $block_template The found block template, or null if there isn't one. 1114 1114 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1115 * @param array $template_type Template type:'wp_template' or 'wp_template_part'.1115 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 1116 1116 */ 1117 1117 return apply_filters( 'get_block_template', $block_template, $id, $template_type ); … … 1126 1126 * 1127 1127 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1128 * @param string $template_type Optional. Template type :'wp_template' or 'wp_template_part'.1128 * @param string $template_type Optional. Template type. Either 'wp_template' or 'wp_template_part'. 1129 1129 * Default 'wp_template'. 1130 1130 * @return WP_Block_Template|null The found block template, or null if there isn't one. … … 1141 1141 * or null to allow WP to run its normal queries. 1142 1142 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1143 * @param string $template_type Template type :'wp_template' or 'wp_template_part'.1143 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 1144 1144 */ 1145 1145 $block_template = apply_filters( 'pre_get_block_file_template', null, $id, $template_type ); … … 1175 1175 * @param WP_Block_Template|null $block_template The found block template, or null if there is none. 1176 1176 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1177 * @param string $template_type Template type :'wp_template' or 'wp_template_part'.1177 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 1178 1178 */ 1179 1179 return apply_filters( 'get_block_file_template', $block_template, $id, $template_type ); … … 1185 1185 * @since 5.9.0 1186 1186 * 1187 * @param string $part The block template part to print. Use "header" or "footer".1187 * @param string $part The block template part to print. Either 'header' or 'footer'. 1188 1188 */ 1189 1189 function block_template_part( $part ) { … … 1219 1219 * 1220 1220 * @param string $path The path of the file in the theme. 1221 * @return Bool Whether this file is in an ignored directory.1221 * @return bool Whether this file is in an ignored directory. 1222 1222 */ 1223 1223 function wp_is_theme_directory_ignored( $path ) { … … 1348 1348 * @since 6.1.0 1349 1349 * 1350 * @param string $slugThe template slug to be created.1351 * @param bool ean $is_customOptional. Indicates if a template is custom or1350 * @param string $slug The template slug to be created. 1351 * @param bool $is_custom Optional. Indicates if a template is custom or 1352 1352 * part of the template hierarchy. Default false. 1353 1353 * @param string $template_prefix Optional. The template prefix for the created template. -
trunk/src/wp-includes/blocks.php
r57627 r57644 1758 1758 * style_handle (name of the stylesheet to be enqueued), 1759 1759 * inline_style (string containing the CSS to be added). 1760 * See WP_Block_Styles_Registry::register(). 1760 1761 * @return bool True if the block style was registered with success and false otherwise. 1761 1762 */ -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r56687 r57644 938 938 * Post array. Note that post_status is overridden to be `auto-draft`. 939 939 * 940 * @varstring $post_title Post title. Required.941 * @varstring $post_type Post type. Required.942 * @varstring $post_name Post name.943 * @varstring $post_content Post content.940 * @type string $post_title Post title. Required. 941 * @type string $post_type Post type. Required. 942 * @type string $post_name Post name. 943 * @type string $post_content Post content. 944 944 * } 945 945 * @return WP_Post|WP_Error Inserted auto-draft post object or error. -
trunk/src/wp-includes/class-wp-date-query.php
r57189 r57644 1058 1058 * 1059 1059 * @param string $relation Raw relation key from the query argument. 1060 * @return string Sanitized relation ('AND' or 'OR').1060 * @return string Sanitized relation. Either 'AND' or 'OR'. 1061 1061 */ 1062 1062 public function sanitize_relation( $relation ) { -
trunk/src/wp-includes/class-wp-http.php
r57501 r57644 612 612 * @param string|array $args Optional. Override the defaults. 613 613 * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. 614 * A WP_Error instance upon error. 614 * A WP_Error instance upon error. See WP_Http::response() for details. 615 615 */ 616 616 public function post( $url, $args = array() ) { … … 630 630 * @param string|array $args Optional. Override the defaults. 631 631 * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. 632 * A WP_Error instance upon error. 632 * A WP_Error instance upon error. See WP_Http::response() for details. 633 633 */ 634 634 public function get( $url, $args = array() ) { … … 648 648 * @param string|array $args Optional. Override the defaults. 649 649 * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. 650 * A WP_Error instance upon error. 650 * A WP_Error instance upon error. See WP_Http::response() for details. 651 651 */ 652 652 public function head( $url, $args = array() ) { -
trunk/src/wp-includes/class-wp-paused-extensions-storage.php
r54133 r57644 16 16 17 17 /** 18 * Type of extension. Used to key extension storage. 18 * Type of extension. Used to key extension storage. Either 'plugin' or 'theme'. 19 19 * 20 20 * @since 5.2.0 -
trunk/src/wp-includes/class-wp-script-modules.php
r57593 r57644 45 45 * Optional. List of dependencies. 46 46 * 47 * @type string|array $0...{47 * @type string|array ...$0 { 48 48 * An array of script module identifiers of the dependencies of this script 49 49 * module. The dependencies can be strings or arrays. If they are arrays, … … 110 110 * Optional. List of dependencies. 111 111 * 112 * @type string|array $0...{112 * @type string|array ...$0 { 113 113 * An array of script module identifiers of the dependencies of this script 114 114 * module. The dependencies can be strings or arrays. If they are arrays, -
trunk/src/wp-includes/class-wp-site-query.php
r55988 r57644 159 159 * @type string[] $path__in Array of paths to include affiliated sites for. Default empty. 160 160 * @type string[] $path__not_in Array of paths to exclude affiliated sites for. Default empty. 161 * @type int $public Limit results to public sites. Accepts '1' or '0'. Default empty.162 * @type int $archived Limit results to archived sites. Accepts '1' or '0'. Default empty.163 * @type int $mature Limit results to mature sites. Accepts '1' or '0'. Default empty.164 * @type int $spam Limit results to spam sites. Accepts '1' or '0'. Default empty.165 * @type int $deleted Limit results to deleted sites. Accepts '1' or '0'. Default empty.161 * @type int $public Limit results to public sites. Accepts 1 or 0. Default empty. 162 * @type int $archived Limit results to archived sites. Accepts 1 or 0. Default empty. 163 * @type int $mature Limit results to mature sites. Accepts 1 or 0. Default empty. 164 * @type int $spam Limit results to spam sites. Accepts 1 or 0. Default empty. 165 * @type int $deleted Limit results to deleted sites. Accepts 1 or 0. Default empty. 166 166 * @type int $lang_id Limit results to a language ID. Default empty. 167 167 * @type string[] $lang__in Array of language IDs to include affiliated sites for. Default empty. -
trunk/src/wp-includes/class-wp-tax-query.php
r57239 r57644 203 203 * 204 204 * @param string $relation Raw relation key from the query argument. 205 * @return string Sanitized relation ('AND' or 'OR').205 * @return string Sanitized relation. Either 'AND' or 'OR'. 206 206 */ 207 207 public function sanitize_relation( $relation ) { -
trunk/src/wp-includes/class-wp-user.php
r57190 r57644 192 192 * @global wpdb $wpdb WordPress database abstraction object. 193 193 * 194 * @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.194 * @param string $field The field to query against: Accepts 'id', 'ID', 'slug', 'email' or 'login'. 195 195 * @param string|int $value The field value. 196 196 * @return object|false Raw user object. -
trunk/src/wp-includes/comment.php
r57530 r57644 279 279 * @param string $post_type Optional. Post type. Default 'post'. 280 280 * @param string $comment_type Optional. Comment type. Default 'comment'. 281 * @return string E xpected return value is'open' or 'closed'.281 * @return string Either 'open' or 'closed'. 282 282 */ 283 283 function get_default_comment_status( $post_type = 'post', $comment_type = 'comment' ) { -
trunk/src/wp-includes/general-template.php
r57170 r57644 1320 1320 * Default '»'. 1321 1321 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1322 * @param string $seplocation Optional. Location of the separator ( 'left' or 'right').1322 * @param string $seplocation Optional. Location of the separator (either 'left' or 'right'). 1323 1323 * @return string|void String when `$display` is false, nothing otherwise. 1324 1324 */ … … 1440 1440 * @param string $title Page title. 1441 1441 * @param string $sep Title separator. 1442 * @param string $seplocation Location of the separator ( 'left' or 'right').1442 * @param string $seplocation Location of the separator (either 'left' or 'right'). 1443 1443 */ 1444 1444 $title = apply_filters( 'wp_title', $title, $sep, $seplocation ); … … 3464 3464 3465 3465 /** 3466 * Filters domains and URLs for resource hints of relation type.3466 * Filters domains and URLs for resource hints of the given relation type. 3467 3467 * 3468 3468 * @since 4.6.0 … … 3484 3484 * } 3485 3485 * } 3486 * @param string $relation_type The relation type the URLs are printed for ,3487 * e.g. 'preconnect'or 'prerender'.3486 * @param string $relation_type The relation type the URLs are printed for. One of 3487 * 'dns-prefetch', 'preconnect', 'prefetch', or 'prerender'. 3488 3488 */ 3489 3489 $urls = apply_filters( 'wp_resource_hints', $urls, $relation_type ); … … 3758 3758 * Finds out which editor should be displayed by default. 3759 3759 * 3760 * Works out which of the twoeditors to display as the current editor for a3760 * Works out which of the editors to display as the current editor for a 3761 3761 * user. The 'html' setting is for the "Text" editor tab. 3762 3762 * 3763 3763 * @since 2.5.0 3764 3764 * 3765 * @return string Either 'tinymce', or'html', or 'test'3765 * @return string Either 'tinymce', 'html', or 'test' 3766 3766 */ 3767 3767 function wp_default_editor() { -
trunk/src/wp-includes/post.php
r57638 r57644 1601 1601 * @param array|string $args Optional. An array of key => value arguments to match against 1602 1602 * the post type objects. Default empty array. 1603 * @param string $output Optional. The type of output to return. Accepts post type'names'1603 * @param string $output Optional. The type of output to return. Either 'names' 1604 1604 * or 'objects'. Default 'names'. 1605 1605 * @param string $operator Optional. The logical operation to perform. 'or' means only one -
trunk/src/wp-includes/script-modules.php
r57593 r57644 45 45 * Optional. List of dependencies. 46 46 * 47 * @type string|array $0...{47 * @type string|array ...$0 { 48 48 * An array of script module identifiers of the dependencies of this script 49 49 * module. The dependencies can be strings or arrays. If they are arrays, … … 82 82 * Optional. List of dependencies. 83 83 * 84 * @type string|array $0...{84 * @type string|array ...$0 { 85 85 * An array of script module identifiers of the dependencies of this script 86 86 * module. The dependencies can be strings or arrays. If they are arrays, -
trunk/src/wp-includes/taxonomy.php
r57335 r57644 273 273 * @param array $args Optional. An array of `key => value` arguments to match against the taxonomy objects. 274 274 * Default empty array. 275 * @param string $output Optional. The type of output to return in the array. Accepts either taxonomy'names'275 * @param string $output Optional. The type of output to return in the array. Either 'names' 276 276 * or 'objects'. Default 'names'. 277 277 * @param string $operator Optional. The logical operation to perform. Accepts 'and' or 'or'. 'or' means only
Note: See TracChangeset
for help on using the changeset viewer.