Make WordPress Core

Changeset 36726


Ignore:
Timestamp:
02/26/2016 09:22:08 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Standardize summaries for two new internal functions used to handle suffixing trashed posts.

Also adds a notation of private access to each.

See #11863. See #32246.

File:
1 edited

Legend:

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

    r36709 r36726  
    60806080
    60816081/**
    6082  * If any trashed posts have a given slug, add a suffix.
     6082 * Adds a suffix if any trashed posts have a given slug.
    60836083 *
    60846084 * Store its desired (i.e. current) slug so it can try to reclaim it
     
    60886088 *
    60896089 * @since 4.5.0
     6090 * @access private
    60906091 *
    60916092 * @param string $post_name    Slug.
    6092  * @param string $post__not_in Post ID that should be ignored.
     6093 * @param string $post__not_in Optional. Post ID that should be ignored. Default 0.
    60936094 */
    60946095function wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post_ID = 0 ) {
     
    61096110
    61106111/**
    6111  * For a given post, add a trashed suffix.
     6112 * Adds a trashed suffix For a given post.
    61126113 *
    61136114 * Store its desired (i.e. current) slug so it can try to reclaim it
     
    61176118 *
    61186119 * @since 4.5.0
     6120 * @access private
    61196121 *
    61206122 * @param WP_Post $post The post.
Note: See TracChangeset for help on using the changeset viewer.