Make WordPress Core

Changeset 49066


Ignore:
Timestamp:
09/28/2020 11:10:01 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify the false return value of get_post_type_archive_link() and get_post_type_archive_feed_link().

See #50768.

File:
1 edited

Legend:

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

    r48995 r49066  
    12091209 *
    12101210 * @param string $post_type Post type.
    1211  * @return string|false The post type archive permalink.
     1211 * @return string|false The post type archive permalink. False if the post type
     1212 *                      does not exist or does not have an archive.
    12121213 */
    12131214function get_post_type_archive_link( $post_type ) {
     
    12641265 * @since 3.1.0
    12651266 *
    1266  * @param string $post_type Post type
     1267 * @param string $post_type Post type.
    12671268 * @param string $feed      Optional. Feed type. Possible values include 'rss2', 'atom'.
    12681269 *                          Default is the value of get_default_feed().
    1269  * @return string|false The post type feed permalink.
     1270 * @return string|false The post type feed permalink. False if the post type
     1271 *                      does not exist or does not have an archive.
    12701272 */
    12711273function get_post_type_archive_feed_link( $post_type, $feed = '' ) {
     
    13541356 * @param int|WP_Post $id      Optional. Post ID or post object. Default is the global `$post`.
    13551357 * @param string      $context Optional. How to output the '&' character. Default '&'.
    1356  * @return string|null The edit post link for the given post. null if the post type is invalid or does
    1357  *                     not allow an editing UI.
     1358 * @return string|null The edit post link for the given post. Null if the post type does not exist
     1359 *                     or does not allow an editing UI.
    13581360 */
    13591361function get_edit_post_link( $id = 0, $context = 'display' ) {
Note: See TracChangeset for help on using the changeset viewer.