Changeset 6573 for trunk/src/includes/admin/topics.php
- Timestamp:
- 06/16/2017 09:20:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/topics.php
r6566 r6573 34 34 * 35 35 * @since 2.0.0 bbPress (r2515) 36 *37 * @uses BBP_Topics_Admin::setup_globals() Setup the globals needed38 * @uses BBP_Topics_Admin::setup_actions() Setup the hooks and actions39 * @uses BBP_Topics_Admin::setup_help() Setup the help text40 36 */ 41 37 public function __construct() { … … 51 47 * 52 48 * @access private 53 *54 * @uses add_action() To add various actions55 * @uses add_filter() To add various filters56 * @uses bbp_get_forum_post_type() To get the forum post type57 * @uses bbp_get_topic_post_type() To get the topic post type58 * @uses bbp_get_reply_post_type() To get the reply post type59 49 */ 60 50 private function setup_actions() { … … 118 108 * 119 109 * @since 2.0.0 bbPress (r3119) 120 *121 * @uses get_current_screen()122 110 */ 123 111 public function edit_help() { … … 184 172 * 185 173 * @since 2.0.0 bbPress (r3119) 186 *187 * @uses get_current_screen()188 174 */ 189 175 public function new_help() { … … 338 324 * 339 325 * @since 2.0.0 bbPress (r2744) 340 *341 * @uses bbp_get_topic_post_type() To get the topic post type342 * @uses add_meta_box() To add the meta-box343 * @uses do_action() Calls 'bbp_topic_attributes_metabox'344 326 */ 345 327 public function attributes_metabox() { … … 358 340 * 359 341 * @since 2.0.0 bbPress (r2828) 360 *361 * @uses add_meta_box() To add the meta-box362 342 */ 363 343 public function author_metabox() { … … 386 366 * 387 367 * @since 2.6.0 bbPress (r5886) 388 *389 * @uses bbp_get_topic() To get the topic390 * @uses bbp_get_reply() To get the reply391 * @uses bbp_get_topic_post_type() To get the topic post type392 * @uses bbp_get_reply_post_type() To get the reply post type393 * @uses add_meta_box() To add the meta-box394 * @uses do_action() Calls 'bbp_author_metabox' with the topic/reply395 * id396 368 */ 397 369 public function replies_metabox() { … … 419 391 * 420 392 * @since 2.6.0 bbPress (r6333) 421 *422 * @uses add_meta_box() To add the meta-box423 393 */ 424 394 public function engagements_metabox() { … … 451 421 * 452 422 * @since 2.6.0 bbPress (r6197) 453 *454 * @uses add_meta_box() To add the meta-box455 423 */ 456 424 public function favorites_metabox() { … … 483 451 * 484 452 * @since 2.6.0 bbPress (r6197) 485 *486 * @uses add_meta_box() To add the meta-box487 453 */ 488 454 public function subscriptions_metabox() { … … 527 493 * 528 494 * @param int $topic_id Topic id 529 * @uses current_user_can() To check if the current user is capable of530 * editing the topic531 * @uses do_action() Calls 'bbp_topic_attributes_metabox_save' with the532 * topic id and parent id533 495 * @return int Parent id 534 496 */ … … 585 547 * 586 548 * @since 2.0.0 bbPress (r2727) 587 *588 * @uses bbp_get_topic() To get the topic589 * @uses current_user_can() To check if the user is capable of editing590 * the topic591 * @uses wp_die() To die if the user isn't capable or the post wasn't592 * found593 * @uses check_admin_referer() To verify the nonce and check referer594 * @uses bbp_is_topic_open() To check if the topic is open595 * @uses bbp_close_topic() To close the topic596 * @uses bbp_open_topic() To open the topic597 * @uses bbp_is_topic_sticky() To check if the topic is a sticky or598 * super sticky599 * @uses bbp_unstick_topic() To unstick the topic600 * @uses bbp_stick_topic() To stick the topic601 * @uses bbp_is_topic_spam() To check if the topic is marked as spam602 * @uses bbp_unspam_topic() To unmark the topic as spam603 * @uses bbp_spam_topic() To mark the topic as spam604 * @uses do_action() Calls 'bbp_toggle_topic_admin' with success, post605 * data, action and message606 * @uses add_query_arg() To add custom args to the url607 * @uses bbp_redirect() Redirect the page to custom url608 549 */ 609 550 public function toggle_topic() { … … 725 666 * 726 667 * @since 2.0.0 bbPress (r2727) 727 *728 * @uses bbp_get_topic() To get the topic729 * @uses bbp_get_topic_title() To get the topic title of the topic730 * @uses esc_html() To sanitize the topic title731 * @uses apply_filters() Calls 'bbp_toggle_topic_notice_admin' with732 * message, topic id, notice and is it a failure733 668 */ 734 669 public function toggle_topic_notice() { … … 880 815 * 881 816 * @param array $columns The columns 882 * @uses apply_filters() Calls 'bbp_admin_topics_column_headers' with 883 * the columns 817 * 884 818 * @return array $columns bbPress topic columns 885 819 */ … … 907 841 * @param string $column Column 908 842 * @param int $topic_id Topic id 909 * @uses bbp_get_topic_forum_id() To get the forum id of the topic910 * @uses bbp_forum_title() To output the topic's forum title911 * @uses apply_filters() Calls 'topic_forum_row_actions' with an array912 * of topic forum actions913 * @uses bbp_get_forum_permalink() To get the forum permalink914 * @uses admin_url() To get the admin url of post.php915 * @uses bbp_topic_reply_count() To output the topic reply count916 * @uses bbp_topic_voice_count() To output the topic voice count917 * @uses bbp_topic_author_display_name() To output the topic author name918 * @uses get_the_date() Get the topic creation date919 * @uses get_the_time() Get the topic creation time920 * @uses esc_attr() To sanitize the topic creation time921 * @uses bbp_get_topic_last_active_time() To get the time when the topic was922 * last active923 * @uses do_action() Calls 'bbp_admin_topics_column_data' with the924 * column and topic id925 843 */ 926 844 public function column_data( $column, $topic_id ) { … … 1006 924 * @param array $actions Actions 1007 925 * @param array $topic Topic object 1008 * @uses bbp_get_topic_post_type() To get the topic post type1009 * @uses bbp_topic_content() To output topic content1010 * @uses bbp_get_topic_permalink() To get the topic link1011 * @uses bbp_get_topic_title() To get the topic title1012 * @uses current_user_can() To check if the current user can edit or1013 * delete the topic1014 * @uses bbp_is_topic_open() To check if the topic is open1015 * @uses bbp_is_topic_spam() To check if the topic is marked as spam1016 * @uses bbp_is_topic_sticky() To check if the topic is a sticky or a1017 * super sticky1018 * @uses get_post_type_object() To get the topic post type object1019 * @uses add_query_arg() To add custom args to the url1020 * @uses remove_query_arg() To remove custom args from the url1021 * @uses wp_nonce_url() To nonce the url1022 * @uses get_delete_post_link() To get the delete post link of the topic1023 926 * @return array $actions Actions 1024 927 */ … … 1111 1014 * @since 2.0.0 bbPress (r2991) 1112 1015 * 1113 * @uses bbp_get_reply_post_type() To get the reply post type1114 * @uses bbp_get_topic_post_type() To get the topic post type1115 * @uses bbp_dropdown() To generate a forum dropdown1116 1016 * @return bool False. If post type is not topic or reply 1117 1017 */ … … 1147 1047 * 1148 1048 * @param array $query_vars Query variables from {@link WP_Query} 1149 * @uses is_admin() To check if it's the admin section1150 * @uses bbp_get_topic_post_type() To get the topic post type1151 * @uses bbp_get_reply_post_type() To get the reply post type1152 1049 * @return array Processed Query Vars 1153 1050 */ … … 1171 1068 * 1172 1069 * @global int $post_ID 1173 * @uses bbp_get_topic_permalink()1174 * @uses wp_post_revision_title()1175 * @uses esc_url()1176 * @uses add_query_arg()1177 1070 * 1178 1071 * @param array $messages … … 1270 1163 * 1271 1164 * @param WP_Screen $current_screen Current screen object 1272 * @uses BBP_Forums_Admin1273 1165 */ 1274 1166 function bbp_admin_topics( $current_screen ) {
Note: See TracChangeset
for help on using the changeset viewer.