mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Docs: Another pass at some inline docs fixes mostly made by PHPCBF.
See #49572, #50744 git-svn-id: https://develop.svn.wordpress.org/trunk@48590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1062,15 +1062,16 @@ function get_comment_pages_count( $comments = null, $per_page = null, $threaded
|
||||
*
|
||||
* @param int $comment_ID Comment ID.
|
||||
* @param array $args {
|
||||
* Array of optional arguments.
|
||||
* @type string $type Limit paginated comments to those matching a given type.
|
||||
* Accepts 'comment', 'trackback', 'pingback', 'pings'
|
||||
* (trackbacks and pingbacks), or 'all'. Default 'all'.
|
||||
* @type int $per_page Per-page count to use when calculating pagination.
|
||||
* Defaults to the value of the 'comments_per_page' option.
|
||||
* @type int|string $max_depth If greater than 1, comment page will be determined
|
||||
* for the top-level parent `$comment_ID`.
|
||||
* Defaults to the value of the 'thread_comments_depth' option.
|
||||
* Array of optional arguments.
|
||||
*
|
||||
* @type string $type Limit paginated comments to those matching a given type.
|
||||
* Accepts 'comment', 'trackback', 'pingback', 'pings'
|
||||
* (trackbacks and pingbacks), or 'all'. Default 'all'.
|
||||
* @type int $per_page Per-page count to use when calculating pagination.
|
||||
* Defaults to the value of the 'comments_per_page' option.
|
||||
* @type int|string $max_depth If greater than 1, comment page will be determined
|
||||
* for the top-level parent `$comment_ID`.
|
||||
* Defaults to the value of the 'thread_comments_depth' option.
|
||||
* } *
|
||||
* @return int|null Comment page number or null on error.
|
||||
*/
|
||||
@@ -2114,9 +2115,9 @@ function wp_filter_comment( $commentdata ) {
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param bool $block Whether plugin has already blocked comment.
|
||||
* @param int $time_lastcomment Timestamp for last comment.
|
||||
* @param int $time_newcomment Timestamp for new comment.
|
||||
* @param bool $block Whether plugin has already blocked comment.
|
||||
* @param int $time_lastcomment Timestamp for last comment.
|
||||
* @param int $time_newcomment Timestamp for new comment.
|
||||
* @return bool Whether comment should be blocked.
|
||||
*/
|
||||
function wp_throttle_comment_flood( $block, $time_lastcomment, $time_newcomment ) {
|
||||
@@ -2172,8 +2173,8 @@ function wp_throttle_comment_flood( $block, $time_lastcomment, $time_newcomment
|
||||
* @type string $comment_author_IP Comment author IP address in IPv4 format. Default is the value of
|
||||
* 'REMOTE_ADDR' in the `$_SERVER` superglobal sent in the original request.
|
||||
* }
|
||||
* @param bool $wp_error Should errors be returned as WP_Error objects instead of
|
||||
* executing wp_die()? Default false.
|
||||
* @param bool $wp_error Should errors be returned as WP_Error objects instead of
|
||||
* executing wp_die()? Default false.
|
||||
* @return int|false|WP_Error The ID of the comment on success, false or WP_Error on failure.
|
||||
*/
|
||||
function wp_new_comment( $commentdata, $wp_error = false ) {
|
||||
@@ -2710,8 +2711,8 @@ function wp_update_comment_count_now( $post_id ) {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @param string $url URL to ping.
|
||||
* @param int $deprecated Not Used.
|
||||
* @param string $url URL to ping.
|
||||
* @param int $deprecated Not Used.
|
||||
* @return string|false String containing URI on success, false on failure.
|
||||
*/
|
||||
function discover_pingback_server_uri( $url, $deprecated = '' ) {
|
||||
@@ -2940,7 +2941,7 @@ function generic_ping( $post_id = 0 ) {
|
||||
* @since 0.71
|
||||
* @since 4.7.0 `$post_id` can be a WP_Post object.
|
||||
*
|
||||
* @param string $content Post content to check for links. If empty will retrieve from post.
|
||||
* @param string $content Post content to check for links. If empty will retrieve from post.
|
||||
* @param int|WP_Post $post_id Post Object or ID.
|
||||
*/
|
||||
function pingback( $content, $post_id ) {
|
||||
@@ -3067,9 +3068,9 @@ function privacy_ping_filter( $sites ) {
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $trackback_url URL to send trackbacks.
|
||||
* @param string $title Title of post.
|
||||
* @param string $excerpt Excerpt of post.
|
||||
* @param int $ID Post ID.
|
||||
* @param string $title Title of post.
|
||||
* @param string $excerpt Excerpt of post.
|
||||
* @param int $ID Post ID.
|
||||
* @return int|false|void Database query from update.
|
||||
*/
|
||||
function trackback( $trackback_url, $title, $excerpt, $ID ) {
|
||||
@@ -3286,8 +3287,8 @@ function _close_comments_for_old_posts( $posts, $query ) {
|
||||
* @since 2.7.0
|
||||
* @access private
|
||||
*
|
||||
* @param bool $open Comments open or closed
|
||||
* @param int $post_id Post ID
|
||||
* @param bool $open Comments open or closed.
|
||||
* @param int $post_id Post ID.
|
||||
* @return bool $open
|
||||
*/
|
||||
function _close_comments_for_old_post( $open, $post_id ) {
|
||||
|
||||
Reference in New Issue
Block a user