- Timestamp:
- 11/08/2014 08:35:00 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r30280 r30281 132 132 * 133 133 * @param int $post_id The ID of the post. 134 * @param array $args Optional. See {@see WP_Comment_Query } for information134 * @param array $args Optional. See {@see WP_Comment_Query::query()} for information 135 135 * on accepted arguments. 136 * @return array $comments The approved comments. 136 * @return int|array $comments The approved comments, or number of comments if `$count` 137 * argument is true. 137 138 */ 138 139 function get_approved_comments( $post_id = 0, $args = array() ) { … … 212 213 * The comment list can be for the blog as a whole or for an individual post. 213 214 * 214 * The list of comment arguments are 'status', 'orderby', 'comment_date_gmt',215 * 'order', 'number', 'offset', and 'post_id'.216 *217 215 * @since 2.7.0 218 216 * 219 217 * @global wpdb $wpdb WordPress database abstraction object. 220 218 * 221 * @param mixed $args Optional. Array or string of options to override defaults. 222 * @return array List of comments. 219 * @param string|array $args Optional. Array or string of arguments. See {@see WP_Comment_Query::query()} 220 * for information on accepted arguments. Default empty. 221 * @return int|array List of comments or number of found comments if `$count` argument is true. 223 222 */ 224 223 function get_comments( $args = '' ) { … … 229 228 /** 230 229 * WordPress Comment Query class. 230 * 231 * See {@see WP_Comment_Query::query()} for accepted arguments. 231 232 * 232 233 * @since 3.1.0 -
trunk/src/wp-includes/default-widgets.php
r29961 r30281 850 850 * @since 3.4.0 851 851 * 852 * @see get_comments()852 * @see WP_Comment_Query::query() for information on accepted arguments. 853 853 * 854 854 * @param array $comment_args An array of arguments used to retrieve the recent comments.
Note: See TracChangeset
for help on using the changeset viewer.