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:
FrankZamora
2025-11-13 23:05:17 -06:00
parent 9e29410c0d
commit 49b923230f
2 changed files with 6 additions and 0 deletions

View File

@@ -13,7 +13,9 @@ if (!defined('ABSPATH')) {
/** /**
* Add admin menu * Add admin menu
* DESACTIVADO: Ahora se usa el nuevo Admin Panel en admin/includes/class-admin-menu.php
*/ */
/*
function apus_add_admin_menu() { function apus_add_admin_menu() {
add_theme_page( add_theme_page(
__('Apus Theme Options', 'apus-theme'), // Page title __('Apus Theme Options', 'apus-theme'), // Page title
@@ -25,6 +27,7 @@ function apus_add_admin_menu() {
); );
} }
add_action('admin_menu', 'apus_add_admin_menu'); add_action('admin_menu', 'apus_add_admin_menu');
*/
/** /**
* Render the options page * Render the options page

View File

@@ -13,7 +13,9 @@ if (!defined('ABSPATH')) {
/** /**
* Add admin menu * Add admin menu
* DESACTIVADO: Ahora se usa el nuevo Admin Panel en admin/includes/class-admin-menu.php
*/ */
/*
function apus_add_admin_menu() { function apus_add_admin_menu() {
add_theme_page( add_theme_page(
__('Apus Theme Options', 'apus-theme'), // Page title __('Apus Theme Options', 'apus-theme'), // Page title
@@ -25,6 +27,7 @@ function apus_add_admin_menu() {
); );
} }
add_action('admin_menu', 'apus_add_admin_menu'); add_action('admin_menu', 'apus_add_admin_menu');
*/
/** /**
* Render the options page * Render the options page