[wp-trac] [WordPress Trac] #63627: General: Only override `$table_prefix` if not defined

WordPress Trac noreply at wordpress.org
Sun Mar 8 02:34:25 UTC 2026


#63627: General: Only override `$table_prefix` if not defined
----------------------------+--------------------------------
 Reporter:  Ninos Ego       |       Owner:  SergeyBiryukov
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:  7.0
Component:  Bootstrap/Load  |     Version:  6.9
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  php-compatibility
----------------------------+--------------------------------

Comment (by westonruter):

 @ninos-ego ok, then it's safe to say that adding `global $table_prefix` as
 proposed in the fix to modify `wp-settings.php` would break your
 bootstrapping logic?

 {{{#!diff
 - global $wp_version, $wp_db_version, $tinymce_version,
 $required_php_version, $required_php_extensions, $required_mysql_version,
 $wp_local_package;
 + global $wp_version, $wp_db_version, $tinymce_version,
 $required_php_version, $required_php_extensions, $required_mysql_version,
 $wp_local_package, $wp_filter, $table_prefix;
 }}}

 See [https://github.com/WordPress/wordpress-
 develop/pull/11189/changes#r2898980934 my comment].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63627#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list