We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 475a4f8 commit 5cc02c3Copy full SHA for 5cc02c3
src/DB_Command.php
@@ -653,7 +653,7 @@ public function size( $args, $assoc_args ) {
653
/**
654
* Display the database table prefix.
655
*
656
- * Display the database table prefix specified in wp-config.php.
+ * Display the database table prefix, as defined by the database handler's interpretation of the current site.
657
658
* ## EXAMPLES
659
@@ -663,9 +663,9 @@ public function size( $args, $assoc_args ) {
663
public function prefix() {
664
@WP_CLI::get_runner()->load_wordpress();
665
666
- global $table_prefix;
+ global $wpdb;
667
668
- WP_CLI::log( $table_prefix );
+ WP_CLI::log( $wpdb->prefix );
669
}
670
671
private static function get_create_query() {
0 commit comments