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,35 @@
<?php declare(strict_types = 1);
/**
* Abstract output class for HTTP headers.
*
* @package query-monitor
*/
abstract class QM_Output_Headers extends QM_Output {
/**
* @return void
*/
public function output() {
$id = $this->collector->id;
foreach ( $this->get_output() as $key => $value ) {
if ( ! is_scalar( $value ) ) {
$value = json_encode( $value );
}
# Remove illegal characters (Header value may not contain NUL bytes)
if ( is_string( $value ) ) {
$value = str_replace( chr( 0 ), '', $value );
}
# Remove illegal characters (Header name may not contain underscores)
$key = str_replace( '_', '-', $key );
header( sprintf( 'X-QM-%s-%s: %s', $id, $key, $value ) );
}
}
}