$metadata = wp_generate_attachment_metadata( $attachment_id, $file );
/**
- * Filter the site icon attachment metadata.
+ * Filters the site icon attachment metadata.
*
* @since 4.3.0
*
$only_crop_sizes = array();
/**
- * Filter the different dimensions that a site icon is saved in.
+ * Filters the different dimensions that a site icon is saved in.
*
* @since 4.3.0
*
return $value;
}
}
-
-/**
- * @global WP_Site_Icon $wp_site_icon
- */
-$GLOBALS['wp_site_icon'] = new WP_Site_Icon;