Skip to content

Commit 75ec11d

Browse files
committed
phpstan fixes
1 parent 491bf06 commit 75ec11d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

aaa-option-optimizer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ function aaa_option_optimizer_activation() {
3737
// Create the custom table.
3838
Progress_Planner\OptionOptimizer\Database::create_table();
3939

40-
// Migrate existing data if present.
41-
Progress_Planner\OptionOptimizer\Database::maybe_migrate();
42-
4340
$autoload_values = \wp_autoload_values_to_autoload();
4441
$placeholders = implode( ',', array_fill( 0, count( $autoload_values ), '%s' ) );
4542

src/class-admin-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function render_admin_page_ajax() {
281281
printf(
282282
/* translators: %d: number of options to migrate */
283283
\esc_html__( 'We need to migrate %d tracked options to the new database format.', 'aaa-option-optimizer' ),
284-
\esc_html( $migration_status['remaining'] )
284+
(int) $migration_status['remaining']
285285
);
286286
?>
287287
</p>

0 commit comments

Comments
 (0)