File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ function ableplayer_generate( $format = 'shortcode' ) {
6565 }
6666 $ array ['shortcode ' ] = "[ $ output] " ;
6767 $ array ['message ' ] = __ ( 'New shortcode created. ' , 'ableplayer ' );
68+ $ array ['type ' ] = 'success ' ;
6869
6970 return $ array ;
7071 }
@@ -129,7 +130,7 @@ function ableplayer_generator_fields( $data ) {
129130 $ params = $ data ;
130131 }
131132 $ message = isset ( $ params ['message ' ] ) ? $ params ['message ' ] : __ ( 'Generate an <code>[ableplayer]</code> shortcode. ' , 'ableplayer ' );
132- $ message_type = isset ( $ params ['type ' ] ) ? $ params ['type ' ] : 'success ' ;
133+ $ message_type = isset ( $ params ['type ' ] ) ? $ params ['type ' ] : 'info ' ;
133134 $ shortcode = isset ( $ params ['shortcode ' ] ) ? $ params ['shortcode ' ] : '[ableplayer] ' ;
134135 $ last_shortcode = ableplayer_get_settings ( 'last_shortcode ' );
135136 $ shortcode = ( ! isset ( $ params ['shortcode ' ] ) && $ last_shortcode ) ? "[ $ last_shortcode] " : $ shortcode ;
@@ -147,7 +148,8 @@ function ableplayer_generator_fields( $data ) {
147148 wp_admin_notice (
148149 $ message ,
149150 array (
150- 'type ' => $ message_type ,
151+ 'type ' => $ message_type ,
152+ 'additional_classes ' => array ( 'inline ' ),
151153 )
152154 );
153155 ?>
You can’t perform that action at this time.
0 commit comments