Make WordPress Core

Changeset 28976


Ignore:
Timestamp:
07/03/2014 07:27:54 PM (11 years ago)
Author:
DrewAPicture
Message:

Remove backticks on $post variables in some short parameter descriptions.

See [28653], [28654].
See #28388.

Location:
trunk/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r28916 r28976  
    520520     * @access protected
    521521     *
    522      * @param int $post_id
    523      * @param int $pending_comments
     522     * @param int $post_id          The post ID.
     523     * @param int $pending_comments Number of pending comments.
    524524     */
    525525    protected function comments_bubble( $post_id, $pending_comments ) {
  • trunk/src/wp-admin/includes/template.php

    r28897 r28976  
    14731473 * @since 2.7.0
    14741474 *
    1475  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     1475 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    14761476 * @return string The post title if set.
    14771477 */
  • trunk/src/wp-includes/comment-template.php

    r28912 r28976  
    642642 * @since 1.5.0
    643643 *
    644  * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
     644 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
    645645 * @return string The link to the comments.
    646646 */
     
    679679 * @since 1.5.0
    680680 *
    681  * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
     681 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
    682682 * @return int The number of comments a post has.
    683683 */
  • trunk/src/wp-includes/link-template.php

    r28770 r28976  
    291291 * @since 1.0.0
    292292 *
    293  * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
     293 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
    294294 * @param mixed $deprecated Not used.
    295295 * @return string
  • trunk/src/wp-includes/media.php

    r28959 r28976  
    30233023 *
    30243024 * @param string      $type Mime type.
    3025  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     3025 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    30263026 * @return array Found attachments.
    30273027 */
     
    31483148 * @since 3.6.0
    31493149 *
    3150  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     3150 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    31513151 * @param bool        $html Whether to return HTML or data.
    31523152 * @return string|array Gallery data and srcs parsed from the expanded shortcode.
     
    31733173 * @since 3.6.0
    31743174 *
    3175  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     3175 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    31763176 * @return array A list of lists, each containing image srcs parsed.
    31773177 *      from an expanded shortcode
     
    31873187 * @since 3.6.0
    31883188 *
    3189  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     3189 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    31903190 * @return array A list of a gallery's image srcs in order.
    31913191 */
  • trunk/src/wp-includes/post-template.php

    r28963 r28976  
    106106 * @since 0.71
    107107 *
    108  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     108 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    109109 * @return string
    110110 */
     
    15661566 * @since 1.0.0
    15671567 *
    1568  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     1568 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    15691569 * @return string HTML content for password form for password protected post.
    15701570 */
     
    17391739 * @uses get_the_author_meta()
    17401740 *
    1741  * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
     1741 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
    17421742 * @param string $type 'all' (default), 'revision' or 'autosave'
    17431743 * @return null
  • trunk/src/wp-includes/post.php

    r28955 r28976  
    18691869 * @link http://codex.wordpress.org/Function_Reference/get_post_custom
    18701870 *
    1871  * @param int $post_id Optional. Post ID. Default is ID of the global `$post`.
     1871 * @param int $post_id Optional. Post ID. Default is ID of the global $post.
    18721872 * @return array Post meta for the given post.
    18731873 */
     
    18881888 * @link http://codex.wordpress.org/Function_Reference/get_post_custom_keys
    18891889 *
    1890  * @param int $post_id Optional. Post ID. Default is ID of the global `$post`.
     1890 * @param int $post_id Optional. Post ID. Default is ID of the global $post.
    18911891 * @return array|null Either array of the keys, or null if keys could not be retrieved.
    18921892 */
     
    19111911 *
    19121912 * @param string $key Meta field key.
    1913  * @param int $post_id Optional. Post ID. Default is ID of the global `$post`.
     1913 * @param int $post_id Optional. Post ID. Default is ID of the global $post.
    19141914 * @return array Meta field values.
    19151915 */
     
    19311931 * @since 2.7.0
    19321932 *
    1933  * @param int $post_id Optional. Post ID. Default is ID of the global `$post`.
     1933 * @param int $post_id Optional. Post ID. Default is ID of the global $post.
    19341934 * @return bool Whether post is sticky.
    19351935 */
     
    26252625 * @since 2.9.0
    26262626 *
    2627  * @param int $post_id Optional. Post ID. Default is ID of the global `$post`.
     2627 * @param int $post_id Optional. Post ID. Default is ID of the global $post.
    26282628 * @return mixed False on failure
    26292629 */
     
    27892789 * @uses wp_get_object_terms() Retrieves the categories. Args details can be found here.
    27902790 *
    2791  * @param int $post_id Optional. The Post ID. Does not default to the ID of the global `$post`.
     2791 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post.
    27922792 * @param array $args Optional. Overwrite the defaults.
    27932793 * @return array
     
    28142814 * @uses wp_get_object_terms() Gets the tags for returning. Args can be found here
    28152815 *
    2816  * @param int $post_id Optional. The Post ID. Does not default to the ID of the global `$post`.
     2816 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post.
    28172817 * @param array $args Optional. Overwrite the defaults
    28182818 * @return array List of post tags.
     
    28332833 * @uses wp_get_object_terms() Gets the tags for returning. Args can be found here
    28342834 *
    2835  * @param int    $post_id  Optional. The Post ID. Does not default to the ID of the global `$post`.
     2835 * @param int    $post_id  Optional. The Post ID. Does not default to the ID of the global $post.
    28362836 * @param string $taxonomy The taxonomy for which to retrieve terms. Defaults to post_tag.
    28372837 * @param array  $args     Optional. {@link wp_get_object_terms()} arguments.
     
    36473647 * @since 2.3.0
    36483648 *
    3649  * @param int $post_id Optional. The Post ID. Does not default to the ID of the global `$post`.
     3649 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post.
    36503650 * @param string $tags The tags to set for the post, separated by commas.
    36513651 * @return bool|null Will return false if $post_id is not an integer or is 0. Will return null otherwise
     
    36613661 * @uses wp_set_object_terms() Sets the tags for the post.
    36623662 *
    3663  * @param int $post_id Optional. The Post ID. Does not default to the ID of the global `$post`.
     3663 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global $post.
    36643664 * @param string $tags The tags to set for the post, separated by commas.
    36653665 * @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags.
     
    36763676 * @uses wp_set_object_terms() Sets the tags for the post.
    36773677 *
    3678  * @param int    $post_id  Optional. The Post ID. Does not default to the ID of the global `$post`.
     3678 * @param int    $post_id  Optional. The Post ID. Does not default to the ID of the global $post.
    36793679 * @param string $tags     The tags to set for the post, separated by commas.
    36803680 * @param string $taxonomy Taxonomy name. Defaults to 'post_tag'.
     
    37153715 * @since 2.1.0
    37163716 *
    3717  * @param int $post_ID Optional. The Post ID. Does not default to the ID of the global `$post`.
     3717 * @param int $post_ID Optional. The Post ID. Does not default to the ID of the global $post.
    37183718 * @param array|int $post_categories Optional. List of categories or ID of category.
    37193719 * @param bool $append If true, don't delete existing categories, just add on. If false, replace the categories with the new categories.
  • trunk/src/wp-includes/revision.php

    r28654 r28976  
    410410 * @uses get_children()
    411411 *
    412  * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`.
     412 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
    413413 * @return array An array of revisions, or an empty array if none.
    414414 */
  • trunk/src/wp-includes/taxonomy.php

    r28957 r28976  
    37793779 * @since 2.5.0
    37803780 *
    3781  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     3781 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    37823782 * @param array $args Override the defaults.
    37833783 * @return array List of taxonomies.
     
    38323832 * @uses get_object_taxonomies()
    38333833 *
    3834  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     3834 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    38353835 * @return array
    38363836 */
Note: See TracChangeset for help on using the changeset viewer.