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
This commit is contained in:
parent
5371e3fd62
commit
0da2c98ddc
|
@ -1189,7 +1189,7 @@ final class WP_Theme implements ArrayAccess {
|
||||||
*
|
*
|
||||||
* @since 4.7.0
|
* @since 4.7.0
|
||||||
*
|
*
|
||||||
* @return string Array of page templates, keyed by filename and post type,
|
* @return string[] Array of page templates, keyed by filename and post type,
|
||||||
* with the value of the translated header name.
|
* with the value of the translated header name.
|
||||||
*/
|
*/
|
||||||
public function get_post_templates() {
|
public function get_post_templates() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue