|
@@ -5,6 +5,12 @@ function lnr24_enqueue_assets() {
|
|
}
|
|
}
|
|
add_action( 'wp_enqueue_scripts', 'lnr24_enqueue_assets' );
|
|
add_action( 'wp_enqueue_scripts', 'lnr24_enqueue_assets' );
|
|
|
|
|
|
|
|
+function lnr24_theme_setup() {
|
|
|
|
+ add_theme_support( 'editor-styles' );
|
|
|
|
+ add_editor_style( 'style-editor.css' );
|
|
|
|
+}
|
|
|
|
+add_action( 'after_setup_theme', 'lnr24_theme_setup' );
|
|
|
|
+
|
|
/***********************************************************
|
|
/***********************************************************
|
|
###################### BrowserSync #########################
|
|
###################### BrowserSync #########################
|
|
************************************************************/
|
|
************************************************************/
|
|
@@ -78,7 +84,7 @@ add_action( 'admin_menu', 'lnr24_remove_admin_pages', 99 );
|
|
function lnr24_remove_admin_pages() {
|
|
function lnr24_remove_admin_pages() {
|
|
global $current_user;
|
|
global $current_user;
|
|
$user_id = get_current_user_id();
|
|
$user_id = get_current_user_id();
|
|
- if($user_id != '1') {
|
|
|
|
|
|
+ if($user_id != '0') {
|
|
remove_menu_page('plugins.php');
|
|
remove_menu_page('plugins.php');
|
|
remove_menu_page('tools.php');
|
|
remove_menu_page('tools.php');
|
|
remove_menu_page('options-general.php');
|
|
remove_menu_page('options-general.php');
|