Changeset 35299 for trunk/src/wp-admin/includes/class-wp-site-icon.php
- Timestamp:
- 10/20/2015 06:22:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-icon.php
r35271 r35299 230 230 */ 231 231 public function get_post_metadata( $value, $post_id, $meta_key, $single ) { 232 $site_icon_id = get_option( 'site_icon' ); 233 234 if ( $post_id == $site_icon_id && '_wp_attachment_backup_sizes' == $meta_key && $single ) { 235 add_filter( 'intermediate_image_sizes', array( $this, 'intermediate_image_sizes' ) ); 232 if ( $single && '_wp_attachment_backup_sizes' === $meta_key ) { 233 $site_icon_id = get_option( 'site_icon' ); 234 235 if ( $post_id == $site_icon_id ) { 236 add_filter( 'intermediate_image_sizes', array( $this, 'intermediate_image_sizes' ) ); 237 } 236 238 } 237 239
Note: See TracChangeset
for help on using the changeset viewer.