Changeset 7006 for trunk/src/includes/admin/topics.php
- Timestamp:
- 11/24/2019 01:38:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/topics.php
r6850 r7006 275 275 276 276 $sendback = remove_query_arg( array( 'spam', 'unspam' ), $sendback ); 277 $updated = $locked = 0;277 $updated = $locked = 0; 278 278 279 279 if ( 'spam' === $doaction ) { … … 619 619 620 620 $is_sticky = bbp_is_topic_sticky( $topic_id ); 621 $is_super = ( false === $is_sticky ) && ! empty( $_GET['super'] ) && ( "1"=== $_GET['super'] )621 $is_super = ( false === $is_sticky ) && ! empty( $_GET['super'] ) && ( '1' === $_GET['super'] ) 622 622 ? true 623 623 : false; … … 693 693 // Bail if no topic_id or notice 694 694 $topic_id = bbp_get_topic_id( $_GET['topic_id'] ); 695 if ( 695 if ( empty( $topic_id ) ) { 696 696 return; 697 697 } … … 1033 1033 if ( bbp_get_trash_status_id() === $topic->post_status ) { 1034 1034 $post_type_object = get_post_type_object( bbp_get_topic_post_type() ); 1035 $actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . "' href='" . esc_url( wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $topic->ID ) ), 'untrash-post_' . $topic->ID ) ) . "'>" . esc_html__( 'Restore', 'bbpress' ) . "</a>";1035 $actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . "' href='" . esc_url( wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $topic->ID ) ), 'untrash-post_' . $topic->ID ) ) . "'>" . esc_html__( 'Restore', 'bbpress' ) . '</a>'; 1036 1036 } elseif ( ! empty( $trash_days ) ) { 1037 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . "' href='" . esc_url( get_delete_post_link( $topic->ID ) ) . "'>" . esc_html__( 'Trash', 'bbpress' ) . "</a>";1037 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . "' href='" . esc_url( get_delete_post_link( $topic->ID ) ) . "'>" . esc_html__( 'Trash', 'bbpress' ) . '</a>'; 1038 1038 } 1039 1039 1040 1040 if ( ( bbp_get_trash_status_id() === $topic->post_status ) || empty( $trash_days ) ) { 1041 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr__( 'Delete this item permanently', 'bbpress' ) . "' href='" . esc_url( get_delete_post_link( $topic->ID, '', true ) ) . "'>" . esc_html__( 'Delete Permanently', 'bbpress' ) . "</a>";1041 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr__( 'Delete this item permanently', 'bbpress' ) . "' href='" . esc_url( get_delete_post_link( $topic->ID, '', true ) ) . "'>" . esc_html__( 'Delete Permanently', 'bbpress' ) . '</a>'; 1042 1042 } 1043 1043 } … … 1168 1168 // Messages array 1169 1169 $messages[ $this->post_type ] = array( 1170 0 => 1170 0 => '', // Left empty on purpose 1171 1171 1172 1172 // Updated 1173 1 => 1173 1 => sprintf( 1174 1174 '%1$s <a href="%2$s">%3$s</a>', 1175 1175 esc_html__( 'Topic updated.', 'bbpress' ),
Note: See TracChangeset
for help on using the changeset viewer.