updated plugin Menu Icons version 0.12.4

This commit is contained in:
2020-07-24 14:08:54 +00:00
committed by Gitium
parent 7e9ae89290
commit 4b9aecd896
54 changed files with 10903 additions and 245 deletions

View File

@ -11,7 +11,7 @@
* Plugin name: Menu Icons
* Plugin URI: https://github.com/Codeinwp/wp-menu-icons
* Description: Spice up your navigation menus with pretty icons, easily.
* Version: 0.12.2
* Version: 0.12.4
* Author: ThemeIsle
* Author URI: https://themeisle.com
* License: GPLv2
@ -27,7 +27,7 @@
*/
final class Menu_Icons {
const VERSION = '0.12.2';
const VERSION = '0.12.4';
/**
* Holds plugin data
@ -80,22 +80,7 @@ final class Menu_Icons {
'url' => plugin_dir_url( __FILE__ ),
'types' => array(),
);
$vendor_file = dirname(__FILE__) . '/vendor/autoload.php';
if ( is_readable( $vendor_file ) ) {
require_once $vendor_file;
}
// Load Icon Picker.
if ( ! class_exists( 'Icon_Picker' ) ) {
$ip_file = self::$data['dir'] . 'includes/library/icon-picker/icon-picker.php';
if ( file_exists( $ip_file ) ) {
require_once $ip_file;
} else {
add_action( 'admin_notices', array( __CLASS__, '_notice_missing_icon_picker' ) );
return;
}
}
Icon_Picker::instance();
require_once self::$data['dir'] . 'includes/library/compat.php';
@ -171,6 +156,12 @@ final class Menu_Icons {
}
add_action( 'plugins_loaded', array( 'Menu_Icons', '_load' ) );
$vendor_file = dirname(__FILE__) . '/vendor/autoload.php';
if ( is_readable( $vendor_file ) ) {
require_once $vendor_file;
}
add_filter( 'themeisle_sdk_products', 'kucrut_register_sdk', 10, 1 );
function kucrut_register_sdk( $products ) {