diff --git a/wp-includes/class-walker-category-dropdown.php b/wp-includes/class-walker-category-dropdown.php index 82b4fedbc5..74849101f8 100644 --- a/wp-includes/class-walker-category-dropdown.php +++ b/wp-includes/class-walker-category-dropdown.php @@ -31,7 +31,7 @@ class Walker_CategoryDropdown extends Walker { * * @since 2.1.0 * @todo Decouple this - * @var array + * @var string[] * * @see Walker::$db_fields */ diff --git a/wp-includes/class-walker-category.php b/wp-includes/class-walker-category.php index 24469e7667..dd7252cffe 100644 --- a/wp-includes/class-walker-category.php +++ b/wp-includes/class-walker-category.php @@ -30,7 +30,7 @@ class Walker_Category extends Walker { * Database fields to use. * * @since 2.1.0 - * @var array + * @var string[] * * @see Walker::$db_fields * @todo Decouple this diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php index 1a81a0b5d1..dfc8ccd39d 100644 --- a/wp-includes/class-walker-comment.php +++ b/wp-includes/class-walker-comment.php @@ -30,7 +30,7 @@ class Walker_Comment extends Walker { * Database fields to use. * * @since 2.7.0 - * @var array + * @var string[] * * @see Walker::$db_fields * @todo Decouple this diff --git a/wp-includes/class-walker-nav-menu.php b/wp-includes/class-walker-nav-menu.php index fad796005c..36be60f9d6 100644 --- a/wp-includes/class-walker-nav-menu.php +++ b/wp-includes/class-walker-nav-menu.php @@ -30,7 +30,7 @@ class Walker_Nav_Menu extends Walker { * * @since 3.0.0 * @todo Decouple this. - * @var array + * @var string[] * * @see Walker::$db_fields */ diff --git a/wp-includes/class-walker-page-dropdown.php b/wp-includes/class-walker-page-dropdown.php index e27ea813bf..efd821f018 100644 --- a/wp-includes/class-walker-page-dropdown.php +++ b/wp-includes/class-walker-page-dropdown.php @@ -30,7 +30,7 @@ class Walker_PageDropdown extends Walker { * Database fields to use. * * @since 2.1.0 - * @var array + * @var string[] * * @see Walker::$db_fields * @todo Decouple this diff --git a/wp-includes/class-walker-page.php b/wp-includes/class-walker-page.php index ad443dc2a6..bec195ed43 100644 --- a/wp-includes/class-walker-page.php +++ b/wp-includes/class-walker-page.php @@ -30,7 +30,7 @@ class Walker_Page extends Walker { * Database fields to use. * * @since 2.1.0 - * @var array + * @var string[] * * @see Walker::$db_fields * @todo Decouple this. diff --git a/wp-includes/class-wp-block-type.php b/wp-includes/class-wp-block-type.php index 10dbe42428..b3700e8d2e 100644 --- a/wp-includes/class-wp-block-type.php +++ b/wp-includes/class-wp-block-type.php @@ -79,7 +79,7 @@ class WP_Block_Type { * in search interfaces. * * @since 5.5.0 - * @var array + * @var string[] */ public $keywords = array(); @@ -223,7 +223,7 @@ class WP_Block_Type { * available when nested within the specified blocks. * @type string|null $icon Block type icon. * @type string $description A detailed block type description. - * @type array $keywords Additional keywords to produce block type as + * @type string[] $keywords Additional keywords to produce block type as * result in search interfaces. * @type string|null $textdomain The translation textdomain. * @type array $styles Alternative block styles. diff --git a/wp-includes/class-wp-date-query.php b/wp-includes/class-wp-date-query.php index 570608f493..1978afe762 100644 --- a/wp-includes/class-wp-date-query.php +++ b/wp-includes/class-wp-date-query.php @@ -53,7 +53,7 @@ class WP_Date_Query { * Supported time-related parameter keys. * * @since 4.1.0 - * @var array + * @var string[] */ public $time_keys = array( 'after', 'before', 'year', 'month', 'monthnum', 'week', 'w', 'dayofyear', 'day', 'dayofweek', 'dayofweek_iso', 'hour', 'minute', 'second' ); diff --git a/wp-includes/class-wp-list-util.php b/wp-includes/class-wp-list-util.php index 849807dc86..49fd3a00af 100644 --- a/wp-includes/class-wp-list-util.php +++ b/wp-includes/class-wp-list-util.php @@ -34,7 +34,7 @@ class WP_List_Util { * Temporary arguments for sorting. * * @since 4.7.0 - * @var array + * @var string[] */ private $orderby = array(); diff --git a/wp-includes/class-wp-locale.php b/wp-includes/class-wp-locale.php index cb8fdf566f..291848e974 100644 --- a/wp-includes/class-wp-locale.php +++ b/wp-includes/class-wp-locale.php @@ -18,7 +18,7 @@ class WP_Locale { * Stores the translated strings for the full weekday names. * * @since 2.1.0 - * @var array + * @var string[] */ public $weekday; @@ -31,7 +31,7 @@ class WP_Locale { * @see WP_Locale::init() for how to handle the hack. * * @since 2.1.0 - * @var array + * @var string[] */ public $weekday_initial; @@ -39,7 +39,7 @@ class WP_Locale { * Stores the translated strings for the abbreviated weekday names. * * @since 2.1.0 - * @var array + * @var string[] */ public $weekday_abbrev; @@ -47,7 +47,7 @@ class WP_Locale { * Stores the translated strings for the full month names. * * @since 2.1.0 - * @var array + * @var string[] */ public $month; @@ -55,7 +55,7 @@ class WP_Locale { * Stores the translated strings for the month names in genitive case, if the locale specifies. * * @since 4.4.0 - * @var array + * @var string[] */ public $month_genitive; @@ -63,7 +63,7 @@ class WP_Locale { * Stores the translated strings for the abbreviated month names. * * @since 2.1.0 - * @var array + * @var string[] */ public $month_abbrev; @@ -73,7 +73,7 @@ class WP_Locale { * Also the capitalized versions. * * @since 2.1.0 - * @var array + * @var string[] */ public $meridiem; diff --git a/wp-includes/class-wp-post-type.php b/wp-includes/class-wp-post-type.php index c3b7f20866..ef40f4ec90 100644 --- a/wp-includes/class-wp-post-type.php +++ b/wp-includes/class-wp-post-type.php @@ -92,6 +92,7 @@ final class WP_Post_Type { * Whether queries can be performed on the front end for the post type as part of `parse_request()`. * * Endpoints would include: + * * - `?post_type={post_type_key}` * - `?{post_type_key}={single_post_slug}` * - `?{post_type_query_var}={single_post_slug}` diff --git a/wp-includes/class-wp-rewrite.php b/wp-includes/class-wp-rewrite.php index 1a5c046e30..a1a262aa7b 100644 --- a/wp-includes/class-wp-rewrite.php +++ b/wp-includes/class-wp-rewrite.php @@ -275,7 +275,7 @@ class WP_Rewrite { * Additional tags can be added with add_rewrite_tag(). * * @since 1.5.0 - * @var array + * @var string[] */ public $rewritecode = array( '%year%', @@ -296,7 +296,7 @@ class WP_Rewrite { * of rewrite tags, see WP_Rewrite::$rewritecode. * * @since 1.5.0 - * @var array + * @var string[] */ public $rewritereplace = array( '([0-9]{4})', @@ -316,7 +316,7 @@ class WP_Rewrite { * Query variables that rewrite tags map to, see WP_Rewrite::$rewritecode. * * @since 1.5.0 - * @var array + * @var string[] */ public $queryreplace = array( 'year=', @@ -336,7 +336,7 @@ class WP_Rewrite { * Supported default feeds. * * @since 1.5.0 - * @var array + * @var string[] */ public $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' ); diff --git a/wp-includes/class-wp-taxonomy.php b/wp-includes/class-wp-taxonomy.php index 9ef1fdce4a..81dc0bd407 100644 --- a/wp-includes/class-wp-taxonomy.php +++ b/wp-includes/class-wp-taxonomy.php @@ -144,7 +144,7 @@ final class WP_Taxonomy { * An array of object types this taxonomy is registered for. * * @since 4.7.0 - * @var array + * @var string[] */ public $object_type = null; @@ -289,8 +289,8 @@ final class WP_Taxonomy { * * @since 4.7.0 * - * @param array|string $object_type Name of the object type for the taxonomy object. - * @param array|string $args Array or query string of arguments for registering a taxonomy. + * @param string|string[] $object_type Name or array of names of the object types for the taxonomy. + * @param array|string $args Array or query string of arguments for registering a taxonomy. */ public function set_props( $object_type, $args ) { $args = wp_parse_args( $args ); diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index 9fa101906a..2c4dcd7fc8 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -23,7 +23,7 @@ final class WP_Theme implements ArrayAccess { * * @since 3.4.0 * @since 5.4.0 Added `Requires at least` and `Requires PHP` headers. - * @var array + * @var string[] */ private static $file_headers = array( 'Name' => 'Theme Name', @@ -54,7 +54,7 @@ final class WP_Theme implements ArrayAccess { * @since 5.0.0 Added the Twenty Nineteen theme. * @since 5.3.0 Added the Twenty Twenty theme. * @since 5.6.0 Added the Twenty Twenty-One theme. - * @var array + * @var string[] */ private static $default_themes = array( 'classic' => 'WordPress Classic', @@ -77,7 +77,7 @@ final class WP_Theme implements ArrayAccess { * Renamed theme tags. * * @since 3.8.0 - * @var array + * @var string[] */ private static $tag_map = array( 'fixed-width' => 'fixed-layout', diff --git a/wp-includes/class-wp-walker.php b/wp-includes/class-wp-walker.php index 44271f42e4..1350730a30 100644 --- a/wp-includes/class-wp-walker.php +++ b/wp-includes/class-wp-walker.php @@ -24,7 +24,7 @@ class Walker { * DB fields to use. * * @since 2.1.0 - * @var array + * @var string[] */ public $db_fields; diff --git a/wp-includes/version.php b/wp-includes/version.php index ac3b5caacf..77aaaeffe0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52651'; +$wp_version = '6.0-alpha-52652'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.