Skip to content

Commit 2881cf6

Browse files
committed
Fixed typo in version checking example
1 parent f371c35 commit 2881cf6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ function verify_dependencies( $deps ) {
5555
}
5656
5757
if($error) {
58-
add_action( 'admin_notices', function() {
59-
$class = 'notice notice-error';
60-
$message = __( 'Irks! An error has occurred.', 'sample-text-domain' );
58+
add_action( 'admin_notices', function() {
59+
$class = 'notice notice-error';
6160
62-
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) );
61+
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $error ) );
6362
});
6463
}
6564

0 commit comments

Comments
 (0)