WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/05/2010 02:45:39 AM (9 years ago)
Author:
nacin
Message:

phpdoc, @since, whitespace. Also require an argument in wp_insert_post(). props duck_, see #14783.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/comment.php

    r15512 r15564  
    1010 * {@internal Missing Short Description}}
    1111 *
    12  * @since unknown
     12 * @since 2.0.0
    1313 * @uses $wpdb
    1414 *
    15  * @param string $comment_author
    16  * @param string $comment_date
     15 * @param string $comment_author Author of the comment
     16 * @param string $comment_date Date of the comment
    1717 * @return mixed Comment ID on success.
    1818 */
     
    2828
    2929/**
    30  * {@internal Missing Short Description}}
     30 * Update a comment with values provided in $_POST.
    3131 *
    32  * @since unknown
     32 * @since 2.0.0
    3333 */
    3434function edit_comment() {
    35 
    3635    $comment_post_ID = (int) $_POST['comment_post_ID'];
    3736
    3837    if (!current_user_can( 'edit_post', $comment_post_ID ))
    39         wp_die( __('You are not allowed to edit comments on this post, so you cannot edit this comment.' ));
     38        wp_die( __('You are not allowed to edit comments on this post, so you cannot edit this comment.' ) );
    4039
    4140    $_POST['comment_author'] = $_POST['newcomment_author'];
     
    5352    }
    5453
    55     if (!empty ( $_POST['edit_date'] ) ) {
     54    if ( !empty ( $_POST['edit_date'] ) ) {
    5655        $aa = $_POST['aa'];
    5756        $mm = $_POST['mm'];
     
    6766    }
    6867
    69     wp_update_comment( $_POST);
     68    wp_update_comment( $_POST );
    7069}
    7170
     
    7372 * {@internal Missing Short Description}}
    7473 *
    75  * @since unknown
     74 * @since 2.0.0
    7675 *
    77  * @param unknown_type $id
    78  * @return unknown
     76 * @param int $id ID of comment to retrieve
     77 * @return bool|object Comment if found. False on failure.
    7978 */
    8079function get_comment_to_edit( $id ) {
     
    9998 * Get the number of pending comments on a post or posts
    10099 *
    101  * @since unknown
     100 * @since 2.3.0
    102101 * @uses $wpdb
    103102 *
Note: See TracChangeset for help on using the changeset viewer.