mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-07-11 10:36:03 +09:00
Make admin object global
To make it easier to alter the admin behavior the admin object should be made into a global variable. This addresses that.
This commit is contained in:
+3
-1
@@ -344,6 +344,8 @@ add_action( 'genesis_admin_menu', 'simplesidebars_settings_menu' );
|
|||||||
*/
|
*/
|
||||||
function simplesidebars_settings_menu() {
|
function simplesidebars_settings_menu() {
|
||||||
|
|
||||||
new Genesis_Simple_Sidebars_Admin;
|
global $_genesis_simple_sidebars_admin;
|
||||||
|
|
||||||
|
$_genesis_simple_sidebars_admin = new Genesis_Simple_Sidebars_Admin;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user