Changeset 53265 for trunk/src/wp-includes/comment.php
- Timestamp:
- 04/26/2022 06:18:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r53225 r53265 8 8 9 9 /** 10 * Check whether a comment passes internal checks to be allowed to add.10 * Checks whether a comment passes internal checks to be allowed to add. 11 11 * 12 12 * If manual comment moderation is set in the administration, then all checks, … … 150 150 151 151 /** 152 * Retrieve the approved comments for post $post_id.152 * Retrieves the approved comments for post $post_id. 153 153 * 154 154 * @since 2.0.0 … … 230 230 231 231 /** 232 * Retrieve a list of comments.232 * Retrieves a list of comments. 233 233 * 234 234 * The comment list can be for the blog as a whole or for an individual post. … … 246 246 247 247 /** 248 * Retrieve all of the WordPress supported comment statuses.248 * Retrieves all of the WordPress supported comment statuses. 249 249 * 250 250 * Comments have a limited set of valid status values, this provides the comment … … 311 311 312 312 /** 313 * The date the last comment was modified.313 * Retrieves the date the last comment was modified. 314 314 * 315 315 * @since 1.5.0 … … 418 418 419 419 /** 420 * Add meta data field to a comment.420 * Adds meta data field to a comment. 421 421 * 422 422 * @since 2.9.0 … … 436 436 437 437 /** 438 * Remove metadata matching criteria from a comment.438 * Removes metadata matching criteria from a comment. 439 439 * 440 440 * You can match based on the key, or key and value. Removing based on key and … … 458 458 459 459 /** 460 * Retrieve comment meta field for a comment.460 * Retrieves comment meta field for a comment. 461 461 * 462 462 * @since 2.9.0 … … 480 480 481 481 /** 482 * Update comment meta field based on comment ID.482 * Updates comment meta field based on comment ID. 483 483 * 484 484 * Use the $prev_value parameter to differentiate between meta fields with the … … 978 978 979 979 /** 980 * Calculate the total number of comment pages.980 * Calculates the total number of comment pages. 981 981 * 982 982 * @since 2.7.0 … … 1035 1035 1036 1036 /** 1037 * Calculate what page number a comment will appear on for comment paging.1037 * Calculates what page number a comment will appear on for comment paging. 1038 1038 * 1039 1039 * @since 2.7.0 … … 1617 1617 1618 1618 /** 1619 * Marks a comment as Spam 1619 * Marks a comment as Spam. 1620 1620 * 1621 1621 * @since 2.9.0 … … 1665 1665 1666 1666 /** 1667 * Removes a comment from the Spam 1667 * Removes a comment from the Spam. 1668 1668 * 1669 1669 * @since 2.9.0 … … 1716 1716 1717 1717 /** 1718 * The status of a comment byID.1718 * Retrieves the status of a comment by comment ID. 1719 1719 * 1720 1720 * @since 1.0.0 … … 1747 1747 1748 1748 /** 1749 * Call hooks for when a comment status transition occurs.1749 * Calls hooks for when a comment status transition occurs. 1750 1750 * 1751 1751 * Calls hooks for comment status transitions. If the new comment status is not the same … … 1845 1845 1846 1846 /** 1847 * Clear the lastcommentmodified cached value when a comment status is changed.1847 * Clears the lastcommentmodified cached value when a comment status is changed. 1848 1848 * 1849 1849 * Deletes the lastcommentmodified cache key when a comment enters or leaves … … 1867 1867 1868 1868 /** 1869 * Get current commenter's name, email, and URL.1869 * Gets current commenter's name, email, and URL. 1870 1870 * 1871 1871 * Expects cookies content to already be sanitized. User of this function might … … 1919 1919 1920 1920 /** 1921 * Get unapproved comment author's email.1921 * Gets unapproved comment author's email. 1922 1922 * 1923 1923 * Used to allow the commenter to see their pending comment. … … 2118 2118 2119 2119 /** 2120 * Whether a comment should be blocked because of comment flood.2120 * Determines whether a comment should be blocked because of comment flood. 2121 2121 * 2122 2122 * @since 2.1.0 … … 2288 2288 2289 2289 /** 2290 * Send a comment moderation notification to the comment moderator.2290 * Sends a comment moderation notification to the comment moderator. 2291 2291 * 2292 2292 * @since 4.4.0 … … 2312 2312 2313 2313 /** 2314 * Send a notification of a new comment to the post author.2314 * Sends a notification of a new comment to the post author. 2315 2315 * 2316 2316 * @since 4.4.0 … … 2568 2568 2569 2569 /** 2570 * Whether to defer comment counting.2570 * Determines whether to defer comment counting. 2571 2571 * 2572 2572 * When setting $defer to true, all post comment counts will not be updated … … 2803 2803 2804 2804 /** 2805 * Perform all pingbacks, enclosures, trackbacks, and sendto pingback services.2805 * Performs all pingbacks, enclosures, trackbacks, and sends to pingback services. 2806 2806 * 2807 2807 * @since 2.1.0 … … 2818 2818 2819 2819 /** 2820 * Perform all pingbacks.2820 * Performs all pingbacks. 2821 2821 * 2822 2822 * @since 5.6.0 … … 2840 2840 2841 2841 /** 2842 * Perform all enclosures.2842 * Performs all enclosures. 2843 2843 * 2844 2844 * @since 5.6.0 … … 2862 2862 2863 2863 /** 2864 * Perform all trackbacks.2864 * Performs all trackbacks. 2865 2865 * 2866 2866 * @since 5.6.0 … … 2884 2884 2885 2885 /** 2886 * Perform trackbacks.2886 * Performs trackbacks. 2887 2887 * 2888 2888 * @since 1.5.0 … … 3072 3072 3073 3073 /** 3074 * Check whether blog is public before returning sites.3074 * Checks whether blog is public before returning sites. 3075 3075 * 3076 3076 * @since 2.1.0 … … 3088 3088 3089 3089 /** 3090 * Send a Trackback.3090 * Sends a Trackback. 3091 3091 * 3092 3092 * Updates database when sending trackback to prevent duplicates. … … 3129 3129 3130 3130 /** 3131 * Send a pingback.3131 * Sends a pingback. 3132 3132 * 3133 3133 * @since 1.2.0 … … 3154 3154 3155 3155 /** 3156 * Default filter attached to pingback_ping_source_uri to validate the pingback's Source URI 3156 * Default filter attached to pingback_ping_source_uri to validate the pingback's Source URI. 3157 3157 * 3158 3158 * @since 3.5.1 … … 3273 3273 3274 3274 /** 3275 * Close comments on old posts on the fly, without any extra DB queries. Hooked to the_posts.3275 * Closes comments on old posts on the fly, without any extra DB queries. Hooked to the_posts. 3276 3276 * 3277 3277 * @since 2.7.0 … … 3313 3313 3314 3314 /** 3315 * Close comments on an old post. Hooked to comments_open and pings_open.3315 * Closes comments on an old post. Hooked to comments_open and pings_open. 3316 3316 * 3317 3317 * @since 2.7.0
Note: See TracChangeset
for help on using the changeset viewer.