Changeset 58187 for trunk/src/wp-includes/blocks/site-logo.php
- Timestamp:
- 05/23/2024 07:37:08 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/site-logo.php
r56065 r58187 8 8 /** 9 9 * Renders the `core/site-logo` block on the server. 10 * 11 * @since 5.8.0 10 12 * 11 13 * @param array $attributes The block attributes. … … 61 63 /** 62 64 * Register a core site setting for a site logo 65 * 66 * @since 5.8.0 63 67 */ 64 68 function register_block_core_site_logo_setting() { … … 71 75 ), 72 76 'type' => 'integer', 77 'label' => __( 'Logo' ), 73 78 'description' => __( 'Site logo.' ), 74 79 ) … … 80 85 /** 81 86 * Register a core site setting for a site icon 87 * 88 * @since 5.9.0 82 89 */ 83 90 function register_block_core_site_icon_setting() { … … 88 95 'show_in_rest' => true, 89 96 'type' => 'integer', 97 'label' => __( 'Icon' ), 90 98 'description' => __( 'Site icon.' ), 91 99 ) … … 97 105 /** 98 106 * Registers the `core/site-logo` block on the server. 107 * 108 * @since 5.8.0 99 109 */ 100 110 function register_block_core_site_logo() { … … 112 122 * Overrides the custom logo with a site logo, if the option is set. 113 123 * 124 * @since 5.8.0 125 * 114 126 * @param string $custom_logo The custom logo set by a theme. 115 127 * … … 125 137 /** 126 138 * Updates the site_logo option when the custom_logo theme-mod gets updated. 139 * 140 * @since 5.8.0 127 141 * 128 142 * @param mixed $value Attachment ID of the custom logo or an empty value. … … 144 158 * Deletes the site_logo when the custom_logo theme mod is removed. 145 159 * 160 * @since 5.8.0 161 * 146 162 * @param array $old_value Previous theme mod settings. 147 163 * @param array $value Updated theme mod settings. … … 162 178 /** 163 179 * Deletes the site logo when all theme mods are being removed. 180 * 181 * @since 5.8.0 164 182 */ 165 183 function _delete_site_logo_on_remove_theme_mods() { … … 180 198 * 181 199 * Runs on `setup_theme` to account for dynamically-switched themes in the Customizer. 200 * 201 * @since 5.8.0 182 202 */ 183 203 function _delete_site_logo_on_remove_custom_logo_on_setup_theme() { … … 190 210 /** 191 211 * Removes the custom_logo theme-mod when the site_logo option gets deleted. 212 * 213 * @since 5.9.0 192 214 */ 193 215 function _delete_custom_logo_on_remove_site_logo() {
Note: See TracChangeset
for help on using the changeset viewer.