Changeset 25433 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 09/13/2013 10:17:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r25318 r25433 831 831 */ 832 832 function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) { 833 if ( $query_arg ) 833 $nonce = ''; 834 835 if ( $query_arg && isset( $_REQUEST[$query_arg] ) ) 834 836 $nonce = $_REQUEST[$query_arg]; 835 else 836 $nonce = isset($_REQUEST['_ajax_nonce']) ? $_REQUEST['_ajax_nonce'] : $_REQUEST['_wpnonce']; 837 838 if ( isset( $_REQUEST['_ajax_nonce'] ) ) 839 $nonce = $_REQUEST['_ajax_nonce']; 840 841 if ( isset( $_REQUEST['_wpnonce'] ) ) 842 $nonce = $_REQUEST['_wpnonce']; 837 843 838 844 $result = wp_verify_nonce( $nonce, $action ); … … 1010 1016 function wp_notify_postauthor( $comment_id, $comment_type = '' ) { 1011 1017 $comment = get_comment( $comment_id ); 1018 if ( empty( $comment ) ) 1019 return false; 1020 1012 1021 $post = get_post( $comment->comment_post_ID ); 1013 1022 $author = get_userdata( $post->post_author );
Note: See TracChangeset
for help on using the changeset viewer.