/** * Gets an array of data for icon sets of the current * site on a multisite install. * * @since 1.4.6 * @return array An array of data for each icon set. */ public static function get_sets_for_current_site() { if (!is_multisite()) { return self::get_sets(); } // Store the original sets. $original_sets = self::$sets; // Register the icon sets. self::register_custom_sets(); self::register_core_sets(); // Get the new sets. $sets = self::$sets; // Revert to the original sets. self::$sets = $original_sets; // Return the sets. return $sets; }