Make WordPress Core


Ignore:
Timestamp:
04/28/2020 03:00:30 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme.php

    r47557 r47631  
    11901190     * @since 4.7.0
    11911191     *
    1192      * @return string Array of page templates, keyed by filename and post type,
    1193      *               with the value of the translated header name.
     1192     * @return string[] Array of page templates, keyed by filename and post type,
     1193     *                  with the value of the translated header name.
    11941194     */
    11951195    public function get_post_templates() {
Note: See TracChangeset for help on using the changeset viewer.