Skip to content

Commit 5cc02c3

Browse files
author
Ned Zimmerman
committed
Change to ->prefix.
1 parent 475a4f8 commit 5cc02c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DB_Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ public function size( $args, $assoc_args ) {
653653
/**
654654
* Display the database table prefix.
655655
*
656-
* Display the database table prefix specified in wp-config.php.
656+
* Display the database table prefix, as defined by the database handler's interpretation of the current site.
657657
*
658658
* ## EXAMPLES
659659
*
@@ -663,9 +663,9 @@ public function size( $args, $assoc_args ) {
663663
public function prefix() {
664664
@WP_CLI::get_runner()->load_wordpress();
665665

666-
global $table_prefix;
666+
global $wpdb;
667667

668-
WP_CLI::log( $table_prefix );
668+
WP_CLI::log( $wpdb->prefix );
669669
}
670670

671671
private static function get_create_query() {

0 commit comments

Comments
 (0)