Changeset 7380 for trunk/src/includes/admin/topics.php
- Timestamp:
- 12/05/2025 02:27:53 AM (9 months ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/topics.php (modified) (31 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/topics.php
r7379 r7380 2 2 3 3 /** 4 * bbPress Topics Admin Class 4 * bbPress Topics Admin Class. 5 5 * 6 6 * @package bbPress … … 13 13 if ( ! class_exists( 'BBP_Topics_Admin' ) ) : 14 14 /** 15 * Loads bbPress topics admin area 15 * Loads bbPress topics admin area. 16 16 * 17 17 * @package bbPress … … 24 24 25 25 /** 26 * @var The post type of this admin component 26 * @var The post type of this admin component. 27 27 */ 28 28 private $post_type = ''; … … 31 31 32 32 /** 33 * The main bbPress topics admin loader 33 * The main bbPress topics admin loader. 34 34 * 35 35 * @since 2.0.0 bbPress (r2515) … … 41 41 42 42 /** 43 * Setup the admin hooks, actions and filters 43 * Setup the admin hooks, actions and filters. 44 44 * 45 45 * @since 2.0.0 bbPress (r2646) … … 95 95 96 96 /** 97 * Admin globals 97 * Admin globals. 98 98 * 99 99 * @since 2.0.0 bbPress (r2646) … … 108 108 109 109 /** 110 * Contextual help for bbPress topic edit page 110 * Contextual help for bbPress topic edit page. 111 111 * 112 112 * @since 2.0.0 bbPress (r3119) … … 180 180 181 181 /** 182 * Contextual help for bbPress topic edit page 182 * Contextual help for bbPress topic edit page. 183 183 * 184 184 * @since 2.0.0 bbPress (r3119) … … 356 356 357 357 /** 358 * Add the topic attributes meta-box 358 * Add the topic attributes meta-box. 359 359 * 360 360 * @since 2.0.0 bbPress (r2744) … … 372 372 373 373 /** 374 * Add the author info meta-box 374 * Add the author info meta-box. 375 375 * 376 376 * @since 2.0.0 bbPress (r2828) … … 395 395 396 396 /** 397 * Add the replies meta-box 397 * Add the replies meta-box. 398 398 * 399 399 * Allows viewing & moderating of replies to a topic, based on the way … … 421 421 422 422 /** 423 * Add the engagements meta-box 423 * Add the engagements meta-box. 424 424 * 425 425 * Allows viewing of users who have engaged in a topic. … … 451 451 452 452 /** 453 * Add the favorites meta-box 453 * Add the favorites meta-box. 454 454 * 455 455 * Allows viewing of users who have favorited a topic. … … 481 481 482 482 /** 483 * Add the subscriptions meta-box 483 * Add the subscriptions meta-box. 484 484 * 485 485 * Allows viewing of users who have subscribed to a topic. … … 511 511 512 512 /** 513 * Remove comments & discussion meta-boxes if comments are not supported 513 * Remove comments & discussion meta-boxes if comments are not supported. 514 514 * 515 515 * @since 2.6.0 bbPress (r6186) … … 523 523 524 524 /** 525 * Pass the topic attributes for processing 525 * Pass the topic attributes for processing. 526 526 * 527 527 * @since 2.0.0 bbPress (r2746) 528 528 * 529 * @param int $topic_id Topic id 530 * @return int Parent id 529 * @param int $topic_id Topic id. 530 * @return int Parent id. 531 531 */ 532 532 public function save_meta_boxes( $topic_id ) { … … 576 576 577 577 /** 578 * Toggle topic 578 * Toggle topic. 579 579 * 580 580 * Handles the admin-side opening/closing, sticking/unsticking and 581 * spamming/unspamming of topics 581 * spamming/unspamming of topics. 582 582 * 583 583 * @since 2.0.0 bbPress (r2727) … … 695 695 696 696 /** 697 * Toggle topic notices 697 * Toggle topic notices. 698 698 * 699 699 * Display the success/error notices from … … 817 817 818 818 /** 819 * Returns an array of keys used to sort row actions 819 * Returns an array of keys used to sort row actions. 820 820 * 821 821 * @since 2.6.0 bbPress (r6771) … … 845 845 846 846 /** 847 * Returns an array of notice toggles 847 * Returns an array of notice toggles. 848 848 * 849 849 * @since 2.6.0 bbPress (r6396) … … 871 871 872 872 /** 873 * Returns an array of notice toggles 873 * Returns an array of notice toggles. 874 874 * 875 875 * @since 2.6.0 bbPress (r6396) … … 892 892 893 893 /** 894 * Manage the column headers for the topics page 894 * Manage the column headers for the topics page. 895 895 * 896 896 * @since 2.0.0 bbPress (r2485) 897 897 * 898 * @param array $columns The columns 899 * 900 * @return array $columns bbPress topic columns 898 * @param array $columns The columns. 899 * 900 * @return array $columns bbPress topic columns. 901 901 */ 902 902 public function column_headers( $columns ) { … … 917 917 918 918 /** 919 * Print extra columns for the topics page 919 * Print extra columns for the topics page. 920 920 * 921 921 * @since 2.0.0 bbPress (r2485) 922 922 * 923 * @param string $column Column 924 * @param int $topic_id Topic id 923 * @param string $column Column. 924 * @param int $topic_id Topic id. 925 925 */ 926 926 public function column_data( $column, $topic_id ) { … … 997 997 998 998 /** 999 * Topic Row actions 999 * Topic Row actions. 1000 1000 * 1001 1001 * Remove the quick-edit action link under the topic title and add the 1002 * content and close/stick/spam links 1002 * content and close/stick/spam links. 1003 1003 * 1004 1004 * @since 2.0.0 bbPress (r2485) 1005 1005 * 1006 * @param array $actions Actions 1007 * @param object $topic Topic object 1008 * 1009 * @return array $actions Actions 1006 * @param array $actions Actions. 1007 * @param object $topic Topic object. 1008 * 1009 * @return array $actions Actions. 1010 1010 */ 1011 1011 public function row_actions( $actions = array(), $topic = false ) { … … 1122 1122 1123 1123 /** 1124 * Sort row actions by key 1124 * Sort row actions by key. 1125 1125 * 1126 1126 * @since 2.6.0 … … 1151 1151 1152 1152 /** 1153 * Add forum dropdown to topic and reply list table filters 1153 * Add forum dropdown to topic and reply list table filters. 1154 1154 * 1155 1155 * @since 2.0.0 bbPress (r2991) 1156 1156 * 1157 * @return bool False. If post type is not topic or reply 1157 * @return bool False. If post type is not topic or reply. 1158 1158 */ 1159 1159 public function filter_dropdown() { … … 1174 1174 1175 1175 /** 1176 * Add "Empty Spam" button for moderators 1176 * Add "Empty Spam" button for moderators. 1177 1177 * 1178 1178 * @since 2.6.0 bbPress (r6791) … … 1210 1210 1211 1211 /** 1212 * Adjust the request query and include the forum id 1212 * Adjust the request query and include the forum id. 1213 1213 * 1214 1214 * @since 2.0.0 bbPress (r2991) 1215 1215 * 1216 * @param array $query_vars Query variables from {@link WP_Query} 1217 * @return array Processed Query Vars 1216 * @param array $query_vars Query variables from {@link WP_Query}. 1217 * @return array Processed Query Vars. 1218 1218 */ 1219 1219 public function filter_post_rows( $query_vars ) { … … 1231 1231 1232 1232 /** 1233 * Custom user feedback messages for topic post type 1233 * Custom user feedback messages for topic post type. 1234 1234 * 1235 1235 * @since 2.0.0 bbPress (r3080) … … 1324 1324 1325 1325 /** 1326 * Setup bbPress Topics Admin 1326 * Setup bbPress Topics Admin. 1327 1327 * 1328 1328 * This is currently here to make hooking and unhooking of the admin UI easy. … … 1331 1331 * @since 2.0.0 bbPress (r2596) 1332 1332 * 1333 * @param WP_Screen $current_screen Current screen object 1333 * @param WP_Screen $current_screen Current screen object. 1334 1334 */ 1335 1335 function bbp_admin_topics( $current_screen ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)