Commit b69215ea authored by Erick Hitter's avatar Erick Hitter

Always note why coding standards are ignored

parent 5fdb37d5
......@@ -404,7 +404,7 @@ class Events_Store extends Singleton {
$query = $wpdb->prepare( "SELECT * FROM {$this->get_table_name()} WHERE status = %s LIMIT %d,%d;", $args['status'], $offset, $args['quantity'] ); // Cannot prepare table name. @codingStandardsIgnoreLine
}
$jobs = $wpdb->get_results( $query, 'OBJECT' ); // @codingStandardsIgnoreLine
$jobs = $wpdb->get_results( $query, 'OBJECT' ); // Already prepared. @codingStandardsIgnoreLine
if ( is_array( $jobs ) ) {
$jobs = array_map( array( $this, 'format_job' ), $jobs );
......@@ -490,7 +490,7 @@ class Events_Store extends Singleton {
$query .= ' LIMIT 1';
// Query and format results.
$job = $wpdb->get_row( $query ); // @codingStandardsIgnoreLine
$job = $wpdb->get_row( $query ); // Already prepared. @codingStandardsIgnoreLine
if ( is_object( $job ) && ! is_wp_error( $job ) ) {
$job = $this->format_job( $job );
......
......@@ -34,7 +34,7 @@ function prepare_environment() {
// Set DOING_CRON when appropriate.
if ( isset( $cmd[1] ) && 'orchestrate' === $cmd[1] ) {
@ini_set( 'display_errors', '0' ); // @codingStandardsIgnoreLine - error output breaks JSON used by runner
@ini_set( 'display_errors', '0' ); // Error output breaks JSON used by runner. @codingStandardsIgnoreLine
\Automattic\WP\Cron_Control\set_doing_cron();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment