Files
roi-theme/wp-content/plugins/query-monitor/classes/Doing_It_Wrong_Run.php
root a22573bf0b 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>
2025-11-03 21:04:30 -06:00

40 lines
892 B
PHP
Executable File

<?php declare(strict_types = 1);
/**
* Class representing a doing it wrong run.
*
* @package query-monitor
*/
/**
* @extends QM_Wrong<array{
* function_name: string,
* message: string,
* version: string,
* }>
*/
final class QM_Doing_It_Wrong_Run extends QM_Wrong {
public function get_message(): string {
[
'function_name' => $function_name,
'message' => $message,
'version' => $version,
] = $this->args;
if ( $version ) {
$version = sprintf(
/* translators: %s: Version number. */
__( '(This message was added in version %s.)', 'query-monitor' ),
$version
);
}
return sprintf(
/* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: WordPress version number. */
__( 'Function %1$s was called incorrectly. %2$s %3$s', 'query-monitor' ),
$function_name,
$message,
$version
);
}
}