Changeset 58187 for trunk/src/wp-includes/blocks/calendar.php
- Timestamp:
- 05/23/2024 07:37:08 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/calendar.php
r57377 r58187 8 8 /** 9 9 * Renders the `core/calendar` block on server. 10 * 11 * @since 5.2.0 12 * 13 * @global int $monthnum. 14 * @global int $year. 10 15 * 11 16 * @param array $attributes The block attributes. … … 77 82 /** 78 83 * Registers the `core/calendar` block on server. 84 * 85 * @since 5.2.0 79 86 */ 80 87 function register_block_core_calendar() { … … 94 101 * Used to hide the calendar block when there are no published posts. 95 102 * This compensates for a known Core bug: https://core.trac.wordpress.org/ticket/12016 103 * 104 * @since 5.9.0 96 105 * 97 106 * @return bool Has any published posts or not. … … 118 127 * a flag whether any published post exists or not. 119 128 * 129 * @since 5.9.0 130 * 131 * @global wpdb $wpdb WordPress database abstraction object. 132 * 120 133 * @return bool Has any published posts or not. 121 134 */ … … 133 146 * Handler for updating the has published posts flag when a post is deleted. 134 147 * 148 * @since 5.9.0 149 * 135 150 * @param int $post_id Deleted post ID. 136 151 */ … … 147 162 /** 148 163 * Handler for updating the has published posts flag when a post status changes. 164 * 165 * @since 5.9.0 149 166 * 150 167 * @param string $new_status The status the post is changing to.
Note: See TracChangeset
for help on using the changeset viewer.