Fix Bootstrap Icons: Mover de CDN a local - Issue #135

PROBLEMA:
- Iconos de share buttons no se mostraban en staging
- Bootstrap Icons CDN causaba SecurityError (CORS)
- Browser bloqueaba acceso a cssRules del stylesheet cross-origin
- content: "" vacío en ::before pseudo-elements

SOLUCIÓN:
- Descargar Bootstrap Icons v1.11.3 localmente
- assets/vendor/bootstrap-icons.min.css (85KB)
- assets/vendor/fonts/ con woff2 y woff (298KB total)
- Actualizar enqueue-scripts.php para cargar local
- Agregar dependencia en apus-bootstrap
- Version 1.0.12 -> 1.0.13

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-08 18:06:25 -06:00
parent c761885c8e
commit 09b41a505c
5 changed files with 9 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -14,7 +14,7 @@ if (!defined('ABSPATH')) {
/**
* Theme Version
*/
define('APUS_VERSION', '1.0.12');
define('APUS_VERSION', '1.0.13');
/**
* Theme Setup

View File

@@ -49,11 +49,11 @@ function apus_enqueue_bootstrap() {
'all'
);
// Bootstrap Icons CSS - from CDN
// Bootstrap Icons CSS - LOCAL (Issue #135: CORS bloqueaba CDN)
wp_enqueue_style(
'bootstrap-icons',
'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css',
array(),
get_template_directory_uri() . '/assets/vendor/bootstrap-icons.min.css',
array('apus-bootstrap'),
'1.11.3',
'all'
);