Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "projectnami/projectnami",
"description": "WordPress powered by Microsoft SQL Server",
"require": {
"php": ">=7.0"
}
}
10 changes: 5 additions & 5 deletions wp-admin/includes/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ function wp_install_defaults( $user_id ) {
)
);
update_option(
'sidebars_widgets',
'sidebars_widgets',
array(
'wp_inactive_widgets' => array(),
'sidebar-1' => array(
Expand Down Expand Up @@ -622,7 +622,7 @@ function wp_upgrade() {
$wp_current_db_version = (int) __get_option( 'db_version' );

// We are up to date. Nothing to do.
if ( $wp_db_version === $wp_current_db_version ) {
if ( $wp_db_version === $wp_current_db_version )
return;

if ( ! is_blog_installed() )
Expand Down Expand Up @@ -671,7 +671,7 @@ function upgrade_all() {
$wp_current_db_version = (int) __get_option( 'db_version' );

// We are up to date. Nothing to do.
if ( $wp_db_version === $wp_current_db_version ) {
if ( $wp_db_version === $wp_current_db_version )
return;

if ( empty($wp_current_db_version) )
Expand Down Expand Up @@ -1490,7 +1490,7 @@ function add_clean_index($table, $index) {
*/
function maybe_add_column( $table_name, $column_name, $create_ddl ) {
global $wpdb;

foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
if ( $column === $column_name ) {
return true;
Expand Down Expand Up @@ -1613,7 +1613,7 @@ function dbDelta( $queries = '', $execute = true ) { // phpcs:ignore WordPress.N
foreach( $queries as $query ) {
$wpdb->query($query);
}

return array();

}
Expand Down