Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit( 1 );
}
$icon_pack = get_option( 'thrive_icon_pack' );
if ( ! empty( $icon_pack ) && ! empty( $icon_pack['folder'] ) ) {
$css_file = trailingslashit( $icon_pack['folder'] ) . basename( $icon_pack['css'] );
$old_umask = umask( 0 );
if ( is_file( $css_file ) && is_writable( $css_file ) ) {
$file_contents = file_get_contents( $css_file );
$font_family = $icon_pack['fontFamily'];
$file_contents = str_replace( "font-family: '{$font_family}' !important;", "font-family: '{$font_family}';", $file_contents );
$search = "font-family: '{$font_family}';";
$replacement = "font-family: '{$font_family}' !important;";
$position_found = strpos( $file_contents, $search, strpos( $file_contents, 'url' ) );
if ( $position_found ) {
$file_contents = substr_replace( $file_contents, $replacement, $position_found, strlen( $search ) );
}
if ( file_put_contents( $css_file, $file_contents ) ) {
$icon_pack['css_version'] = rand( 1, 9 ) . '.' . str_pad( rand( 1, 99 ), 2, '0', STR_PAD_LEFT );
update_option( 'thrive_icon_pack', $icon_pack );
}
}
}

View File

@@ -0,0 +1,2 @@
<?php
// silence is golden

View File

@@ -0,0 +1,16 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit( 1 );
}
/** @var TD_DB_Migration $installer */
$installer = $this;
$installer->create_table( 'api_error_log', '
`id` INT( 11 ) AUTO_INCREMENT,
`date` DATETIME NULL,
`error_message` VARCHAR( 400 ) NULL,
`api_data` TEXT NULL,
`connection` VARCHAR( 64 ) NULL,
`list_id` VARCHAR( 255 ) NULL,
PRIMARY KEY( `id` )' );

View File

@@ -0,0 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit( 1 );
}
/* delete this option, as it was saved incorrectly before this version. This will be rebuilt when users select a menu template */
delete_option( 'tve_menu_item_templates' );