Skip to content
Snippets Groups Projects
Commit a80aa3cb authored by dyszczo's avatar dyszczo
Browse files

Better error message display for temporary disabling

parent 8521cd70
No related branches found
No related tags found
1 merge request!15Feature/fixes
Pipeline #8895 passed with warnings
## [3.0.2] - 2019-09-18
### Fixed
- Better new error messages display for temporary disabling
## [3.0.1] - 2019-09-18 ## [3.0.1] - 2019-09-18
### Fixed ### Fixed
- Better new error messages display - Better new error messages display
......
...@@ -224,7 +224,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) { ...@@ -224,7 +224,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
* *
* @return string * @return string
*/ */
private function prepare_notice_message( $message ) { protected function prepare_notice_message( $message ) {
return '<div class="error"><p>' . $message . '</p></div>'; return '<div class="error"><p>' . $message . '</p></div>';
} }
......
...@@ -24,9 +24,9 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker_With_Update_Disable' ) ) ...@@ -24,9 +24,9 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker_With_Update_Disable' ) )
foreach ( $this->plugin_require as $name => $plugin_info ) { foreach ( $this->plugin_require as $name => $plugin_info ) {
if ( $this->is_currently_updated( $name ) ) { if ( $this->is_currently_updated( $name ) ) {
$nice_name = $plugin_info[ self::PLUGIN_INFO_KEY_NICE_NAME ]; $nice_name = $plugin_info[ self::PLUGIN_INFO_KEY_NICE_NAME ];
$this->notices[] = sprintf( __( 'The &#8220;%s&#8221; plugin disables temporarily as required %s plugin is being upgraded.', $this->notices[] = $this->prepare_notice_message( sprintf( __( 'The &#8220;%s&#8221; plugin disables temporarily as required %s plugin is being upgraded.',
$this->get_text_domain() ), $this->get_text_domain() ),
$this->plugin_name, $nice_name, $nice_name ); $this->plugin_name, $nice_name, $nice_name ) );
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment