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,46 @@
<?php
/**
* Elastic Email Sender
* https://wordpress.org/plugins/elastic-email-sender/
*/
if ( ! class_exists( 'BWFAN_Compatibility_With_Elastic_Email' ) ) {
class BWFAN_Compatibility_With_Elastic_Email {
public function __construct() {
add_action( 'bwfan_before_send_email', array( $this, 'remove_elastic_email_settings' ) );
}
/**
* Disable elastic email settings
*
* @return void
*/
public static function remove_elastic_email_settings( $data ) {
/** Set mime type by default text/html **/
if ( 'texthtml' === get_option( 'ee_mimetype' ) ) {
return;
}
add_filter( 'pre_option_ee_mimetype', function ( $value ) {
return 'texthtml';
}, PHP_INT_MAX );
/** Set From email **/
add_filter( 'pre_option_ee_config_from_name', function ( $return ) use ( $data ) {
$from_email = isset( $data['senders_email'] ) ? $data['senders_email'] : $data['from_email'];
return ! empty( $from_email ) ? $from_email : $return;
}, PHP_INT_MAX );
/** Set From email **/
add_filter( 'pre_option_ee_config_from_email', function ( $return ) use ( $data ) {
$from_name = isset( $data['senders_name'] ) ? $data['senders_name'] : $data['from_name'];
return ! empty( $from_name ) ? $from_name : $return;
}, PHP_INT_MAX );
}
}
new BWFAN_Compatibility_With_Elastic_Email();
}

View File

@@ -0,0 +1,34 @@
<?php
/**
* WP Offload SES
* https://wordpress.org/plugins/wp-ses/
*/
if ( ! class_exists( 'BWFAN_Compatibility_With_WP_SES' ) ) {
class BWFAN_Compatibility_With_WP_SES {
public function __construct() {
add_action( 'bwfan_before_send_email', array( $this, 'disable_open_click_tracking' ) );
}
/**
* Disable open click tracking to improve performance
*/
public static function disable_open_click_tracking( $data ) {
/** WP Offload SES option settings */
$wp_ses_settings = get_option( 'wposes_settings' );
if ( empty( $wp_ses_settings ) || ! is_array( $wp_ses_settings ) ) {
return;
}
add_filter( 'pre_option_wposes_settings', function ( $value_return ) use ( $wp_ses_settings ) {
$wp_ses_settings['enable-click-tracking'] = '0';
$wp_ses_settings['enable-open-tracking'] = '0';
return $wp_ses_settings;
}, PHP_INT_MAX );
}
}
new BWFAN_Compatibility_With_WP_SES();
}

View File

@@ -0,0 +1,22 @@
<?php
/**
* WP Mail SMTP
* https://wordpress.org/plugins/wp-mail-smtp/
*/
if ( ! class_exists( 'BWFAN_Compatibility_With_WP_SMTP' ) ) {
class BWFAN_Compatibility_With_WP_SMTP {
/**
* checking for smart routing/Backup connection enabled
*
* @return bool
*/
public static function has_multiple_connections() {
if ( ! class_exists( 'WPMailSMTP\Options' ) ) {
return false;
}
return ( WPMailSMTP\Options::init()->get( 'smart_routing', 'enabled' ) || WPMailSMTP\Options::init()->get( 'backup_connection', 'connection_id' ) );
}
}
}

View File

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