WordPress.org

Make WordPress Core

Changeset 43630


Ignore:
Timestamp:
09/05/2018 12:49:29 PM (15 months ago)
Author:
flixos90
Message:

Upgrade/Install: Fix coding standard errors after [43629].

See #44896.

Location:
trunk
Files:
2 edited

Legend:

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

    r43629 r43630  
    5555    // Blog specific tables.
    5656    $blog_tables = "CREATE TABLE $wpdb->termmeta (
    57   meta_id bigint(20) unsigned NOT NULL auto_increment,
    58   term_id bigint(20) unsigned NOT NULL default '0',
    59   meta_key varchar(255) default NULL,
    60   meta_value longtext,
    61   PRIMARY KEY  (meta_id),
    62   KEY term_id (term_id),
    63   KEY meta_key (meta_key($max_index_length))
     57    meta_id bigint(20) unsigned NOT NULL auto_increment,
     58    term_id bigint(20) unsigned NOT NULL default '0',
     59    meta_key varchar(255) default NULL,
     60    meta_value longtext,
     61    PRIMARY KEY  (meta_id),
     62    KEY term_id (term_id),
     63    KEY meta_key (meta_key($max_index_length))
    6464) $charset_collate;
    6565CREATE TABLE $wpdb->terms (
     
    9191) $charset_collate;
    9292CREATE TABLE $wpdb->commentmeta (
    93   meta_id bigint(20) unsigned NOT NULL auto_increment,
    94   comment_id bigint(20) unsigned NOT NULL default '0',
    95   meta_key varchar(255) default NULL,
    96   meta_value longtext,
    97   PRIMARY KEY  (meta_id),
    98   KEY comment_id (comment_id),
    99   KEY meta_key (meta_key($max_index_length))
     93    meta_id bigint(20) unsigned NOT NULL auto_increment,
     94    comment_id bigint(20) unsigned NOT NULL default '0',
     95    meta_key varchar(255) default NULL,
     96    meta_value longtext,
     97    PRIMARY KEY  (meta_id),
     98    KEY comment_id (comment_id),
     99    KEY meta_key (meta_key($max_index_length))
    100100) $charset_collate;
    101101CREATE TABLE $wpdb->comments (
    102   comment_ID bigint(20) unsigned NOT NULL auto_increment,
    103   comment_post_ID bigint(20) unsigned NOT NULL default '0',
    104   comment_author tinytext NOT NULL,
    105   comment_author_email varchar(100) NOT NULL default '',
    106   comment_author_url varchar(200) NOT NULL default '',
    107   comment_author_IP varchar(100) NOT NULL default '',
    108   comment_date datetime NOT NULL default '0000-00-00 00:00:00',
    109   comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
    110   comment_content text NOT NULL,
    111   comment_karma int(11) NOT NULL default '0',
    112   comment_approved varchar(20) NOT NULL default '1',
    113   comment_agent varchar(255) NOT NULL default '',
    114   comment_type varchar(20) NOT NULL default '',
    115   comment_parent bigint(20) unsigned NOT NULL default '0',
    116   user_id bigint(20) unsigned NOT NULL default '0',
    117   PRIMARY KEY  (comment_ID),
    118   KEY comment_post_ID (comment_post_ID),
    119   KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
    120   KEY comment_date_gmt (comment_date_gmt),
    121   KEY comment_parent (comment_parent),
    122   KEY comment_author_email (comment_author_email(10))
     102    comment_ID bigint(20) unsigned NOT NULL auto_increment,
     103    comment_post_ID bigint(20) unsigned NOT NULL default '0',
     104    comment_author tinytext NOT NULL,
     105    comment_author_email varchar(100) NOT NULL default '',
     106    comment_author_url varchar(200) NOT NULL default '',
     107    comment_author_IP varchar(100) NOT NULL default '',
     108    comment_date datetime NOT NULL default '0000-00-00 00:00:00',
     109    comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
     110    comment_content text NOT NULL,
     111    comment_karma int(11) NOT NULL default '0',
     112    comment_approved varchar(20) NOT NULL default '1',
     113    comment_agent varchar(255) NOT NULL default '',
     114    comment_type varchar(20) NOT NULL default '',
     115    comment_parent bigint(20) unsigned NOT NULL default '0',
     116    user_id bigint(20) unsigned NOT NULL default '0',
     117    PRIMARY KEY  (comment_ID),
     118    KEY comment_post_ID (comment_post_ID),
     119    KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
     120    KEY comment_date_gmt (comment_date_gmt),
     121    KEY comment_parent (comment_parent),
     122    KEY comment_author_email (comment_author_email(10))
    123123) $charset_collate;
    124124CREATE TABLE $wpdb->links (
    125   link_id bigint(20) unsigned NOT NULL auto_increment,
    126   link_url varchar(255) NOT NULL default '',
    127   link_name varchar(255) NOT NULL default '',
    128   link_image varchar(255) NOT NULL default '',
    129   link_target varchar(25) NOT NULL default '',
    130   link_description varchar(255) NOT NULL default '',
    131   link_visible varchar(20) NOT NULL default 'Y',
    132   link_owner bigint(20) unsigned NOT NULL default '1',
    133   link_rating int(11) NOT NULL default '0',
    134   link_updated datetime NOT NULL default '0000-00-00 00:00:00',
    135   link_rel varchar(255) NOT NULL default '',
    136   link_notes mediumtext NOT NULL,
    137   link_rss varchar(255) NOT NULL default '',
    138   PRIMARY KEY  (link_id),
    139   KEY link_visible (link_visible)
     125    link_id bigint(20) unsigned NOT NULL auto_increment,
     126    link_url varchar(255) NOT NULL default '',
     127    link_name varchar(255) NOT NULL default '',
     128    link_image varchar(255) NOT NULL default '',
     129    link_target varchar(25) NOT NULL default '',
     130    link_description varchar(255) NOT NULL default '',
     131    link_visible varchar(20) NOT NULL default 'Y',
     132    link_owner bigint(20) unsigned NOT NULL default '1',
     133    link_rating int(11) NOT NULL default '0',
     134    link_updated datetime NOT NULL default '0000-00-00 00:00:00',
     135    link_rel varchar(255) NOT NULL default '',
     136    link_notes mediumtext NOT NULL,
     137    link_rss varchar(255) NOT NULL default '',
     138    PRIMARY KEY  (link_id),
     139    KEY link_visible (link_visible)
    140140) $charset_collate;
    141141CREATE TABLE $wpdb->options (
    142   option_id bigint(20) unsigned NOT NULL auto_increment,
    143   option_name varchar(191) NOT NULL default '',
    144   option_value longtext NOT NULL,
    145   autoload varchar(20) NOT NULL default 'yes',
    146   PRIMARY KEY  (option_id),
    147   UNIQUE KEY option_name (option_name)
     142    option_id bigint(20) unsigned NOT NULL auto_increment,
     143    option_name varchar(191) NOT NULL default '',
     144    option_value longtext NOT NULL,
     145    autoload varchar(20) NOT NULL default 'yes',
     146    PRIMARY KEY  (option_id),
     147    UNIQUE KEY option_name (option_name)
    148148) $charset_collate;
    149149CREATE TABLE $wpdb->postmeta (
    150   meta_id bigint(20) unsigned NOT NULL auto_increment,
    151   post_id bigint(20) unsigned NOT NULL default '0',
    152   meta_key varchar(255) default NULL,
    153   meta_value longtext,
    154   PRIMARY KEY  (meta_id),
    155   KEY post_id (post_id),
    156   KEY meta_key (meta_key($max_index_length))
     150    meta_id bigint(20) unsigned NOT NULL auto_increment,
     151    post_id bigint(20) unsigned NOT NULL default '0',
     152    meta_key varchar(255) default NULL,
     153    meta_value longtext,
     154    PRIMARY KEY  (meta_id),
     155    KEY post_id (post_id),
     156    KEY meta_key (meta_key($max_index_length))
    157157) $charset_collate;
    158158CREATE TABLE $wpdb->posts (
    159   ID bigint(20) unsigned NOT NULL auto_increment,
    160   post_author bigint(20) unsigned NOT NULL default '0',
    161   post_date datetime NOT NULL default '0000-00-00 00:00:00',
    162   post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
    163   post_content longtext NOT NULL,
    164   post_title text NOT NULL,
    165   post_excerpt text NOT NULL,
    166   post_status varchar(20) NOT NULL default 'publish',
    167   comment_status varchar(20) NOT NULL default 'open',
    168   ping_status varchar(20) NOT NULL default 'open',
    169   post_password varchar(255) NOT NULL default '',
    170   post_name varchar(200) NOT NULL default '',
    171   to_ping text NOT NULL,
    172   pinged text NOT NULL,
    173   post_modified datetime NOT NULL default '0000-00-00 00:00:00',
    174   post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00',
    175   post_content_filtered longtext NOT NULL,
    176   post_parent bigint(20) unsigned NOT NULL default '0',
    177   guid varchar(255) NOT NULL default '',
    178   menu_order int(11) NOT NULL default '0',
    179   post_type varchar(20) NOT NULL default 'post',
    180   post_mime_type varchar(100) NOT NULL default '',
    181   comment_count bigint(20) NOT NULL default '0',
    182   PRIMARY KEY  (ID),
    183   KEY post_name (post_name($max_index_length)),
    184   KEY type_status_date (post_type,post_status,post_date,ID),
    185   KEY post_parent (post_parent),
    186   KEY post_author (post_author)
     159    ID bigint(20) unsigned NOT NULL auto_increment,
     160    post_author bigint(20) unsigned NOT NULL default '0',
     161    post_date datetime NOT NULL default '0000-00-00 00:00:00',
     162    post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
     163    post_content longtext NOT NULL,
     164    post_title text NOT NULL,
     165    post_excerpt text NOT NULL,
     166    post_status varchar(20) NOT NULL default 'publish',
     167    comment_status varchar(20) NOT NULL default 'open',
     168    ping_status varchar(20) NOT NULL default 'open',
     169    post_password varchar(255) NOT NULL default '',
     170    post_name varchar(200) NOT NULL default '',
     171    to_ping text NOT NULL,
     172    pinged text NOT NULL,
     173    post_modified datetime NOT NULL default '0000-00-00 00:00:00',
     174    post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00',
     175    post_content_filtered longtext NOT NULL,
     176    post_parent bigint(20) unsigned NOT NULL default '0',
     177    guid varchar(255) NOT NULL default '',
     178    menu_order int(11) NOT NULL default '0',
     179    post_type varchar(20) NOT NULL default 'post',
     180    post_mime_type varchar(100) NOT NULL default '',
     181    comment_count bigint(20) NOT NULL default '0',
     182    PRIMARY KEY  (ID),
     183    KEY post_name (post_name($max_index_length)),
     184    KEY type_status_date (post_type,post_status,post_date,ID),
     185    KEY post_parent (post_parent),
     186    KEY post_author (post_author)
    187187) $charset_collate;\n";
    188188
    189189    // Single site users table. The multisite flavor of the users table is handled below.
    190190    $users_single_table = "CREATE TABLE $wpdb->users (
    191   ID bigint(20) unsigned NOT NULL auto_increment,
    192   user_login varchar(60) NOT NULL default '',
    193   user_pass varchar(255) NOT NULL default '',
    194   user_nicename varchar(50) NOT NULL default '',
    195   user_email varchar(100) NOT NULL default '',
    196   user_url varchar(100) NOT NULL default '',
    197   user_registered datetime NOT NULL default '0000-00-00 00:00:00',
    198   user_activation_key varchar(255) NOT NULL default '',
    199   user_status int(11) NOT NULL default '0',
    200   display_name varchar(250) NOT NULL default '',
    201   PRIMARY KEY  (ID),
    202   KEY user_login_key (user_login),
    203   KEY user_nicename (user_nicename),
    204   KEY user_email (user_email)
     191    ID bigint(20) unsigned NOT NULL auto_increment,
     192    user_login varchar(60) NOT NULL default '',
     193    user_pass varchar(255) NOT NULL default '',
     194    user_nicename varchar(50) NOT NULL default '',
     195    user_email varchar(100) NOT NULL default '',
     196    user_url varchar(100) NOT NULL default '',
     197    user_registered datetime NOT NULL default '0000-00-00 00:00:00',
     198    user_activation_key varchar(255) NOT NULL default '',
     199    user_status int(11) NOT NULL default '0',
     200    display_name varchar(250) NOT NULL default '',
     201    PRIMARY KEY  (ID),
     202    KEY user_login_key (user_login),
     203    KEY user_nicename (user_nicename),
     204    KEY user_email (user_email)
    205205) $charset_collate;\n";
    206206
    207207    // Multisite users table
    208208    $users_multi_table = "CREATE TABLE $wpdb->users (
    209   ID bigint(20) unsigned NOT NULL auto_increment,
    210   user_login varchar(60) NOT NULL default '',
    211   user_pass varchar(255) NOT NULL default '',
    212   user_nicename varchar(50) NOT NULL default '',
    213   user_email varchar(100) NOT NULL default '',
    214   user_url varchar(100) NOT NULL default '',
    215   user_registered datetime NOT NULL default '0000-00-00 00:00:00',
    216   user_activation_key varchar(255) NOT NULL default '',
    217   user_status int(11) NOT NULL default '0',
    218   display_name varchar(250) NOT NULL default '',
    219   spam tinyint(2) NOT NULL default '0',
    220   deleted tinyint(2) NOT NULL default '0',
    221   PRIMARY KEY  (ID),
    222   KEY user_login_key (user_login),
    223   KEY user_nicename (user_nicename),
    224   KEY user_email (user_email)
     209    ID bigint(20) unsigned NOT NULL auto_increment,
     210    user_login varchar(60) NOT NULL default '',
     211    user_pass varchar(255) NOT NULL default '',
     212    user_nicename varchar(50) NOT NULL default '',
     213    user_email varchar(100) NOT NULL default '',
     214    user_url varchar(100) NOT NULL default '',
     215    user_registered datetime NOT NULL default '0000-00-00 00:00:00',
     216    user_activation_key varchar(255) NOT NULL default '',
     217    user_status int(11) NOT NULL default '0',
     218    display_name varchar(250) NOT NULL default '',
     219    spam tinyint(2) NOT NULL default '0',
     220    deleted tinyint(2) NOT NULL default '0',
     221    PRIMARY KEY  (ID),
     222    KEY user_login_key (user_login),
     223    KEY user_nicename (user_nicename),
     224    KEY user_email (user_email)
    225225) $charset_collate;\n";
    226226
    227227    // Usermeta.
    228228    $usermeta_table = "CREATE TABLE $wpdb->usermeta (
    229   umeta_id bigint(20) unsigned NOT NULL auto_increment,
    230   user_id bigint(20) unsigned NOT NULL default '0',
    231   meta_key varchar(255) default NULL,
    232   meta_value longtext,
    233   PRIMARY KEY  (umeta_id),
    234   KEY user_id (user_id),
    235   KEY meta_key (meta_key($max_index_length))
     229    umeta_id bigint(20) unsigned NOT NULL auto_increment,
     230    user_id bigint(20) unsigned NOT NULL default '0',
     231    meta_key varchar(255) default NULL,
     232    meta_value longtext,
     233    PRIMARY KEY  (umeta_id),
     234    KEY user_id (user_id),
     235    KEY meta_key (meta_key($max_index_length))
    236236) $charset_collate;\n";
    237237
     
    245245    // Multisite global tables.
    246246    $ms_global_tables = "CREATE TABLE $wpdb->blogs (
    247   blog_id bigint(20) NOT NULL auto_increment,
    248   site_id bigint(20) NOT NULL default '0',
    249   domain varchar(200) NOT NULL default '',
    250   path varchar(100) NOT NULL default '',
    251   registered datetime NOT NULL default '0000-00-00 00:00:00',
    252   last_updated datetime NOT NULL default '0000-00-00 00:00:00',
    253   public tinyint(2) NOT NULL default '1',
    254   archived tinyint(2) NOT NULL default '0',
    255   mature tinyint(2) NOT NULL default '0',
    256   spam tinyint(2) NOT NULL default '0',
    257   deleted tinyint(2) NOT NULL default '0',
    258   lang_id int(11) NOT NULL default '0',
    259   PRIMARY KEY  (blog_id),
    260   KEY domain (domain(50),path(5)),
    261   KEY lang_id (lang_id)
     247    blog_id bigint(20) NOT NULL auto_increment,
     248    site_id bigint(20) NOT NULL default '0',
     249    domain varchar(200) NOT NULL default '',
     250    path varchar(100) NOT NULL default '',
     251    registered datetime NOT NULL default '0000-00-00 00:00:00',
     252    last_updated datetime NOT NULL default '0000-00-00 00:00:00',
     253    public tinyint(2) NOT NULL default '1',
     254    archived tinyint(2) NOT NULL default '0',
     255    mature tinyint(2) NOT NULL default '0',
     256    spam tinyint(2) NOT NULL default '0',
     257    deleted tinyint(2) NOT NULL default '0',
     258    lang_id int(11) NOT NULL default '0',
     259    PRIMARY KEY  (blog_id),
     260    KEY domain (domain(50),path(5)),
     261    KEY lang_id (lang_id)
    262262) $charset_collate;
    263263CREATE TABLE $wpdb->blog_versions (
    264   blog_id bigint(20) NOT NULL default '0',
    265   db_version varchar(20) NOT NULL default '',
    266   last_updated datetime NOT NULL default '0000-00-00 00:00:00',
    267   PRIMARY KEY  (blog_id),
    268   KEY db_version (db_version)
     264    blog_id bigint(20) NOT NULL default '0',
     265    db_version varchar(20) NOT NULL default '',
     266    last_updated datetime NOT NULL default '0000-00-00 00:00:00',
     267    PRIMARY KEY  (blog_id),
     268    KEY db_version (db_version)
    269269) $charset_collate;
    270270CREATE TABLE $wpdb->blogmeta (
    271   meta_id bigint(20) unsigned NOT NULL auto_increment,
    272   blog_id bigint(20) NOT NULL default '0',
    273   meta_key varchar(255) default NULL,
    274   meta_value longtext,
    275   PRIMARY KEY  (meta_id),
    276   KEY meta_key (meta_key($max_index_length)),
    277   KEY blog_id (blog_id)
     271    meta_id bigint(20) unsigned NOT NULL auto_increment,
     272    blog_id bigint(20) NOT NULL default '0',
     273    meta_key varchar(255) default NULL,
     274    meta_value longtext,
     275    PRIMARY KEY  (meta_id),
     276    KEY meta_key (meta_key($max_index_length)),
     277    KEY blog_id (blog_id)
    278278) $charset_collate;
    279279CREATE TABLE $wpdb->registration_log (
    280   ID bigint(20) NOT NULL auto_increment,
    281   email varchar(255) NOT NULL default '',
    282   IP varchar(30) NOT NULL default '',
    283   blog_id bigint(20) NOT NULL default '0',
    284   date_registered datetime NOT NULL default '0000-00-00 00:00:00',
    285   PRIMARY KEY  (ID),
    286   KEY IP (IP)
     280    ID bigint(20) NOT NULL auto_increment,
     281    email varchar(255) NOT NULL default '',
     282    IP varchar(30) NOT NULL default '',
     283    blog_id bigint(20) NOT NULL default '0',
     284    date_registered datetime NOT NULL default '0000-00-00 00:00:00',
     285    PRIMARY KEY  (ID),
     286    KEY IP (IP)
    287287) $charset_collate;
    288288CREATE TABLE $wpdb->site (
    289   id bigint(20) NOT NULL auto_increment,
    290   domain varchar(200) NOT NULL default '',
    291   path varchar(100) NOT NULL default '',
    292   PRIMARY KEY  (id),
    293   KEY domain (domain(140),path(51))
     289    id bigint(20) NOT NULL auto_increment,
     290    domain varchar(200) NOT NULL default '',
     291    path varchar(100) NOT NULL default '',
     292    PRIMARY KEY  (id),
     293    KEY domain (domain(140),path(51))
    294294) $charset_collate;
    295295CREATE TABLE $wpdb->sitemeta (
    296   meta_id bigint(20) NOT NULL auto_increment,
    297   site_id bigint(20) NOT NULL default '0',
    298   meta_key varchar(255) default NULL,
    299   meta_value longtext,
    300   PRIMARY KEY  (meta_id),
    301   KEY meta_key (meta_key($max_index_length)),
    302   KEY site_id (site_id)
     296    meta_id bigint(20) NOT NULL auto_increment,
     297    site_id bigint(20) NOT NULL default '0',
     298    meta_key varchar(255) default NULL,
     299    meta_value longtext,
     300    PRIMARY KEY  (meta_id),
     301    KEY meta_key (meta_key($max_index_length)),
     302    KEY site_id (site_id)
    303303) $charset_collate;
    304304CREATE TABLE $wpdb->signups (
    305   signup_id bigint(20) NOT NULL auto_increment,
    306   domain varchar(200) NOT NULL default '',
    307   path varchar(100) NOT NULL default '',
    308   title longtext NOT NULL,
    309   user_login varchar(60) NOT NULL default '',
    310   user_email varchar(100) NOT NULL default '',
    311   registered datetime NOT NULL default '0000-00-00 00:00:00',
    312   activated datetime NOT NULL default '0000-00-00 00:00:00',
    313   active tinyint(1) NOT NULL default '0',
    314   activation_key varchar(50) NOT NULL default '',
    315   meta longtext,
    316   PRIMARY KEY  (signup_id),
    317   KEY activation_key (activation_key),
    318   KEY user_email (user_email),
    319   KEY user_login_email (user_login,user_email),
    320   KEY domain_path (domain(140),path(51))
     305    signup_id bigint(20) NOT NULL auto_increment,
     306    domain varchar(200) NOT NULL default '',
     307    path varchar(100) NOT NULL default '',
     308    title longtext NOT NULL,
     309    user_login varchar(60) NOT NULL default '',
     310    user_email varchar(100) NOT NULL default '',
     311    registered datetime NOT NULL default '0000-00-00 00:00:00',
     312    activated datetime NOT NULL default '0000-00-00 00:00:00',
     313    active tinyint(1) NOT NULL default '0',
     314    activation_key varchar(50) NOT NULL default '',
     315    meta longtext,
     316    PRIMARY KEY  (signup_id),
     317    KEY activation_key (activation_key),
     318    KEY user_email (user_email),
     319    KEY user_login_email (user_login,user_email),
     320    KEY domain_path (domain(140),path(51))
    321321) $charset_collate;";
    322322
     
    564564
    565565    $keys             = "'" . implode( "', '", array_keys( $options ) ) . "'";
    566     $existing_options = $wpdb->get_col( "SELECT option_name FROM $wpdb->options WHERE option_name in ( $keys )" ); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared
     566    $existing_options = $wpdb->get_col( "SELECT option_name FROM $wpdb->options WHERE option_name in ( $keys )" ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    567567
    568568    $insert = '';
     
    587587
    588588    if ( ! empty( $insert ) ) {
    589         $wpdb->query( "INSERT INTO $wpdb->options (option_name, option_value, autoload) VALUES " . $insert ); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared
     589        $wpdb->query( "INSERT INTO $wpdb->options (option_name, option_value, autoload) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    590590    }
    591591
     
    12071207    );
    12081208
    1209     $misc_exts = array(
     1209    $misc_exts        = array(
    12101210        // Images.
    12111211        'jpg',
     
    12911291        $insert .= $wpdb->prepare( '( %d, %s, %s)', $network_id, $meta_key, $meta_value );
    12921292    }
    1293     $wpdb->query( "INSERT INTO $wpdb->sitemeta ( site_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared
     1293    $wpdb->query( "INSERT INTO $wpdb->sitemeta ( site_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    12941294}
    12951295
     
    13281328    }
    13291329
    1330     $wpdb->query( "INSERT INTO $wpdb->blogmeta ( blog_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared
     1330    $wpdb->query( "INSERT INTO $wpdb->blogmeta ( blog_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    13311331
    13321332    wp_cache_set( 'last_changed', microtime(), 'sites' );
  • trunk/tests/phpunit/tests/admin/includesSchema.php

    r43629 r43630  
    11<?php
    2 // phpcs:ignoreFile WordPress.WP.PreparedSQL.NotPrepared
     2// phpcs:ignoreFile WordPress.DB.PreparedSQL.NotPrepared
    33
    44/**
Note: See TracChangeset for help on using the changeset viewer.