Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/05/2025 02:27:53 AM (6 months ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement: docs & code formatting improvements.

Props johnjamesjacoby, noruzzaman.

Fixes #3659.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/forums.php

    r7378 r7380  
    22
    33/**
    4  * bbPress Forum Admin Class
     4 * bbPress Forum Admin Class.
    55 *
    66 * @package bbPress
     
    1313if ( ! class_exists( 'BBP_Forums_Admin' ) ) :
    1414/**
    15  * Loads bbPress forums admin area
     15 * Loads bbPress forums admin area.
    1616 *
    1717 * @package bbPress
     
    2424
    2525    /**
    26      * @var string The post type of this admin component
     26     * @var string The post type of this admin component.
    2727     */
    2828    private $post_type = '';
     
    3131
    3232    /**
    33      * The main bbPress forums admin loader
     33     * The main bbPress forums admin loader.
    3434     *
    3535     * @since 2.0.0 bbPress (r2515)
     
    4141
    4242    /**
    43      * Setup the admin hooks, actions and filters
     43     * Setup the admin hooks, actions and filters.
    4444     *
    4545     * @since 2.0.0 bbPress (r2646)
     
    7777
    7878    /**
    79      * Admin globals
     79     * Admin globals.
    8080     *
    8181     * @since 2.0.0 bbPress (r2646)
     
    9090
    9191    /**
    92      * Contextual help for bbPress forum edit page
     92     * Contextual help for bbPress forum edit page.
    9393     *
    9494     * @since 2.0.0 bbPress (r3119)
     
    157157
    158158    /**
    159      * Contextual help for bbPress forum edit page
     159     * Contextual help for bbPress forum edit page.
    160160     *
    161161     * @since 2.0.0 bbPress (r3119)
     
    221221
    222222    /**
    223      * Add the forum attributes meta-box
     223     * Add the forum attributes meta-box.
    224224     *
    225225     * @since 2.0.0 bbPress (r2746)
     
    237237
    238238    /**
    239      * Add the forum moderators meta-box
     239     * Add the forum moderators meta-box.
    240240     *
    241241     * @since 2.6.0 bbPress
     
    260260
    261261    /**
    262      * Add the subscriptions meta-box
     262     * Add the subscriptions meta-box.
    263263     *
    264264     * Allows viewing of users who have subscribed to a forum.
     
    290290
    291291    /**
    292      * Remove comments & discussion meta-boxes if comments are not supported
     292     * Remove comments & discussion meta-boxes if comments are not supported.
    293293     *
    294294     * @since 2.6.0 bbPress (r6186)
     
    302302
    303303    /**
    304      * Pass the forum attributes for processing
     304     * Pass the forum attributes for processing.
    305305     *
    306306     * @since 2.0.0 bbPress (r2746)
    307307     *
    308      * @param int $forum_id Forum id
    309      * @return int Forum id
     308     * @param int $forum_id Forum id.
     309     * @return int Forum id.
    310310     */
    311311    public function save_meta_boxes( $forum_id ) {
     
    355355
    356356    /**
    357      * Toggle forum
    358      *
    359      * Handles the admin-side opening/closing of forums
     357     * Toggle forum.
     358     *
     359     * Handles the admin-side opening/closing of forums.
    360360     *
    361361     * @since 2.6.0 bbPress (r5254)
     
    428428
    429429    /**
    430      * Toggle forum notices
     430     * Toggle forum notices.
    431431     *
    432432     * Display the success/error notices from
     
    493493
    494494    /**
    495      * Returns an array of keys used to sort row actions
     495     * Returns an array of keys used to sort row actions.
    496496     *
    497497     * @since 2.6.0 bbPress (r6771)
     
    522522
    523523    /**
    524      * Returns an array of notice toggles
     524     * Returns an array of notice toggles.
    525525     *
    526526     * @since 2.6.0 bbPress (r6396)
     
    547547
    548548    /**
    549      * Returns an array of notice toggles
     549     * Returns an array of notice toggles.
    550550     *
    551551     * @since 2.6.0 bbPress (r6396)
     
    571571
    572572    /**
    573      * Manage the column headers for the forums page
     573     * Manage the column headers for the forums page.
    574574     *
    575575     * @since 2.0.0 bbPress (r2485)
    576576     *
    577      * @param array $columns The columns
    578      *
    579      * @return array $columns bbPress forum columns
     577     * @param array $columns The columns.
     578     *
     579     * @return array $columns bbPress forum columns.
    580580     */
    581581    public function column_headers( $columns ) {
     
    609609
    610610    /**
    611      * Print extra columns for the forums page
     611     * Print extra columns for the forums page.
    612612     *
    613613     * @since 2.0.0 bbPress (r2485)
    614614     *
    615      * @param string $column Column
    616      * @param int $forum_id Forum id
     615     * @param string $column Column.
     616     * @param int $forum_id Forum id.
    617617     */
    618618    public function column_data( $column, $forum_id ) {
     
    664664
    665665    /**
    666      * Forum Row actions
     666     * Forum Row actions.
    667667     *
    668668     * Remove the quick-edit action link and display the description under
    669      * the forum title and add the open/close links
     669     * the forum title and add the open/close links.
    670670     *
    671671     * @since 2.0.0 bbPress (r2577)
    672672     *
    673      * @param array  $actions Actions
    674      * @param object $forum   Forum object
    675      *
    676      * @return array $actions Actions
     673     * @param array  $actions Actions.
     674     * @param object $forum   Forum object.
     675     *
     676     * @return array $actions Actions.
    677677     */
    678678    public function row_actions( $actions = array(), $forum = false ) {
     
    716716
    717717    /**
    718      * Sort row actions by key
     718     * Sort row actions by key.
    719719     *
    720720     * @since 2.6.0
    721721     *
    722      * @param array $actions
     722     * @param array $actions.
    723723     *
    724724     * @return array
     
    745745
    746746    /**
    747      * Custom user feedback messages for forum post type
     747     * Custom user feedback messages for forum post type.
    748748     *
    749749     * @since 2.0.0 bbPress (r3080)
     
    838838
    839839/**
    840  * Setup bbPress Forums Admin
     840 * Setup bbPress Forums Admin.
    841841 *
    842842 * This is currently here to make hooking and unhooking of the admin UI easy.
     
    845845 * @since 2.0.0 bbPress (r2596)
    846846 *
    847  * @param WP_Screen $current_screen Current screen object
     847 * @param WP_Screen $current_screen Current screen object.
    848848 */
    849849function bbp_admin_forums( $current_screen ) {
Note: See TracChangeset for help on using the changeset viewer.