Make WordPress Core


Ignore:
Timestamp:
05/25/2023 12:53:24 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Improve formatting of some SQL queries for better readability.

This corrects the placement of double quotes around the query and makes sure the alignment is consistent.

Props umeshmcakadi, mukesh27, krupalpanchal, dhrumilk, SergeyBiryukov.
Fixes #58372.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r55747 r55857  
    35463546    $users = $wpdb->get_col(
    35473547        $wpdb->prepare(
    3548             "
    3549         SELECT user_id
    3550         FROM $wpdb->usermeta
    3551         WHERE meta_key = '{$prefix}capabilities'
    3552         AND meta_value NOT REGEXP %s
    3553     ",
     3548            "SELECT user_id
     3549            FROM $wpdb->usermeta
     3550            WHERE meta_key = '{$prefix}capabilities'
     3551            AND meta_value NOT REGEXP %s",
    35543552            $regex
    35553553        )
Note: See TracChangeset for help on using the changeset viewer.