Changeset 31090 for trunk/src/wp-admin/includes/upgrade.php
- Timestamp:
- 01/08/2015 07:04:40 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/upgrade.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r31089 r31090 75 75 update_user_option($user_id, 'default_password_nag', true, true); 76 76 $email_password = true; 77 } else if ( !$user_id ) {77 } elseif ( ! $user_id ) { 78 78 // Password has been provided 79 79 $message = '<em>'.__('Your chosen password.').'</em>'; … … 841 841 $status = 'publish'; 842 842 $type = 'page'; 843 } else if ( 'attachment' == $status ) {843 } elseif ( 'attachment' == $status ) { 844 844 $status = 'inherit'; 845 845 $type = 'attachment'; … … 1717 1717 // Create a tablename index for an array ($cqueries) of queries 1718 1718 foreach($queries as $qry) { 1719 if ( preg_match("|CREATE TABLE ([^ ]*)|", $qry, $matches)) {1719 if ( preg_match( "|CREATE TABLE ([^ ]*)|", $qry, $matches ) ) { 1720 1720 $cqueries[ trim( $matches[1], '`' ) ] = $qry; 1721 1721 $for_update[$matches[1]] = 'Created table '.$matches[1]; 1722 } else if (preg_match("|CREATE DATABASE ([^ ]*)|", $qry, $matches)) {1723 array_unshift( $cqueries, $qry);1724 } else if (preg_match("|INSERT INTO ([^ ]*)|", $qry, $matches)) {1722 } elseif ( preg_match( "|CREATE DATABASE ([^ ]*)|", $qry, $matches ) ) { 1723 array_unshift( $cqueries, $qry ); 1724 } elseif ( preg_match( "|INSERT INTO ([^ ]*)|", $qry, $matches ) ) { 1725 1725 $iqueries[] = $qry; 1726 } else if (preg_match("|UPDATE ([^ ]*)|", $qry, $matches)) {1726 } elseif ( preg_match( "|UPDATE ([^ ]*)|", $qry, $matches ) ) { 1727 1727 $iqueries[] = $qry; 1728 1728 } else { … … 1876 1876 if ($index_name == 'PRIMARY') { 1877 1877 $index_string .= 'PRIMARY '; 1878 } else if($index_data['unique']) {1878 } elseif ( $index_data['unique'] ) { 1879 1879 $index_string .= 'UNIQUE '; 1880 1880 }
Note: See TracChangeset
for help on using the changeset viewer.