equal
deleted
inserted
replaced
157 /** |
157 /** |
158 * Deletes the site_logo when the custom_logo theme mod is removed. |
158 * Deletes the site_logo when the custom_logo theme mod is removed. |
159 * |
159 * |
160 * @since 5.8.0 |
160 * @since 5.8.0 |
161 * |
161 * |
|
162 * @global array $_ignore_site_logo_changes |
|
163 * |
162 * @param array $old_value Previous theme mod settings. |
164 * @param array $old_value Previous theme mod settings. |
163 * @param array $value Updated theme mod settings. |
165 * @param array $value Updated theme mod settings. |
164 */ |
166 */ |
165 function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) { |
167 function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) { |
166 global $_ignore_site_logo_changes; |
168 global $_ignore_site_logo_changes; |
177 |
179 |
178 /** |
180 /** |
179 * Deletes the site logo when all theme mods are being removed. |
181 * Deletes the site logo when all theme mods are being removed. |
180 * |
182 * |
181 * @since 5.8.0 |
183 * @since 5.8.0 |
|
184 * |
|
185 * @global array $_ignore_site_logo_changes |
182 */ |
186 */ |
183 function _delete_site_logo_on_remove_theme_mods() { |
187 function _delete_site_logo_on_remove_theme_mods() { |
184 global $_ignore_site_logo_changes; |
188 global $_ignore_site_logo_changes; |
185 |
189 |
186 if ( $_ignore_site_logo_changes ) { |
190 if ( $_ignore_site_logo_changes ) { |
209 |
213 |
210 /** |
214 /** |
211 * Removes the custom_logo theme-mod when the site_logo option gets deleted. |
215 * Removes the custom_logo theme-mod when the site_logo option gets deleted. |
212 * |
216 * |
213 * @since 5.9.0 |
217 * @since 5.9.0 |
|
218 * |
|
219 * @global array $_ignore_site_logo_changes |
214 */ |
220 */ |
215 function _delete_custom_logo_on_remove_site_logo() { |
221 function _delete_custom_logo_on_remove_site_logo() { |
216 global $_ignore_site_logo_changes; |
222 global $_ignore_site_logo_changes; |
217 |
223 |
218 // Prevent _delete_site_logo_on_remove_custom_logo and |
224 // Prevent _delete_site_logo_on_remove_custom_logo and |