fix: desactivar carga de sistema viejo de theme options en functions.php
- Comentar carga de admin/theme-options/theme-options.php - Comentar carga de admin/theme-options/options-api.php - El nuevo Admin Panel (admin/init.php) ya se carga en línea 272 - Esto elimina conflicto entre sistema viejo y nuevo
This commit is contained in:
@@ -150,6 +150,8 @@ if (file_exists(get_template_directory() . '/inc/theme-options-helpers.php')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Admin Options API (Theme Options)
|
// Admin Options API (Theme Options)
|
||||||
|
// DESACTIVADO: Ahora se usa el nuevo Admin Panel (admin/init.php se carga más abajo)
|
||||||
|
/*
|
||||||
if (is_admin()) {
|
if (is_admin()) {
|
||||||
if (file_exists(get_template_directory() . '/admin/theme-options/options-api.php')) {
|
if (file_exists(get_template_directory() . '/admin/theme-options/options-api.php')) {
|
||||||
require_once get_template_directory() . '/admin/theme-options/options-api.php';
|
require_once get_template_directory() . '/admin/theme-options/options-api.php';
|
||||||
@@ -158,6 +160,7 @@ if (is_admin()) {
|
|||||||
require_once get_template_directory() . '/admin/theme-options/theme-options.php';
|
require_once get_template_directory() . '/admin/theme-options/theme-options.php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Bootstrap Nav Walker
|
// Bootstrap Nav Walker
|
||||||
if (file_exists(get_template_directory() . '/inc/nav-walker.php')) {
|
if (file_exists(get_template_directory() . '/inc/nav-walker.php')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user