Make WordPress Core


Ignore:
Timestamp:
11/08/2014 08:55:14 PM (10 years ago)
Author:
DrewAPicture
Message:

Fix the syntax for some status-related documentation introduced in [30155].

  • Variables in DocBlocks should be backtick-escaped
  • Parameter and return types should be as specific as possible
  • @param types and variables should align with each other, but not intentionally with the @return description

See #30230.

File:
1 edited

Legend:

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

    r30155 r30284  
    7878 * @since 2.6.0
    7979 *
    80  * @param  int   $post_id The ID of the post to save as a revision.
    81  * @return mixed Null or 0 if error, new revision ID, if success.
     80 * @param  int $post_id The ID of the post to save as a revision.
     81 * @return null|int Null or 0 if error, new revision ID, if success.
    8282 */
    8383function wp_save_post_revision( $post_id ) {
     
    456456 * @since 3.6.0
    457457 *
    458  * @param  object $post The post object.
     458 * @param WP_Post $post The post object.
    459459 * @return int The number of revisions to keep.
    460460 */
Note: See TracChangeset for help on using the changeset viewer.