PluginProbe
Sharing Image / 3.7
Sharing Image v3.7
3.10 trunk 2.0 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0 3.1 3.2 3.3 All 29 releases
← All changes | classes/class-settings.php +2 -3 3.33.7 View file →
@@ -47,10 +47,9 @@
47 47 /**
48 48 * Init class actions and filters.
49 49 */
50 50 public static function init() {
51 - self::init_tabs();
52 -
51 + add_action( 'admin_init', array( __CLASS__, 'init_tabs' ) );
53 52 add_action( 'admin_menu', array( __CLASS__, 'add_menu' ) );
54 53 add_action( 'admin_title', array( __CLASS__, 'update_settings_title' ) );
55 54 add_action( 'admin_init', array( __CLASS__, 'allow_custom_fonts' ) );
56 55
@@ -381,9 +380,9 @@
381 380
382 381 /**
383 382 * Set list of settings page tabs.
384 383 */
385 - private static function init_tabs() {
384 + public static function init_tabs() {
386 385 $tabs = array(
387 386 'templates' => array(
388 387 'label' => __( 'Templates', 'sharing-image' ),
389 388 'link' => admin_url( 'options-general.php?page=' . self::SETTINGS_SLUG ),