From e1a07dfe881c76904cb3242733b58d6c1b5894ff Mon Sep 17 00:00:00 2001 From: Denisson Leal Date: Thu, 28 Jul 2022 04:31:59 -0300 Subject: [PATCH 1/2] json creation for registration in packagist Composer json creation for registration in packagist --- composer.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 000000000..e55385eae --- /dev/null +++ b/composer.json @@ -0,0 +1,7 @@ +{ + "name": "projectnami/projectnami", + "description": "WordPress powered by Microsoft SQL Server", + "require": { + "php": ">=7.0" + } +} From 7b3d26ee4f4366dba8daa96c76da7d9971e7628a Mon Sep 17 00:00:00 2001 From: Denisson Leal Date: Wed, 4 Jun 2025 11:55:26 +0100 Subject: [PATCH 2/2] fix changes in upgrade file --- wp-admin/includes/upgrade.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index b09ef23ce..31c40f2af 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -407,7 +407,7 @@ function wp_install_defaults( $user_id ) { ) ); update_option( - 'sidebars_widgets', + 'sidebars_widgets', array( 'wp_inactive_widgets' => array(), 'sidebar-1' => array( @@ -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() ) @@ -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) ) @@ -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; @@ -1613,7 +1613,7 @@ function dbDelta( $queries = '', $execute = true ) { // phpcs:ignore WordPress.N foreach( $queries as $query ) { $wpdb->query($query); } - + return array(); }