Changeset 5829 for trunk/src/includes/admin/replies.php
- Timestamp:
- 07/14/2015 12:46:38 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/replies.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/replies.php
r5810 r5829 99 99 */ 100 100 private function bail() { 101 if ( ! isset( get_current_screen()->post_type ) || ( $this->post_type !== get_current_screen()->post_type ) ) {101 if ( ! isset( get_current_screen()->post_type ) || ( $this->post_type !== get_current_screen()->post_type ) ) { 102 102 return true; 103 103 } … … 305 305 306 306 // Nonce check 307 if ( empty( $_POST['bbp_reply_metabox'] ) || ! wp_verify_nonce( $_POST['bbp_reply_metabox'], 'bbp_reply_metabox_save' ) ) {307 if ( empty( $_POST['bbp_reply_metabox'] ) || ! wp_verify_nonce( $_POST['bbp_reply_metabox'], 'bbp_reply_metabox_save' ) ) { 308 308 return $reply_id; 309 309 } … … 315 315 316 316 // Get the reply meta post values 317 $topic_id = ! empty( $_POST['parent_id'] ) ? (int) $_POST['parent_id'] : 0;318 $forum_id = ! empty( $_POST['bbp_forum_id'] ) ? (int) $_POST['bbp_forum_id'] : bbp_get_topic_forum_id( $topic_id );319 $reply_to = ! empty( $_POST['bbp_reply_to'] ) ? (int) $_POST['bbp_reply_to'] : 0;317 $topic_id = ! empty( $_POST['parent_id'] ) ? (int) $_POST['parent_id'] : 0; 318 $forum_id = ! empty( $_POST['bbp_forum_id'] ) ? (int) $_POST['bbp_forum_id'] : bbp_get_topic_forum_id( $topic_id ); 319 $reply_to = ! empty( $_POST['bbp_reply_to'] ) ? (int) $_POST['bbp_reply_to'] : 0; 320 320 321 321 // Get reply author data … … 550 550 $notice = $_GET['bbp_reply_toggle_notice']; // Which notice? 551 551 $reply_id = (int) $_GET['reply_id']; // What's the reply id? 552 $is_failure = ! empty( $_GET['failed'] ) ? true : false; // Was that a failure?552 $is_failure = ! empty( $_GET['failed'] ) ? true : false; // Was that a failure? 553 553 554 554 // Empty? No reply? … … 675 675 676 676 // Output forum name 677 if ( ! empty( $topic_id ) ) {677 if ( ! empty( $topic_id ) ) { 678 678 679 679 // Topic Title … … 701 701 702 702 // Output forum name 703 if ( ! empty( $reply_forum_id ) ) {703 if ( ! empty( $reply_forum_id ) ) { 704 704 705 705 // Forum Title … … 847 847 848 848 // Add Empty Spam button 849 if ( ! empty( $_GET['post_status'] ) && ( bbp_get_spam_status_id() === $_GET['post_status'] ) && current_user_can( 'moderate' ) ) {849 if ( ! empty( $_GET['post_status'] ) && ( bbp_get_spam_status_id() === $_GET['post_status'] ) && current_user_can( 'moderate' ) ) { 850 850 wp_nonce_field( 'bulk-destroy', '_destroy_nonce' ); 851 851 $title = esc_attr__( 'Empty Spam', 'bbpress' ); … … 854 854 855 855 // Get which forum is selected 856 $selected = ! empty( $_GET['bbp_forum_id'] ) ? $_GET['bbp_forum_id'] : '';856 $selected = ! empty( $_GET['bbp_forum_id'] ) ? $_GET['bbp_forum_id'] : ''; 857 857 858 858 // Show the forums dropdown … … 881 881 882 882 // Add post_parent query_var if one is present 883 if ( ! empty( $_GET['bbp_forum_id'] ) ) {883 if ( ! empty( $_GET['bbp_forum_id'] ) ) { 884 884 $query_vars['meta_key'] = '_bbp_forum_id'; 885 885 $query_vars['meta_type'] = 'NUMERIC';
Note: See TracChangeset
for help on using the changeset viewer.