Changeset 32587
- Timestamp:
- 05/24/2015 09:03:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r32547 r32587 162 162 * @since 2.0.0 163 163 * 164 * @global wpdb $wpdb WordPress database abstraction object. 164 * @global wpdb $wpdb WordPress database abstraction object. 165 * @global object $comment 165 166 * 166 167 * @param object|string|int $comment Comment to retrieve. … … 298 299 * @param callable $name Method to call. 299 300 * @param array $arguments Arguments to pass when calling. 300 * @return mixed| boolReturn value of the callback, false otherwise.301 * @return mixed|false Return value of the callback, false otherwise. 301 302 */ 302 303 public function __call( $name, $arguments ) { … … 378 379 * @type int $user_id Include comments for a specific user ID. Default empty. 379 380 * } 380 * @return WP_Comment_Query WP_Comment_Query instance.381 381 */ 382 382 public function __construct( $query = '' ) { … … 470 470 * @global wpdb $wpdb WordPress database abstraction object. 471 471 * 472 * @return array The list of comments.472 * @return int|array The list of comments. 473 473 */ 474 474 public function get_comments() { … … 902 902 * Used internally to generate an SQL string for searching across multiple columns 903 903 * 904 * @since 3.1.0 904 905 * @access protected 905 * @since 3.1.0 906 * 907 * @global wpdb $wpdb 906 908 * 907 909 * @param string $string … … 931 933 * 932 934 * @param string $orderby Alias for the field to order by. 933 * @return string| boolValue to used in the ORDER clause. False otherwise.935 * @return string|false Value to used in the ORDER clause. False otherwise. 934 936 */ 935 937 protected function parse_orderby( $orderby ) { … … 1033 1035 * 1034 1036 * @global wpdb $wpdb WordPress database abstraction object. 1037 * @staticvar array $cache_lastcommentmodified 1035 1038 * 1036 1039 * @param string $timezone Which timezone to use in reference to 'gmt', 'blog', … … 1295 1298 * 1296 1299 * @param array $commentdata Contains information on the comment 1297 * @return mixedSignifies the approval status (0|1|'spam')1300 * @return int|string Signifies the approval status (0|1|'spam') 1298 1301 */ 1299 1302 function wp_allow_comment( $commentdata ) { … … 1483 1486 * @uses Walker_Comment 1484 1487 * 1488 * @global WP_Query $wp_query 1489 * 1485 1490 * @param array $comments Optional array of comment objects. Defaults to $wp_query->comments 1486 1491 * @param int $per_page Optional comments per page. … … 1527 1532 * 1528 1533 * @since 2.7.0 1534 * 1535 * @global wpdb $wpdb 1529 1536 * 1530 1537 * @param int $comment_ID Comment ID. … … 1650 1657 * @since 2.5.0 1651 1658 * 1659 * @global wpdb $wpdb 1660 * 1652 1661 * @param int $post_id Optional. Post ID. 1653 * @return object Comment stats.1662 * @return object|array Comment stats. 1654 1663 */ 1655 1664 function wp_count_comments( $post_id = 0 ) { … … 2112 2121 * @type int $user_id ID of the user who submitted the comment. Default 0. 2113 2122 * } 2114 * @return int| boolThe new comment's ID on success, false on failure.2123 * @return int|false The new comment's ID on success, false on failure. 2115 2124 */ 2116 2125 function wp_insert_comment( $commentdata ) { … … 2261 2270 * @see wp_insert_comment() 2262 2271 * 2272 * @global wpdb $wpdb 2273 * 2263 2274 * @param array $commentdata Contains information on the comment. See wp_insert_comment() 2264 2275 * for information on accepted arguments. … … 2361 2372 * 2362 2373 * @since 1.0.0 2374 * 2375 * global wpdb $wpdb 2363 2376 * 2364 2377 * @param int $comment_id Comment ID. … … 2548 2561 * @param int $post_id Post ID 2549 2562 * @param bool $do_deferred Whether to process previously deferred post comment counts 2550 * @return bool| nullTrue on success, false on failure2563 * @return bool|void True on success, false on failure 2551 2564 */ 2552 2565 function wp_update_comment_count($post_id, $do_deferred=false) { … … 2791 2804 * 2792 2805 * @since 0.71 2793 * @uses $wp_version 2806 * 2807 * @global string $wp_version 2794 2808 * 2795 2809 * @param string $content Post content to check for links. … … 2904 2918 * @param string $excerpt Excerpt of post. 2905 2919 * @param int $ID Post ID. 2906 * @return mixed Database query from update.2920 * @return int|false|void Database query from update. 2907 2921 */ 2908 2922 function trackback($trackback_url, $title, $excerpt, $ID) { … … 2934 2948 * 2935 2949 * @since 1.2.0 2936 * @uses $wp_version 2950 * 2951 * @global string $wp_version 2937 2952 * 2938 2953 * @param string $server Host of blog to connect to. … … 3031 3046 * @since 2.7.0 3032 3047 * 3033 * @param object$posts Post data object.3034 * @param object$query Query object.3035 * @return object3048 * @param WP_Post $posts Post data object. 3049 * @param WP_Query $query Query object. 3050 * @return array 3036 3051 */ 3037 3052 function _close_comments_for_old_posts( $posts, $query ) {
Note: See TracChangeset
for help on using the changeset viewer.