Make WordPress Core


Ignore:
Timestamp:
06/21/2013 12:45:11 PM (13 years ago)
Author:
SergeyBiryukov
Message:

PHPDoc fixes and additions. fixes #24616.

File:
1 edited

Legend:

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

    r24400 r24490  
    204204 * @param int $attachment_id Attachment ID
    205205 * @param string $file File path for the attachment
    206  * @return bool False on failure, true on success.
     206 * @return bool True on success, false on failure.
    207207 */
    208208function update_attached_file( $attachment_id, $file ) {
     
    725725 * @uses sanitize_post_field() See for possible $context values.
    726726 *
    727  * @param string $field Post field name
    728  * @param id $post Post ID
    729  * @param string $context Optional. How to filter the field. Default is display.
    730  * @return bool|string False on failure or returns the value in post field
     727 * @param string $field Post field name.
     728 * @param int|object $post Post ID or post object.
     729 * @param string $context Optional. How to filter the field. Default is 'display'.
     730 * @return string The value of the post field on success, empty string on failure.
    731731 */
    732732function get_post_field( $field, $post, $context = 'display' ) {
     
    750750 * @since 2.0.0
    751751 *
    752  * @param int $ID Optional. Post ID.
    753  * @return bool|string False on failure or returns the mime type
     752 * @param int $ID Optional. Post ID. Default is the current post from the loop.
     753 * @return string|bool The mime type on success, false on failure.
    754754 */
    755755function get_post_mime_type($ID = '') {
     
    770770 * @since 2.0.0
    771771 *
    772  * @param int $ID Post ID
    773  * @return string|bool Post status or false on failure.
     772 * @param int $ID Optional. Post ID. Default is the current post from the loop.
     773 * @return string|bool Post status on success, false on failure.
    774774 */
    775775function get_post_status($ID = '') {
     
    10101010 * @since 2.1.0
    10111011 *
    1012  * @uses $post The Loop current post global
    1013  *
    1014  * @param mixed $post Optional. Post object or post ID.
    1015  * @return bool|string post type or false on failure.
     1012 * @param int|object $post Optional. Post ID or post object. Default is the current post from the loop.
     1013 * @return string|bool Post type on success, false on failure.
    10161014 */
    10171015function get_post_type( $post = null ) {
     
    16761674 * @param mixed $meta_value Metadata value.
    16771675 * @param bool $unique Optional, default is false. Whether the same key should not be added.
    1678  * @return bool False for failure. True for success.
     1676 * @return int|bool Meta ID on success, false on failure.
    16791677 */
    16801678function add_post_meta($post_id, $meta_key, $meta_value, $unique = false) {
     
    17001698 * @param string $meta_key Metadata name.
    17011699 * @param mixed $meta_value Optional. Metadata value.
    1702  * @return bool False for failure. True for success.
     1700 * @return bool True on success, false on failure.
    17031701 */
    17041702function delete_post_meta($post_id, $meta_key, $meta_value = '') {
     
    17431741 * @param mixed $meta_value Metadata value.
    17441742 * @param mixed $prev_value Optional. Previous value to check before removing.
    1745  * @return bool False on failure, true if success.
     1743 * @return bool True on success, false on failure.
    17461744 */
    17471745function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') {
     
    23922390 * @uses do_action() on 'trashed_post_comments' after trashing
    23932391 *
    2394  * @param int $post Post ID or object.
     2392 * @param int|object $post Post ID or object.
    23952393 * @return mixed False on failure
    23962394 */
     
    24332431 * @uses do_action() on 'untrashed_post_comments' after trashing
    24342432 *
    2435  * @param int $post Post ID or object.
     2433 * @param int|object $post Post ID or object.
    24362434 * @return mixed False on failure
    24372435 */
     
    29542952 * @uses do_action() Calls 'edit_post', 'save_post', and 'wp_insert_post' on post_id and post data.
    29552953 *
    2956  * @param mixed $post Post ID or object.
     2954 * @param int|object $post Post ID or object.
    29572955 */
    29582956function wp_publish_post( $post ) {
     
    46074605 * @uses do_action() Calls 'clean_post_cache' on $id before adding children (if any).
    46084606 *
    4609  * @param object|int $post The post object or ID to remove from the cache
     4607 * @param int|object $post Post ID or object to remove from the cache
    46104608 */
    46114609function clean_post_cache( $post ) {
Note: See TracChangeset for help on using the changeset viewer.