| @@ -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 ), |