We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09dac4b commit 408c83bCopy full SHA for 408c83b
src/Schema/Builder.php
@@ -263,7 +263,10 @@ public function register_custom_tables_names() {
263
* @return array<mixed> A list of each creation or update result.
264
*/
265
public function up( $force = false ) {
266
- if ( ! is_blog_installed() || wp_installing() ) {
+ try {
267
+ $this->db::table( 'posts' )->select ( 1 )->limit( 1 )->get();
268
+ } catch ( \Exception $e ) {
269
+ // Let's not try to create the tables on a blog that's missing the basic ones.
270
return [];
271
}
272
0 commit comments