Skip to content

Commit

Permalink
Fix fatal error in admin_footer_text().
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Jul 26, 2023
1 parent 64cbabd commit 789df2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 6.0.2 (26.07.2023) ##
* Fixed fatal error in admin_footer_text().

## 6.0.1 (26.07.2023) ##
* Fixed fatal error on System Info page with empty options.

Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ Yes you can!

== Changelog ==

= 6.0.2 (26.07.2023) =
* Fixed fatal error in admin_footer_text().

= 6.0.1 (26.07.2023) =
* Fixed fatal error on System Info page with empty options.

Expand Down
5 changes: 3 additions & 2 deletions src/php/Settings/PluginSettingsBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,12 @@ class="ctl-<?php echo esc_attr( $this->section_title() ); ?>"
/**
* When user is on the plugin admin page, display footer text that graciously asks them to rate us.
*
* @param string $text Footer text.
* @param string|null $text Footer text.
*
* @return string
* @noinspection PhpMissingParamTypeInspection
*/
public function admin_footer_text( string $text ): string {
public function admin_footer_text( $text ): string {
if ( ! $this->is_options_screen() ) {
return $text;
}
Expand Down

0 comments on commit 789df2f

Please sign in to comment.