Make WordPress Core


Ignore:
Timestamp:
11/10/2021 02:16:03 PM (2 years ago)
Author:
desrosj
Message:

Docs: Avoid using “CPT” instead of “custom post type”.

Additionally, when referring to built in Core post types, “custom” is unnecessary.

This also adds a period to the end of the wp_global_styles post type description.

Follow up to [38829], [51003], [52041], [52049], [52062].

See #53399, #54335, #54336.

File:
1 edited

Legend:

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

    r52077 r52110  
    191191
    192192    /**
    193      * Returns the CPT that contains the user's origin config
    194      * for the current theme or a void array if none found.
    195      *
    196      * It can also create and return a new draft CPT.
     193     * Returns the custom post type that contains the user's origin config
     194     * for the current theme or a void array if none are found.
     195     *
     196     * This can also create and return a new draft custom post type.
    197197     *
    198198     * @since 5.9.0
    199199     *
    200      * @param bool  $should_create_cpt  Optional. Whether a new CPT should be created if no one was found.
     200     * @param bool  $should_create_cpt  Optional. Whether a new custom post type should be created if none are found.
    201201     *                                  False by default.
    202      * @param array $post_status_filter Filter Optional. CPT by post status.
     202     * @param array $post_status_filter Filter Optional. custom post type by post status.
    203203     *                                   ['publish'] by default, so it only fetches published posts.
    204204     *
Note: See TracChangeset for help on using the changeset viewer.