mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-31 14:10:28 +00:00
Coding Standards: Remove redundant ignore annotations.
This removes ignore annotations which are ignoring an error which would not be thrown for that code. Includes tidying up the format of the ignore annotation: * Customary one space between the `//` and the start of the comment. * There should be no spaces in the comma-separated sniff list. Follow-up to [45607], [47185], [49200], [53152]. Props jrf. See #59161. git-svn-id: https://develop.svn.wordpress.org/trunk@56738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -957,7 +957,6 @@ function redirect_guess_404_permalink() {
|
||||
// If any of post_type, year, monthnum, or day are set, use them to refine the query.
|
||||
if ( get_query_var( 'post_type' ) ) {
|
||||
if ( is_array( get_query_var( 'post_type' ) ) ) {
|
||||
// phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare
|
||||
$where .= " AND post_type IN ('" . join( "', '", esc_sql( get_query_var( 'post_type' ) ) ) . "')";
|
||||
} else {
|
||||
$where .= $wpdb->prepare( ' AND post_type = %s', get_query_var( 'post_type' ) );
|
||||
|
||||
Reference in New Issue
Block a user