Ticket #57069: 57069.12.patch
File 57069.12.patch, 2.6 KB (added by , 21 months ago) |
---|
-
wp-includes/blocks/calendar.php
7 7 8 8 /** 9 9 * Renders the `core/calendar` block on server. 10 * 11 * @global int $monthnum Month number.. 12 * @global int $year Year number. 10 13 * 11 14 * @param array $attributes The block attributes. 12 15 * … … 97 100 /** 98 101 * Queries the database for any published post and saves 99 102 * a flag whether any published post exists or not. 103 * 104 * @global wpdb $wpdb WordPress database abstraction object. 100 105 * 101 106 * @return bool Has any published posts or not. 102 107 */ -
wp-includes/blocks/comments.php
15 15 * As this callback will always run during SSR, first we need to check whether 16 16 * the block is in legacy mode. If not, the HTML generated in the editor is 17 17 * returned instead. 18 * 19 * @global WP_Post $post Global post object. 18 20 * 19 21 * @param array $attributes Block attributes. 20 22 * @param string $content Block default content. -
wp-includes/blocks/latest-comments.php
21 21 * so duplicating it isn't too terrible. 22 22 * 23 23 * @since 3.3.0 24 * 25 * @global WP_Post $post Global post object. 24 26 * 25 27 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. 26 28 * @return string The post title if set; "(no title)" if no title is set. -
wp-includes/blocks/latest-posts.php
17 17 /** 18 18 * Callback for the excerpt_length filter used by 19 19 * the Latest Posts block at render time. 20 * 21 * @global int $block_core_latest_posts_excerpt_length 20 22 * 21 23 * @return int Returns the global $block_core_latest_posts_excerpt_length variable 22 24 * to allow the excerpt_length filter respect the Latest Block setting. … … 28 30 29 31 /** 30 32 * Renders the `core/latest-posts` block on server. 33 * 34 * @global WP_Post $post Global post object. 35 * @global int $block_core_latest_posts_excerpt_length. 31 36 * 32 37 * @param array $attributes The block attributes. 33 38 *