Skip to content

Commit 50228fe

Browse files
committed
Hotfix: improved some comments + README
1 parent 016fcda commit 50228fe

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function my_plugin_init() {
4343
// Your class defining your custom DB table.
4444
$table_def = new MyCustomTableDefinition();
4545

46-
// The upgrader: it will upgrade your DB table automatically if the schema changes.
46+
// The upgrader: it will upgrade your DB table automatically if its version changes.
4747
$upgrader = new TableUpgrader( new Table( $table_def ) );
4848
$upgrader->init();
4949
}

src/DBWorker/WorkerInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ public function count_table_rows( string $table_name, string $column = '*' ): in
126126

127127
/**
128128
* Get the DB's last error.
129-
* This is merely a wrapper to get $wpdb->last_error.
130129
*
131130
* @since 0.3
132131
*

src/Table.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ public function count( string $column = '*' ): int {
170170
}
171171

172172
/**
173-
* Get the DB’s last error.
174-
* This is merely a wrapper to get $wpdb->last_error.
173+
* Get the DB's last error.
175174
*
176175
* @since 0.3
177176
*

0 commit comments

Comments
 (0)