From 0da2c98ddc36c7b3f2d39b1cd97dc55f68a6ec93 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 28 Apr 2020 15:02:11 +0000 Subject: [PATCH] Docs: Correct `@return` type for `WP_Theme::get_post_templates()`. The method returns an array of strings, not a single string. Props mayankmajeji, salvatore.formisano. Fixes #50020. Built from https://develop.svn.wordpress.org/trunk@47631 git-svn-id: http://core.svn.wordpress.org/trunk@47406 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-theme.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index d9368317ae..124ee11524 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -1189,8 +1189,8 @@ final class WP_Theme implements ArrayAccess { * * @since 4.7.0 * - * @return string Array of page templates, keyed by filename and post type, - * with the value of the translated header name. + * @return string[] Array of page templates, keyed by filename and post type, + * with the value of the translated header name. */ public function get_post_templates() { // If you screw up your current theme and we invalidate your parent, most things still work. Let it slide. diff --git a/wp-includes/version.php b/wp-includes/version.php index 281ec1f5d3..e26ed83219 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47628'; +$wp_version = '5.5-alpha-47631'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.