Changeset 48576
- Timestamp:
- 07/23/2020 07:37:57 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r48560 r48576 160 160 * An associative array of test result data. 161 161 * 162 * @ paramstring $label A label describing the test, and is used as a header in the output.163 * @ paramstring $status The status of the test, which can be a value of `good`, `recommended` or `critical`.164 * @ paramarray $badge {162 * @type string $label A label describing the test, and is used as a header in the output. 163 * @type string $status The status of the test, which can be a value of `good`, `recommended` or `critical`. 164 * @type array $badge { 165 165 * Tests are put into categories which have an associated badge shown, these can be modified and assigned here. 166 166 * 167 * @ paramstring $label The test label, for example `Performance`.168 * @ paramstring $color Default `blue`. A string representing a color to use for the label.167 * @type string $label The test label, for example `Performance`. 168 * @type string $color Default `blue`. A string representing a color to use for the label. 169 169 * } 170 * @ paramstring $description A more descriptive explanation of what the test looks for, and why it is important for the end user.171 * @ paramstring $actions An action to direct the user to where they can resolve the issue, if one exists.172 * @ paramstring $test The name of the test being ran, used as a reference point.170 * @type string $description A more descriptive explanation of what the test looks for, and why it is important for the end user. 171 * @type string $actions An action to direct the user to where they can resolve the issue, if one exists. 172 * @type string $test The name of the test being ran, used as a reference point. 173 173 * } 174 174 */ … … 954 954 * 955 955 * @param array $modules { 956 * An associat edarray of modules to test for.956 * An associative array of modules to test for. 957 957 * 958 * array $module{959 * An associat edarray of module properties used during testing.958 * @type array ...$0 { 959 * An associative array of module properties used during testing. 960 960 * One of either `$function` or `$extension` must be provided, or they will fail by default. 961 961 * 962 * string $function Optional. A function name to test for the existence of.963 * string $extension Optional. An extension to check if is loaded in PHP.964 * string $constant Optional. A constant name to check for to verify an extension exists.965 * string $class Optional. A class name to check for to verify an extension exists.966 * bool $required Is this a required feature or not.967 * string $fallback_for Optional. The module this module replaces as a fallback.962 * @type string $function Optional. A function name to test for the existence of. 963 * @type string $extension Optional. An extension to check if is loaded in PHP. 964 * @type string $constant Optional. A constant name to check for to verify an extension exists. 965 * @type string $class Optional. A class name to check for to verify an extension exists. 966 * @type bool $required Is this a required feature or not. 967 * @type string $fallback_for Optional. The module this module replaces as a fallback. 968 968 * } 969 969 * } … … 2343 2343 */ 2344 2344 function detect_plugin_theme_auto_update_issues() { 2345 /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ 2345 2346 $test_plugins_enabled = apply_filters( 'auto_update_plugin', true ); 2347 /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ 2346 2348 $test_themes_enabled = apply_filters( 'auto_update_theme', true ); 2347 2349 $ui_enabled_for_plugins = wp_is_auto_update_enabled_for_type( 'plugin' ); -
trunk/src/wp-admin/includes/comment.php
r48223 r48576 22 22 * @param string $comment_date Date of the comment. 23 23 * @param string $timezone Timezone. Accepts 'blog' or 'gmt'. Default 'blog'. 24 * @return mixedComment post ID on success.24 * @return string|null Comment post ID on success. 25 25 */ 26 26 function comment_exists( $comment_author, $comment_date, $timezone = 'blog' ) { -
trunk/src/wp-admin/includes/template.php
r48574 r48576 1543 1543 * @since 2.7.0 1544 1544 * 1545 * @global $wp_settings_sections Storage array of all settings sections added to admin pages.1545 * @global array $wp_settings_sections Storage array of all settings sections added to admin pages. 1546 1546 * 1547 1547 * @param string $id Slug-name to identify the section. Used in the 'id' attribute of tags. … … 1602 1602 * @since 4.2.0 The `$class` argument was added. 1603 1603 * 1604 * @global $wp_settings_fields Storage array of settings fields and info about their pages/sections.1604 * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections. 1605 1605 * 1606 1606 * @param string $id Slug-name to identify the field. Used in the 'id' attribute of tags. … … 1667 1667 * add_settings_section() and add_settings_field() 1668 1668 * 1669 * @global $wp_settings_sections Storage array of all settings sections added to admin pages.1670 * @global $wp_settings_fields Storage array of settings fields and info about their pages/sections.1669 * @global array $wp_settings_sections Storage array of all settings sections added to admin pages. 1670 * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections. 1671 1671 * @since 2.7.0 1672 1672 * … … 1705 1705 * rather than directly. 1706 1706 * 1707 * @global $wp_settings_fields Storage array of settings fields and their pages/sections.1707 * @global array $wp_settings_fields Storage array of settings fields and their pages/sections. 1708 1708 * 1709 1709 * @since 2.7.0 -
trunk/src/wp-includes/author-template.php
r48200 r48576 16 16 * @since 1.5.0 17 17 * 18 * @global object $authordata The current author's DB object.18 * @global WP_User $authordata The current author's data. 19 19 * 20 20 * @param string $deprecated Deprecated. … … 33 33 * @since 2.9.0 34 34 * 35 * @param string $authordata->display_name The author's display name.35 * @param string|null $display_name The author's display name. 36 36 */ 37 37 return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : null ); … … 100 100 * @since 2.8.0 101 101 * 102 * @param string $ last_user->display_name The author's display name.102 * @param string $display_name The author's display name. 103 103 */ 104 104 return apply_filters( 'the_modified_author', $last_user->display_name ); … … 153 153 * @since 2.8.0 154 154 * 155 * @global object $authordata The current author's DB object.155 * @global WP_User $authordata The current author's data. 156 156 * 157 157 * @param string $field Optional. The user field to retrieve. Default empty. … … 288 288 * @since 4.4.0 289 289 * 290 * @global object $authordata The current author's DB object.290 * @global WP_User $authordata The current author's data. 291 291 * 292 292 * @return string An HTML link to the author page, or an empty string if $authordata isn't defined. -
trunk/src/wp-includes/class-wp-comment-query.php
r48275 r48576 29 29 * 30 30 * @since 3.5.0 31 * @var object WP_Meta_Query31 * @var WP_Meta_Query A meta query instance. 32 32 */ 33 33 public $meta_query = false; … … 70 70 * 71 71 * @since 3.7.0 72 * @var object WP_Date_Query72 * @var WP_Date_Query A date query instance. 73 73 */ 74 74 public $date_query = false; -
trunk/src/wp-includes/class-wp-customize-manager.php
r48573 r48576 4690 4690 * Mapping of 'panel', 'section', 'control' to the ID which should be autofocused. 4691 4691 * 4692 * @type string [$control]ID for control to be autofocused.4693 * @type string [$section]ID for section to be autofocused.4694 * @type string [$panel]ID for panel to be autofocused.4692 * @type string $control ID for control to be autofocused. 4693 * @type string $section ID for section to be autofocused. 4694 * @type string $panel ID for panel to be autofocused. 4695 4695 * } 4696 4696 */ … … 4707 4707 * Mapping of 'panel', 'section', 'control' to the ID which should be autofocused. 4708 4708 * 4709 * @type string [$control]ID for control to be autofocused.4710 * @type string [$section]ID for section to be autofocused.4711 * @type string [$panel]ID for panel to be autofocused.4709 * @type string $control ID for control to be autofocused. 4710 * @type string $section ID for section to be autofocused. 4711 * @type string $panel ID for panel to be autofocused. 4712 4712 * } 4713 4713 */ -
trunk/src/wp-includes/class-wp-customize-widgets.php
r48299 r48576 566 566 * @since 3.9.0 567 567 * 568 * @global $wp_registered_widget_controls568 * @global array $wp_registered_widget_controls 569 569 * 570 570 * @param string $widget_id Widget ID. -
trunk/src/wp-includes/class-wp-http-cookie.php
r47808 r48576 245 245 * 246 246 * @return array { 247 * List of attributes.248 * 249 * @type string|int|null $expires When the cookie expires. Unix timestamp or formatted date.250 * @type string $path Cookie URL path.251 * @type string $domain Cookie domain.247 * List of attributes. 248 * 249 * @type string|int|null $expires When the cookie expires. Unix timestamp or formatted date. 250 * @type string $path Cookie URL path. 251 * @type string $domain Cookie domain. 252 252 * } 253 253 */ -
trunk/src/wp-includes/class-wp-image-editor-gd.php
r48110 r48576 454 454 chmod( $filename, $perms ); 455 455 456 /**457 * Filters the name of the saved image file.458 *459 * @since 2.6.0460 *461 * @param string $filename Name of the file.462 */463 456 return array( 464 457 'path' => $filename, 458 /** 459 * Filters the name of the saved image file. 460 * 461 * @since 2.6.0 462 * 463 * @param string $filename Name of the file. 464 */ 465 465 'file' => wp_basename( apply_filters( 'image_make_intermediate_size', $filename ) ), 466 466 'width' => $this->size['width'], -
trunk/src/wp-includes/class-wp-query.php
r48563 r48576 38 38 * 39 39 * @since 3.1.0 40 * @var object WP_Tax_Query40 * @var WP_Tax_Query A taxonomy query instance. 41 41 */ 42 42 public $tax_query; … … 46 46 * 47 47 * @since 3.2.0 48 * @var object WP_Meta_Query48 * @var WP_Meta_Query A meta query instance. 49 49 */ 50 50 public $meta_query = false; … … 54 54 * 55 55 * @since 3.7.0 56 * @var object WP_Date_Query56 * @var WP_Date_Query A date query instance. 57 57 */ 58 58 public $date_query = false; -
trunk/src/wp-includes/class-wp-site-query.php
r48104 r48576 60 60 * 61 61 * @since 4.6.0 62 * @var object WP_Date_Query62 * @var WP_Date_Query A date query instance. 63 63 */ 64 64 public $date_query = false; -
trunk/src/wp-includes/class-wp-term-query.php
r48562 r48576 30 30 * 31 31 * @since 4.6.0 32 * @var object WP_Meta_Query32 * @var WP_Meta_Query A meta query instance. 33 33 */ 34 34 public $meta_query = false; -
trunk/src/wp-includes/class-wp-text-diff-renderer-table.php
r47550 r48576 338 338 * @param array $final Lines of the final version of the text. 339 339 * @return array { 340 * Array containing results of comparing the original text to the final text.341 * 342 * @type array $orig_matches Associative array of original matches. Index == row343 * number of `$orig`, value == corresponding row number344 * of that same line in `$final` or 'x' if there is no345 * corresponding row (indicating it is a deleted line).346 * @type array $final_matches Associative array of final matches. Index == row347 * number of `$final`, value == corresponding row number348 * of that same line in `$orig` or 'x' if there is no349 * corresponding row (indicating it is a new line).350 * @type array $orig_rows Associative array of interleaved rows of `$orig` with351 * blanks to keep matches aligned with side-by-side diff352 * of `$final`. A value >= 0 corresponds to index of `$orig`.353 * Value < 0 indicates a blank row.354 * @type array $final_rows Associative array of interleaved rows of `$final` with355 * blanks to keep matches aligned with side-by-side diff356 * of `$orig`. A value >= 0 corresponds to index of `$final`.357 * Value < 0 indicates a blank row.340 * Array containing results of comparing the original text to the final text. 341 * 342 * @type array $orig_matches Associative array of original matches. Index == row 343 * number of `$orig`, value == corresponding row number 344 * of that same line in `$final` or 'x' if there is no 345 * corresponding row (indicating it is a deleted line). 346 * @type array $final_matches Associative array of final matches. Index == row 347 * number of `$final`, value == corresponding row number 348 * of that same line in `$orig` or 'x' if there is no 349 * corresponding row (indicating it is a new line). 350 * @type array $orig_rows Associative array of interleaved rows of `$orig` with 351 * blanks to keep matches aligned with side-by-side diff 352 * of `$final`. A value >= 0 corresponds to index of `$orig`. 353 * Value < 0 indicates a blank row. 354 * @type array $final_rows Associative array of interleaved rows of `$final` with 355 * blanks to keep matches aligned with side-by-side diff 356 * of `$orig`. A value >= 0 corresponds to index of `$final`. 357 * Value < 0 indicates a blank row. 358 358 * } 359 359 */ -
trunk/src/wp-includes/comment.php
r48575 r48576 1006 1006 * @global WP_Query $wp_query WordPress Query object. 1007 1007 * 1008 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects. Defaults to $wp_query->comments.1008 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects. Defaults to `$wp_query->comments`. 1009 1009 * @param int $per_page Optional. Comments per page. 1010 1010 * @param bool $threaded Optional. Control over flat or threaded comments. -
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r48452 r48576 493 493 * Data with sub-requests embedded. 494 494 * 495 * @type array [$_links]Links.496 * @type array [$_embedded]Embeddeds.495 * @type array $_links Links. 496 * @type array $_embedded Embeddeds. 497 497 * } 498 498 */ … … 617 617 * Data with sub-requests embedded. 618 618 * 619 * @type array [$_links]Links.620 * @type array [$_embedded]Embeddeds.619 * @type array $_links Links. 620 * @type array $_embedded Embeddeds. 621 621 * } 622 622 */ -
trunk/src/wp-includes/theme.php
r48573 r48576 3020 3020 * @see add_theme_support() 3021 3021 * 3022 * @global $_wp_registered_theme_features3022 * @global array $_wp_registered_theme_features 3023 3023 * 3024 3024 * @param string $feature The name uniquely identifying the feature. See add_theme_support() … … 3157 3157 * @since 5.5.0 3158 3158 * 3159 * @global $_wp_registered_theme_features3159 * @global array $_wp_registered_theme_features 3160 3160 * 3161 3161 * @return array[] List of theme features, keyed by their name. … … 3176 3176 * @since 5.5.0 3177 3177 * 3178 * @global $_wp_registered_theme_features3178 * @global array $_wp_registered_theme_features 3179 3179 * 3180 3180 * @param string $feature The feature name. See add_theme_support() for the list -
trunk/tests/phpunit/tests/admin/includesCommunityEvents.php
r47198 r48576 153 153 154 154 /** 155 * Test: With a valid response, get_events() should return an associat edarray containing a location array and155 * Test: With a valid response, get_events() should return an associative array containing a location array and 156 156 * an events array with individual events that have formatted time and date. 157 157 * -
trunk/tests/phpunit/tests/formatting/EscXml.php
r48072 r48576 22 22 * 23 23 * @return array { 24 * @type string $source The source string to be escaped.25 * @type string $expected The expected escaped value of `$source`.24 * @type string $source The source string to be escaped. 25 * @type string $expected The expected escaped value of `$source`. 26 26 * } 27 27 */ … … 92 92 * 93 93 * @return array { 94 * @type string $source The source string to be escaped.95 * @type string $expected The expected escaped value of `$source`.94 * @type string $source The source string to be escaped. 95 * @type string $expected The expected escaped value of `$source`. 96 96 * } 97 97 */
Note: See TracChangeset
for help on using the changeset viewer.