mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
PHP Notice fix for non-normative nonce action strings. props Viper007Bond. see #9393
git-svn-id: http://svn.automattic.com/wordpress/trunk@10857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a25a1c10a7
commit
e1feb9dc86
@ -2282,9 +2282,11 @@ function wp_explain_nonce( $action ) {
|
||||
return $trans[$verb][$noun][0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), $matches[4] );
|
||||
return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), $matches[4] );
|
||||
} else {
|
||||
return apply_filters( 'explain_nonce_' . $action, __( 'Are you sure you want to do this?' ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user