You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checking thisadd_action( 'all_admin_notices', array( __CLASS__, 'admin_notices' ) ); and seeing that the callbackfunction admin_notices( $message, $is_error = true ) actually needs argument to display messages, makes the action registration pointless.
However, that same callback is used directly like in :
publicstaticfunctionfail_php_version() {
add_action( 'plugins_loaded', array( __CLASS__, 'i18n' ) );
self::notice( __( 'Stream requires PHP version 5.3+, plugin is currently NOT ACTIVE.', 'stream' ) );
}
I recall there was some logic to retain messages locally in the class and then outputting in via the callback registered to that action. Anyway, we need to fix that.
The text was updated successfully, but these errors were encountered:
Checking this
add_action( 'all_admin_notices', array( __CLASS__, 'admin_notices' ) );
and seeing that the callbackfunction admin_notices( $message, $is_error = true )
actually needs argument to display messages, makes the action registration pointless.However, that same callback is used directly like in :
defined here
I recall there was some logic to retain messages locally in the class and then outputting in via the callback registered to that action. Anyway, we need to fix that.
The text was updated successfully, but these errors were encountered: