Changeset 5070
- Timestamp:
- 08/14/2013 09:43:24 PM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/replies/template.php
r5069 r5070 1817 1817 'link_before' => '', 1818 1818 'link_after' => '', 1819 'edit_text' => __( 'Edit', 'bbpress' )1819 'edit_text' => est_html__( 'Edit', 'bbpress' ) 1820 1820 ), 'get_reply_edit_link' ); 1821 1821 … … 1838 1838 return; 1839 1839 1840 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" >' . esc_html( $r['edit_text'] ). '</a>' . $r['link_after'];1840 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-reply-edit-link">' . $r['edit_text'] . '</a>' . $r['link_after']; 1841 1841 1842 1842 return apply_filters( 'bbp_get_reply_edit_link', $retval, $r ); … … 1954 1954 1955 1955 if ( bbp_is_reply_trash( $reply->ID ) ) { 1956 $actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'untrash', 'reply_id' => $reply->ID ) ), 'untrash-' . $reply->post_type . '_' . $reply->ID ) ) . '" >' . $r['restore_text'] . '</a>';1956 $actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'untrash', 'reply_id' => $reply->ID ) ), 'untrash-' . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-restore-link">' . $r['restore_text'] . '</a>'; 1957 1957 } elseif ( EMPTY_TRASH_DAYS ) { 1958 $actions['trash'] = '<a title="' . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'trash', 'reply_id' => $reply->ID ) ), 'trash-' . $reply->post_type . '_' . $reply->ID ) ) . '" >'. $r['trash_text'] . '</a>';1958 $actions['trash'] = '<a title="' . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'trash', 'reply_id' => $reply->ID ) ), 'trash-' . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-trash-link">' . $r['trash_text'] . '</a>'; 1959 1959 } 1960 1960 1961 1961 if ( bbp_is_reply_trash( $reply->ID ) || !EMPTY_TRASH_DAYS ) { 1962 $actions['delete'] = '<a title="' . esc_attr__( 'Delete this item permanently', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'delete', 'reply_id' => $reply->ID ) ), 'delete-' . $reply->post_type . '_' . $reply->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" >' . $r['delete_text'] . '</a>';1962 $actions['delete'] = '<a title="' . esc_attr__( 'Delete this item permanently', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'delete', 'reply_id' => $reply->ID ) ), 'delete-' . $reply->post_type . '_' . $reply->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-reply-delete-link">' . $r['delete_text'] . '</a>'; 1963 1963 } 1964 1964 … … 2024 2024 $uri = add_query_arg( array( 'action' => 'bbp_toggle_reply_spam', 'reply_id' => $reply->ID ) ); 2025 2025 $uri = wp_nonce_url( $uri, 'spam-reply_' . $reply->ID ); 2026 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" >' . $display . '</a>' . $r['link_after'];2026 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-reply-spam-link">' . $display . '</a>' . $r['link_after']; 2027 2027 2028 2028 return apply_filters( 'bbp_get_reply_spam_link', $retval, $r ); … … 2091 2091 ), bbp_get_reply_edit_url( $reply_id ) ); 2092 2092 2093 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" title="' . $r['split_title'] . '" >' . $r['split_text'] . '</a>' . $r['link_after'];2093 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" title="' . $r['split_title'] . '" class="bbp-reply-spam-link">' . $r['split_text'] . '</a>' . $r['link_after']; 2094 2094 2095 2095 return apply_filters( 'bbp_get_reply_move_link', $retval, $r ); … … 2158 2158 ), bbp_get_topic_edit_url( $topic_id ) ); 2159 2159 2160 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" title="' . esc_attr( $r['split_title'] ) . '" >' . esc_html( $r['split_text'] ) . '</a>' . $r['link_after'];2160 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" title="' . esc_attr( $r['split_title'] ) . '" class="bbp-reply-split-link">' . esc_html( $r['split_text'] ) . '</a>' . $r['link_after']; 2161 2161 2162 2162 return apply_filters( 'bbp_get_topic_split_link', $retval, $r ); -
trunk/includes/topics/template.php
r5069 r5070 2338 2338 'link_before' => '', 2339 2339 'link_after' => '', 2340 'edit_text' => __( 'Edit', 'bbpress' )2340 'edit_text' => esc_html__( 'Edit', 'bbpress' ) 2341 2341 ), 'get_topic_edit_link' ); 2342 2342 … … 2359 2359 return; 2360 2360 2361 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" >' . $r['edit_text'] . '</a>' . $r['link_after'];2361 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-topic-edit-link">' . $r['edit_text'] . '</a>' . $r['link_after']; 2362 2362 2363 2363 return apply_filters( 'bbp_get_topic_edit_link', $retval, $r ); … … 2475 2475 2476 2476 if ( bbp_is_topic_trash( $topic->ID ) ) { 2477 $actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'untrash', 'topic_id' => $topic->ID ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID ) ) . '" >' . $r['restore_text'] . '</a>';2477 $actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'untrash', 'topic_id' => $topic->ID ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-restore-link">' . $r['restore_text'] . '</a>'; 2478 2478 } elseif ( EMPTY_TRASH_DAYS ) { 2479 $actions['trash'] = '<a title="' . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'trash', 'topic_id' => $topic->ID ) ), 'trash-' . $topic->post_type . '_' . $topic->ID ) ) . '">' . $r['trash_text']. '</a>';2479 $actions['trash'] = '<a title="' . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'trash', 'topic_id' => $topic->ID ) ), 'trash-' . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-trash-link">' . $r['trash_text'] . '</a>'; 2480 2480 } 2481 2481 2482 2482 if ( bbp_is_topic_trash( $topic->ID ) || !EMPTY_TRASH_DAYS ) { 2483 $actions['delete'] = '<a title="' . esc_attr__( 'Delete this item permanently', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'delete', 'topic_id' => $topic->ID ) ), 'delete-' . $topic->post_type . '_' . $topic->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );">' . $r['delete_text'] . '</a>';2483 $actions['delete'] = '<a title="' . esc_attr__( 'Delete this item permanently', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'delete', 'topic_id' => $topic->ID ) ), 'delete-' . $topic->post_type . '_' . $topic->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-topic-delete-link">' . $r['delete_text'] . '</a>'; 2484 2484 } 2485 2485 … … 2544 2544 $uri = add_query_arg( array( 'action' => 'bbp_toggle_topic_close', 'topic_id' => $topic->ID ) ); 2545 2545 $uri = wp_nonce_url( $uri, 'close-topic_' . $topic->ID ); 2546 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" >' . $display . '</a>' . $r['link_after'];2546 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-topic-close-link">' . $display . '</a>' . $r['link_after']; 2547 2547 2548 2548 return apply_filters( 'bbp_get_topic_close_link', $retval, $r ); … … 2608 2608 2609 2609 $stick_display = ( true === $is_sticky ) ? $r['unstick_text'] : $r['stick_text']; 2610 $stick_display = '<a href="' . esc_url( $stick_uri ) . '" >' . $stick_display . '</a>';2610 $stick_display = '<a href="' . esc_url( $stick_uri ) . '" class="bbp-topic-sticky-link">' . $stick_display . '</a>'; 2611 2611 2612 2612 if ( empty( $is_sticky ) ) { … … 2614 2614 $super_uri = wp_nonce_url( $super_uri, 'stick-topic_' . $topic->ID ); 2615 2615 2616 $super_display = ' <a href="' . esc_url( $super_uri ) . '" >' . $r['super_text'] . '</a>';2616 $super_display = ' <a href="' . esc_url( $super_uri ) . '" class="bbp-topic-super-sticky-link">' . $r['super_text'] . '</a>'; 2617 2617 } else { 2618 2618 $super_display = ''; … … 2672 2672 2673 2673 $uri = add_query_arg( array( 'action' => 'merge' ), bbp_get_topic_edit_url( $topic->ID ) ); 2674 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" >' . $r['merge_text'] . '</a>' . $r['link_after'];2674 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-topic-merge-link">' . $r['merge_text'] . '</a>' . $r['link_after']; 2675 2675 2676 2676 return apply_filters( 'bbp_get_topic_merge_link', $retval, $args ); … … 2731 2731 $uri = add_query_arg( array( 'action' => 'bbp_toggle_topic_spam', 'topic_id' => $topic->ID ) ); 2732 2732 $uri = wp_nonce_url( $uri, 'spam-topic_' . $topic->ID ); 2733 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" >' . $display . '</a>' . $r['link_after'];2733 $retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" class="bbp-topic-spam-link">' . $display . '</a>' . $r['link_after']; 2734 2734 2735 2735 return apply_filters( 'bbp_get_topic_spam_link', $retval, $r );
Note: See TracChangeset
for help on using the changeset viewer.