Skip to content

Commit 1add1a5

Browse files
committed
fix: update prefix usage in settings error messages
1 parent 4937d5a commit 1add1a5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
package-lock.json
3+
composer.lock

includes/admin/class-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,13 +1399,13 @@ public function change_settings_on_save( $settings ) {
13991399
$settings['post_thumb_op'] = 'inline';
14001400
}
14011401

1402-
add_settings_error( $this->prefix . '-notices', '', 'Note: Display of the author, excerpt and date has been disabled as the Thumbnail style is set to Rounded Thumbnails or Rounded Thumbnails with Grid. You can change the style in the Styles tab.', 'updated' );
1402+
add_settings_error( self::prefix . '-notices', '', 'Note: Display of the author, excerpt and date has been disabled as the Thumbnail style is set to Rounded Thumbnails or Rounded Thumbnails with Grid. You can change the style in the Styles tab.', 'updated' );
14031403
}
14041404
// Overwrite settings if text_only thumbnail style is selected.
14051405
if ( 'text_only' === $style ) {
14061406
$settings['post_thumb_op'] = 'text_only';
14071407

1408-
add_settings_error( $this->prefix . '-notices', '', 'Note: Thumbnail location set to Text Only as the Thumbnail style is set to Text Only. You can change the style in the Styles tab.', 'updated' );
1408+
add_settings_error( self::prefix . '-notices', '', 'Note: Thumbnail location set to Text Only as the Thumbnail style is set to Text Only. You can change the style in the Styles tab.', 'updated' );
14091409
}
14101410

14111411
// Force thumb_width and thumb_height if either are zero.

0 commit comments

Comments
 (0)