Ticket #2270: 2270.patch
File 2270.patch, 2.7 KB (added by , 12 years ago) |
---|
-
includes/admin/replies.php
215 215 $publish_box .= '<p>' . __( '<strong>Featured Image</strong> - This allows you to associate an image with your reply without inserting it. This is usually useful only if your theme makes use of the featured image as a reply thumbnail on the home page, a custom header, etc.', 'bbpress' ) . '</p>'; 216 216 } 217 217 218 $forum_option = ''; 219 if ( apply_filters( 'bbp_show_forum_dropdown_on_replies', false ) ) 220 $forum_option = '<li>' . __( '<strong>Forum</strong> dropdown determines the parent forum that the reply belongs to. Select the forum, or leave the default (Use Forum of Topic) to post the reply in forum of the topic.', 'bbpress' ) . '</li>'; 221 218 222 get_current_screen()->add_help_tab( array( 219 223 'id' => 'reply-attributes', 220 224 'title' => __( 'Reply Attributes', 'bbpress' ), 221 225 'content' => 222 226 '<p>' . __( 'Select the attributes that your reply should have:', 'bbpress' ) . '</p>' . 223 227 '<ul>' . 224 '<li>' . __( '<strong>Forum</strong> dropdown determines the parent forum that the reply belongs to. Select the forum, or leave the default (Use Forum of Topic) to post the reply in forum of the topic.', 'bbpress' ) . '</li>'.228 $forum_option . 225 229 '<li>' . __( '<strong>Topic</strong> determines the parent topic that the reply belongs to.', 'bbpress' ) . '</li>' . 226 230 '</ul>' 227 231 ) ); -
includes/admin/metaboxes.php
391 391 * 392 392 * @uses bbp_get_topic_post_type() To get the topic post type 393 393 * @uses do_action() Calls 'bbp_reply_metabox' 394 * @uses apply_filters() with bbp_show_forum_dropdown_on_replies to enable the forum selector 394 395 */ 395 396 function bbp_reply_metabox() { 396 397 … … 399 400 400 401 // Get some meta 401 402 $reply_topic_id = bbp_get_reply_topic_id( $post_id ); 402 $reply_forum_id = bbp_get_reply_forum_id( $post_id );403 403 404 $show_forum_dropdown = apply_filters( 'bbp_show_forum_dropdown_on_replies', false ); 405 404 406 // Allow individual manipulation of reply forum 405 if ( current_user_can( 'edit_others_replies' ) || current_user_can( 'moderate' ) ) : ?>407 if ( $show_forum_dropdown && ( current_user_can( 'edit_others_replies' ) || current_user_can( 'moderate' ) ) ) : 406 408 409 $reply_forum_id = bbp_get_reply_forum_id( $post_id ); 410 ?> 411 407 412 <p> 408 413 <strong class="label"><?php _e( 'Forum:', 'bbpress' ); ?></strong> 409 414 <label class="screen-reader-text" for="bbp_forum_id"><?php _e( 'Forum', 'bbpress' ); ?></label>