File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function addMenu() {
59
59
*/
60
60
public function printMenu () {
61
61
if ( $ this ->saveOptions () ) {
62
- echo '<div id="message" class="updated notice is-dismissible"><p> ' . __ ( 'Settings saved. ' ) . '</p></div> ' ;
62
+ echo '<div id="message" role="status" class="updated notice is-dismissible"><p> ' . __ ( 'Settings saved. ' ) . '</p></div> ' ;
63
63
}
64
64
$ html = blade ()->render (
65
65
'admin ' , [
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public function __construct( Admin $admin ) {
94
94
if ( 'pb_cas_admin ' !== @$ _REQUEST ['page ' ] ) { // @codingStandardsIgnoreLine
95
95
add_action (
96
96
'network_admin_notices ' , function () {
97
- echo '<div id="message" class="error fade"><p> ' . __ ( 'CAS is not configured. ' , 'pressbooks-cas-sso ' ) . '</p></div> ' ;
97
+ echo '<div id="message" role="alert" class="error fade"><p> ' . __ ( 'CAS is not configured. ' , 'pressbooks-cas-sso ' ) . '</p></div> ' ;
98
98
}
99
99
);
100
100
}
Original file line number Diff line number Diff line change 19
19
if ( ! function_exists ( 'pb_meets_minimum_requirements ' ) && ! @include_once ( WP_PLUGIN_DIR . '/pressbooks/compatibility.php ' ) ) { // @codingStandardsIgnoreLine
20
20
add_action (
21
21
'admin_notices ' , function () {
22
- echo '<div id="message" class="error fade"><p> ' . __ ( 'Cannot find Pressbooks install. ' , 'pressbooks-cas-sso ' ) . '</p></div> ' ;
22
+ echo '<div id="message" role="alert" class="error fade"><p> ' . __ ( 'Cannot find Pressbooks install. ' , 'pressbooks-cas-sso ' ) . '</p></div> ' ;
23
23
}
24
24
);
25
25
return ;
You can’t perform that action at this time.
0 commit comments