fix: desactivar registros duplicados de menú en Apariencia
- Comentar add_theme_page() en inc/admin/theme-options.php - Comentar add_theme_page() en admin/theme-options/theme-options.php - Estos archivos viejos estaban registrando 'Theme Options' en menú Apariencia - Ahora solo se usa el nuevo registro en admin/includes/class-admin-menu.php - Elimina conflicto que mostraba el menú en dos lugares
This commit is contained in:
@@ -13,7 +13,9 @@ if (!defined('ABSPATH')) {
|
||||
|
||||
/**
|
||||
* Add admin menu
|
||||
* DESACTIVADO: Ahora se usa el nuevo Admin Panel en admin/includes/class-admin-menu.php
|
||||
*/
|
||||
/*
|
||||
function apus_add_admin_menu() {
|
||||
add_theme_page(
|
||||
__('Apus Theme Options', 'apus-theme'), // Page title
|
||||
@@ -25,6 +27,7 @@ function apus_add_admin_menu() {
|
||||
);
|
||||
}
|
||||
add_action('admin_menu', 'apus_add_admin_menu');
|
||||
*/
|
||||
|
||||
/**
|
||||
* Render the options page
|
||||
|
||||
@@ -13,7 +13,9 @@ if (!defined('ABSPATH')) {
|
||||
|
||||
/**
|
||||
* Add admin menu
|
||||
* DESACTIVADO: Ahora se usa el nuevo Admin Panel en admin/includes/class-admin-menu.php
|
||||
*/
|
||||
/*
|
||||
function apus_add_admin_menu() {
|
||||
add_theme_page(
|
||||
__('Apus Theme Options', 'apus-theme'), // Page title
|
||||
@@ -25,6 +27,7 @@ function apus_add_admin_menu() {
|
||||
);
|
||||
}
|
||||
add_action('admin_menu', 'apus_add_admin_menu');
|
||||
*/
|
||||
|
||||
/**
|
||||
* Render the options page
|
||||
|
||||
Reference in New Issue
Block a user