Make WordPress Core

Changeset 56441


Ignore:
Timestamp:
08/24/2023 01:39:25 PM (11 months ago)
Author:
audrasjb
Message:

Docs: Correct default post type in page_template_dropdown() docblock.

The default post type used by page_template_dropdown() is page, not post.

Props maxinacube.
Fixes #58972.
See #58833.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r56176 r56441  
    901901 *
    902902 * @param string $default_template Optional. The template file name. Default empty.
    903  * @param string $post_type        Optional. Post type to get templates for. Default 'post'.
     903 * @param string $post_type        Optional. Post type to get templates for. Default 'page'.
    904904 */
    905905function page_template_dropdown( $default_template = '', $post_type = 'page' ) {
Note: See TracChangeset for help on using the changeset viewer.