Skip to:
Content

bbPress.org

Ticket #2879: 2879.01.patch

File 2879.01.patch, 453.9 KB (added by thebrandonallen, 10 years ago)
  • src/bbpress.php

    diff --git src/bbpress.php src/bbpress.php
    index 4bf8f51..3a32244 100644
    if ( !class_exists( 'bbPress' ) ) : 
    3232 *
    3333 * "How doth the little busy bee, improve each shining hour..."
    3434 *
    35  * @since bbPress (r2464)
     35 * @since 2.0.0 bbPress (r2464)
    3636 */
    3737final class bbPress {
    3838
    final class bbPress { 
    9090         * Insures that only one instance of bbPress exists in memory at any one
    9191         * time. Also prevents needing to define globals all over the place.
    9292         *
    93          * @since bbPress (r3757)
     93         * @since 2.1.0 bbPress (r3757)
     94         *
    9495         * @staticvar object $instance
    9596         * @uses bbPress::setup_globals() Setup the globals needed
    9697         * @uses bbPress::includes() Include the required files
    final class bbPress { 
    120121        /**
    121122         * A dummy constructor to prevent bbPress from being loaded more than once.
    122123         *
    123          * @since bbPress (r2464)
     124         * @since 2.0.0 bbPress (r2464)
     125         *
    124126         * @see bbPress::instance()
    125127         * @see bbpress();
    126128         */
    final class bbPress { 
    129131        /**
    130132         * A dummy magic method to prevent bbPress from being cloned
    131133         *
    132          * @since bbPress (r2464)
     134         * @since 2.0.0 bbPress (r2464)
    133135         */
    134136        public function __clone() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'bbpress' ), '2.1' ); }
    135137
    136138        /**
    137139         * A dummy magic method to prevent bbPress from being unserialized
    138140         *
    139          * @since bbPress (r2464)
     141         * @since 2.0.0 bbPress (r2464)
    140142         */
    141143        public function __wakeup() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'bbpress' ), '2.1' ); }
    142144
    143145        /**
    144146         * Magic method for checking the existence of a certain custom field
    145147         *
    146          * @since bbPress (r3951)
     148         * @since 2.1.0 bbPress (r3951)
    147149         */
    148150        public function __isset( $key ) { return isset( $this->data[ $key ] ); }
    149151
    150152        /**
    151153         * Magic method for getting bbPress variables
    152154         *
    153          * @since bbPress (r3951)
     155         * @since 2.1.0 bbPress (r3951)
    154156         */
    155157        public function __get( $key ) { return isset( $this->data[ $key ] ) ? $this->data[ $key ] : null; }
    156158
    157159        /**
    158160         * Magic method for setting bbPress variables
    159161         *
    160          * @since bbPress (r3951)
     162         * @since 2.1.0 bbPress (r3951)
    161163         */
    162164        public function __set( $key , $value ) { $this->data[ $key ] = $value; }
    163165
    164166        /**
    165167         * Magic method for unsetting bbPress variables
    166168         *
    167          * @since bbPress (r4628)
     169         * @since 2.3.0 bbPress (r4628)
    168170         */
    169171        public function __unset( $key ) {
    170172                if ( isset( $this->data[ $key ] ) ) {
    final class bbPress { 
    175177        /**
    176178         * Magic method to prevent notices and errors from invalid method calls
    177179         *
    178          * @since bbPress (r4252)
     180         * @since 2.2.0 bbPress (r4252)
    179181         */
    180182        public function __call( $name = '', $args = array() ) { unset( $name, $args ); return null; }
    181183
    final class bbPress { 
    185187         * Set some smart defaults to class variables. Allow some of them to be
    186188         * filtered to allow for early overriding.
    187189         *
    188          * @since bbPress (r2626)
     190         * @since 2.0.0 bbPress (r2626)
     191         *
    189192         * @access private
    190193         * @uses plugin_dir_path() To generate bbPress plugin path
    191194         * @uses plugin_dir_url() To generate bbPress plugin url
    final class bbPress { 
    286289        /**
    287290         * Include required files
    288291         *
    289          * @since bbPress (r2626)
     292         * @since 2.0.0 bbPress (r2626)
     293         *
    290294         * @access private
    291295         * @uses is_admin() If in WordPress admin, load additional file
    292296         */
    final class bbPress { 
    359363        /**
    360364         * Setup the default hooks and actions
    361365         *
    362          * @since bbPress (r2644)
     366         * @since 2.0.0 bbPress (r2644)
     367         *
    363368         * @access private
    364369         * @uses add_action() To add various actions
    365370         */
    final class bbPress { 
    408413         * the bbp-theme-compat folders, it's fine to hardcode these here. If at a
    409414         * later date we need to automate this, and API will need to be built.
    410415         *
    411          * @since bbPress (r3829)
     416         * @since 2.1.0 bbPress (r3829)
    412417         */
    413418        public function register_theme_packages() {
    414419
    final class bbPress { 
    430435        /**
    431436         * Setup the default bbPress theme compatibility location.
    432437         *
    433          * @since bbPress (r3778)
     438         * @since 2.1.0 bbPress (r3778)
    434439         */
    435440        public function setup_theme() {
    436441
    final class bbPress { 
    452457         * will be removed on bbPress updates. If you're creating custom
    453458         * translation files, please use the global language folder.
    454459         *
    455          * @since bbPress (r2596)
     460         * @since 2.0.0 bbPress (r2596)
    456461         *
    457462         * @uses apply_filters() Calls 'plugin_locale' with {@link get_locale()} value
    458463         * @uses load_textdomain() To load the textdomain
    final class bbPress { 
    480485        /**
    481486         * Setup the post types for forums, topics and replies
    482487         *
    483          * @since bbPress (r2597)
     488         * @since 2.0.0 bbPress (r2597)
     489         *
    484490         * @uses register_post_type() To register the post types
    485491         * @uses apply_filters() Calls various filters to modify the arguments
    486492         *                        sent to register_post_type()
    final class bbPress { 
    569575         * We do some manipulation of the 'trash' status so trashed topics and
    570576         * replies can be viewed from within the theme.
    571577         *
    572          * @since bbPress (r2727)
     578         * @since 2.0.0 bbPress (r2727)
     579         *
    573580         * @uses register_post_status() To register post statuses
    574581         * @uses $wp_post_statuses To modify trash and private statuses
    575582         * @uses current_user_can() To check if the current user is capable &
    final class bbPress { 
    654661        /**
    655662         * Register the topic tag and forum moderator taxonomies
    656663         *
    657          * @since bbPress (r2464) Added bbp_get_topic_tag_tax_id() taxonomy
    658          * @since bbPress (r5834) Added bbp_get_forum_mod_tax_id() taxonomy
     664         * @since 2.0.0 bbPress (r2464) Added bbp_get_topic_tag_tax_id() taxonomy
     665         * @since 2.6.0 bbPress (r5834) Added bbp_get_forum_mod_tax_id() taxonomy
    659666         *
    660667         * @uses register_taxonomy() To register the taxonomy
    661668         * @uses bbp_get_topic_post_type() To get the topic post type
    final class bbPress { 
    712719        /**
    713720         * Register the bbPress views
    714721         *
    715          * @since bbPress (r2789)
     722         * @since 2.0.0 bbPress (r2789)
     723         *
    716724         * @uses bbp_register_view() To register the views
    717725         */
    718726        public static function register_views() {
    final class bbPress { 
    748756        /**
    749757         * Register the bbPress shortcodes
    750758         *
    751          * @since bbPress (r3031)
     759         * @since 2.0.0 bbPress (r3031)
    752760         *
    753761         * @uses BBP_Shortcodes
    754762         */
    final class bbPress { 
    764772         * execution. get_currentuserinfo() is used to check for XMLRPC_REQUEST to
    765773         * avoid xmlrpc errors.
    766774         *
    767          * @since bbPress (r2697)
     775         * @since 2.0.0 bbPress (r2697)
     776         *
    768777         * @uses wp_get_current_user()
    769778         */
    770779        public function setup_current_user() {
    final class bbPress { 
    776785        /**
    777786         * Add the bbPress-specific rewrite tags
    778787         *
    779          * @since bbPress (r2753)
     788         * @since 2.0.0 bbPress (r2753)
     789         *
    780790         * @uses add_rewrite_tag() To add the rewrite tags
    781791         */
    782792        public static function add_rewrite_tags() {
    final class bbPress { 
    797807         * - Topic views
    798808         * - User profiles
    799809         *
    800          * @since bbPress (r2688)
     810         * @since 2.0.0 bbPress (r2688)
     811         *
    801812         * @todo Extract into an API
    802813         */
    803814        public static function add_rewrite_rules() {
    final class bbPress { 
    896907         * - Topic Views
    897908         * - Search
    898909         *
    899          * @since bbPress (r4930)
     910         * @since 2.4.0 bbPress (r4930)
    900911         */
    901912        public static function add_permastructs() {
    902913
  • src/includes/admin/actions.php

    diff --git src/includes/admin/actions.php src/includes/admin/actions.php
    index 2bd8d6c..4f62f78 100644
    add_filter( 'bbp_admin_replies_column_headers', 'bbp_filter_column_headers' ); 
    101101 * When a new site is created in a multisite installation, run the activation
    102102 * routine on that site
    103103 *
    104  * @since bbPress (r3283)
     104 * @since 2.0.0 bbPress (r3283)
    105105 *
    106106 * @param int $blog_id
    107107 * @param int $user_id
    function bbp_new_site( $blog_id, $user_id, $domain, $path, $site_id, $meta ) { 
    130130/**
    131131 * Show icons in list-table column headers instead of strings
    132132 *
    133  * @since bbPress (r5833)
     133 * @since 2.6.0 bbPress (r5833)
    134134 *
    135135 * @param  array $columns Column headers fed into list-table objects
    136136 *
    function bbp_filter_column_headers( $columns = array() ) { 
    187187/**
    188188 * Piggy back admin_init action
    189189 *
    190  * @since bbPress (r3766)
     190 * @since 2.1.0 bbPress (r3766)
     191 *
    191192 * @uses do_action() Calls 'bbp_admin_init'
    192193 */
    193194function bbp_admin_init() {
    function bbp_admin_init() { 
    197198/**
    198199 * Piggy back admin_menu action
    199200 *
    200  * @since bbPress (r3766)
     201 * @since 2.1.0 bbPress (r3766)
     202 *
    201203 * @uses do_action() Calls 'bbp_admin_menu'
    202204 */
    203205function bbp_admin_menu() {
    function bbp_admin_menu() { 
    207209/**
    208210 * Piggy back admin_head action
    209211 *
    210  * @since bbPress (r3766)
     212 * @since 2.1.0 bbPress (r3766)
     213 *
    211214 * @uses do_action() Calls 'bbp_admin_head'
    212215 */
    213216function bbp_admin_head() {
    function bbp_admin_head() { 
    217220/**
    218221 * Piggy back admin_notices action
    219222 *
    220  * @since bbPress (r3766)
     223 * @since 2.1.0 bbPress (r3766)
     224 *
    221225 * @uses do_action() Calls 'bbp_admin_notices'
    222226 */
    223227function bbp_admin_notices() {
    function bbp_admin_notices() { 
    227231/**
    228232 * Dedicated action to register bbPress importers
    229233 *
    230  * @since bbPress (r3766)
     234 * @since 2.1.0 bbPress (r3766)
     235 *
    231236 * @uses do_action() Calls 'bbp_admin_notices'
    232237 */
    233238function bbp_register_importers() {
    function bbp_register_importers() { 
    237242/**
    238243 * Dedicated action to register admin styles
    239244 *
    240  * @since bbPress (r3766)
     245 * @since 2.1.0 bbPress (r3766)
     246 *
    241247 * @uses do_action() Calls 'bbp_admin_notices'
    242248 */
    243249function bbp_register_admin_style() {
    function bbp_register_admin_style() { 
    247253/**
    248254 * Dedicated action to register admin settings
    249255 *
    250  * @since bbPress (r3766)
     256 * @since 2.1.0 bbPress (r3766)
     257 *
    251258 * @uses do_action() Calls 'bbp_register_admin_settings'
    252259 */
    253260function bbp_register_admin_settings() {
  • src/includes/admin/admin.php

    diff --git src/includes/admin/admin.php src/includes/admin/admin.php
    index a0e1bd8..0d67f16 100644
    if ( !class_exists( 'BBP_Admin' ) ) : 
    1616 *
    1717 * @package bbPress
    1818 * @subpackage Administration
    19  * @since bbPress (r2464)
     19 * @since 2.0.0 bbPress (r2464)
    2020 */
    2121class BBP_Admin {
    2222
    class BBP_Admin { 
    8080        /**
    8181         * The main bbPress admin loader
    8282         *
    83          * @since bbPress (r2515)
     83         * @since 2.0.0 bbPress (r2515)
    8484         *
    8585         * @uses BBP_Admin::setup_globals() Setup the globals needed
    8686         * @uses BBP_Admin::includes() Include the required files
    class BBP_Admin { 
    9595        /**
    9696         * Admin globals
    9797         *
    98          * @since bbPress (r2646)
     98         * @since 2.0.0 bbPress (r2646)
     99         *
    99100         * @access private
    100101         */
    101102        private function setup_globals() {
    class BBP_Admin { 
    111112        /**
    112113         * Include required files
    113114         *
    114          * @since bbPress (r2646)
     115         * @since 2.0.0 bbPress (r2646)
     116         *
    115117         * @access private
    116118         */
    117119        private function includes() {
    class BBP_Admin { 
    129131        /**
    130132         * Setup the admin hooks, actions and filters
    131133         *
    132          * @since bbPress (r2646)
     134         * @since 2.0.0 bbPress (r2646)
     135         *
    133136         * @access private
    134137         *
    135138         * @uses add_action() To add various actions
    class BBP_Admin { 
    188191        /**
    189192         * Add the admin menus
    190193         *
    191          * @since bbPress (r2646)
     194         * @since 2.0.0 bbPress (r2646)
    192195         *
    193196         * @uses add_management_page() To add the Recount page in Tools section
    194197         * @uses add_options_page() To add the Forums settings page in Settings
    class BBP_Admin { 
    296299        /**
    297300         * Add the network admin menus
    298301         *
    299          * @since bbPress (r3689)
     302         * @since 2.1.0 bbPress (r3689)
     303         *
    300304         * @uses add_submenu_page() To add the Update Forums page in Updates
    301305         */
    302306        public function network_admin_menus() {
    class BBP_Admin { 
    319323        /**
    320324         * If this is a new installation, create some initial forum content.
    321325         *
    322          * @since bbPress (r3767)
     326         * @since 2.1.0 bbPress (r3767)
     327         *
    323328         * @return type
    324329         */
    325330        public static function new_install() {
    class BBP_Admin { 
    333338        /**
    334339         * Register the settings
    335340         *
    336          * @since bbPress (r2737)
     341         * @since 2.0.0 bbPress (r2737)
    337342         *
    338343         * @uses add_settings_section() To add our own settings section
    339344         * @uses add_settings_field() To add various settings fields
    class BBP_Admin { 
    392397        /**
    393398         * Maps settings capabilities
    394399         *
    395          * @since bbPress (r4242)
     400         * @since 2.2.0 bbPress (r4242)
    396401         *
    397402         * @param array $caps Capabilities for meta capability
    398403         * @param string $cap Capability name
    class BBP_Admin { 
    453458        /**
    454459         * Register the importers
    455460         *
    456          * @since bbPress (r2737)
     461         * @since 2.0.0 bbPress (r2737)
    457462         *
    458463         * @uses apply_filters() Calls 'bbp_importer_path' filter to allow plugins
    459464         *                        to customize the importer script locations.
    class BBP_Admin { 
    492497         *
    493498         * Shows a nag message in admin area about the theme not supporting bbPress
    494499         *
    495          * @since bbPress (r2743)
     500         * @since 2.0.0 bbPress (r2743)
    496501         *
    497502         * @uses current_user_can() To check notice should be displayed.
    498503         */
    class BBP_Admin { 
    503508        /**
    504509         * Add Settings link to plugins area
    505510         *
    506          * @since bbPress (r2737)
     511         * @since 2.0.0 bbPress (r2737)
    507512         *
    508513         * @param array $links Links array in which we would prepend our link
    509514         * @param string $file Current plugin basename
    class BBP_Admin { 
    536541        /**
    537542         * Add a link to bbPress about page to the admin bar
    538543         *
    539          * @since bbPress (r5136)
     544         * @since 2.5.0 bbPress (r5136)
    540545         *
    541546         * @param WP_Admin_Bar $wp_admin_bar
    542547         */
    class BBP_Admin { 
    554559        /**
    555560         * Enqueue any admin scripts we might need
    556561         *
    557          * @since bbPress (r4260)
     562         * @since 2.2.0 bbPress (r4260)
    558563         */
    559564        public function enqueue_scripts() {
    560565
    class BBP_Admin { 
    593598        /**
    594599         * Enqueue any admin scripts we might need
    595600         *
    596          * @since bbPress (r5224)
     601         * @since 2.6.0 bbPress (r5224)
    597602         */
    598603        public function enqueue_styles() {
    599604
    class BBP_Admin { 
    609614         * Remove the individual recount and converter menus.
    610615         * They are grouped together by h2 tabs
    611616         *
    612          * @since bbPress (r2464)
     617         * @since 2.0.0 bbPress (r2464)
    613618         *
    614619         * @uses remove_submenu_page() To remove menu items with alternat navigation
    615620         */
    class BBP_Admin { 
    628633         * way to be certain what the relative path of the admin images is.
    629634         * We are including the two most common configurations here, just in case.
    630635         *
    631          * @since bbPress (r2521)
     636         * @since 2.0.0 bbPress (r2521)
    632637         *
    633638         * @uses wp_admin_css_color() To register the color scheme
    634639         */
    class BBP_Admin { 
    665670        /**
    666671         * Hide theme compat package selection if only 1 package is registered
    667672         *
    668          * @since bbPress (r4315)
     673         * @since 2.2.0 bbPress (r4315)
    669674         *
    670675         * @param array $sections Forums settings sections
    671676         * @return array
    class BBP_Admin { 
    681686        /**
    682687         * Allow keymaster role to save Forums settings
    683688         *
    684          * @since bbPress (r4678)
     689         * @since 2.3.0 bbPress (r4678)
    685690         *
    686691         * @param string $capability
    687692         * @return string Return 'keep_gate' capability
    class BBP_Admin { 
    696701        /**
    697702         * Ajax action for facilitating the forum auto-suggest
    698703         *
    699          * @since bbPress (r4261)
     704         * @since 2.2.0 bbPress (r4261)
    700705         *
    701706         * @uses get_posts()
    702707         * @uses bbp_get_topic_post_type()
    class BBP_Admin { 
    736741        /**
    737742         * Ajax action for facilitating the topic and reply author auto-suggest
    738743         *
    739          * @since bbPress (r5014)
     744         * @since 2.4.0 bbPress (r5014)
    740745         */
    741746        public function suggest_user() {
    742747
    class BBP_Admin { 
    775780        /**
    776781         * Output the about screen
    777782         *
    778          * @since bbPress (r4159)
     783         * @since 2.2.0 bbPress (r4159)
    779784         */
    780785        public function about_screen() {
    781786
    class BBP_Admin { 
    852857         * Hardcoding this in here is pretty janky. It's fine for 2.2, but we'll
    853858         * want to leverage api.wordpress.org eventually.
    854859         *
    855          * @since bbPress (r4159)
     860         * @since 2.2.0 bbPress (r4159)
    856861         */
    857862        public function credits_screen() {
    858863
    class BBP_Admin { 
    955960        /**
    956961         * Update all bbPress forums across all sites
    957962         *
    958          * @since bbPress (r3689)
     963         * @since 2.1.0 bbPress (r3689)
    959964         *
    960965         * @uses get_blog_option()
    961966         * @uses wp_remote_get()
    class BBP_Admin { 
    10001005        /**
    10011006         * Update all bbPress forums across all sites
    10021007         *
    1003          * @since bbPress (r3689)
     1008         * @since 2.1.0 bbPress (r3689)
    10041009         *
    10051010         * @uses get_blog_option()
    10061011         * @uses wp_remote_get()
    endif; // class_exists check 
    11141119/**
    11151120 * Setup bbPress Admin
    11161121 *
    1117  * @since bbPress (r2596)
     1122 * @since 2.0.0 bbPress (r2596)
    11181123 *
    11191124 * @uses BBP_Admin
    11201125 */
  • src/includes/admin/converter.php

    diff --git src/includes/admin/converter.php src/includes/admin/converter.php
    index 4ae3a21..5621819 100644
    class BBP_Converter { 
    2020        /**
    2121         * The main bbPress Converter loader
    2222         *
    23          * @since bbPress (r3813)
     23         * @since 2.1.0 bbPress (r3813)
     24         *
    2425         * @uses BBP_Converter::includes() Include the required files
    2526         * @uses BBP_Converter::setup_actions() Setup the actions
    2627         */
    class BBP_Converter { 
    5859        /**
    5960         * Setup the default actions
    6061         *
    61          * @since bbPress (r3813)
     62         * @since 2.1.0 bbPress (r3813)
     63         *
    6264         * @uses add_action() To add various actions
    6365         */
    6466        private function setup_actions() {
    class BBP_Converter { 
    7678        /**
    7779         * Register the settings
    7880         *
    79          * @since bbPress (r3813)
     81         * @since 2.1.0 bbPress (r3813)
     82         *
    8083         * @uses add_settings_section() To add our own settings section
    8184         * @uses add_settings_field() To add various settings fields
    8285         * @uses register_setting() To register various settings
    class BBP_Converter { 
    141144        /**
    142145         * Admin scripts
    143146         *
    144          * @since bbPress (r3813)
     147         * @since 2.1.0 bbPress (r3813)
    145148         */
    146149        public function admin_head() { ?>
    147150
    class BBP_Converter { 
    278281        /**
    279282         * Wrap the converter output in paragraph tags, so styling can be applied
    280283         *
    281          * @since bbPress (r4052)
     284         * @since 2.1.0 bbPress (r4052)
    282285         *
    283286         * @param string $output
    284287         */
    class BBP_Converter { 
    299302        /**
    300303         * Callback processor
    301304         *
    302          * @since bbPress (r3813)
     305         * @since 2.1.0 bbPress (r3813)
    303306         */
    304307        public function process_callback() {
    305308
    class BBP_Converter { 
    626629        /**
    627630         * Create Tables for fast syncing
    628631         *
    629          * @since bbPress (r3813)
     632         * @since 2.1.0 bbPress (r3813)
    630633         */
    631634        public function sync_table( $drop = false ) {
    632635
    class BBP_Converter { 
    665668/**
    666669 * Base class to be extended by specific individual importers
    667670 *
    668  * @since bbPress (r3813)
     671 * @since 2.1.0 bbPress (r3813)
    669672 */
    670673abstract class BBP_Converter_Base {
    671674
    abstract class BBP_Converter_Base { 
    12731276        /**
    12741277         * This method converts old topic stickies to new bbPress stickies.
    12751278         *
    1276          * @since bbPress (r5170)
     1279         * @since 2.5.0 bbPress (r5170)
    12771280         *
    12781281         * @uses WPDB $wpdb
    12791282         * @uses bbp_stick_topic() to set the imported topic as sticky
    abstract class BBP_Converter_Base { 
    13041307        /**
    13051308         * This method converts old topic super stickies to new bbPress super stickies.
    13061309         *
    1307          * @since bbPress (r5170)
     1310         * @since 2.5.0 bbPress (r5170)
    13081311         *
    13091312         * @uses WPDB $wpdb
    13101313         * @uses bbp_stick_topic() to set the imported topic as super sticky
    abstract class BBP_Converter_Base { 
    13361339        /**
    13371340         * This method converts old closed topics to bbPress closed topics.
    13381341         *
    1339          * @since bbPress (r5425)
     1342         * @since 2.6.0 bbPress (r5425)
    13401343         *
    13411344         * @uses bbp_close_topic() to close topics properly
    13421345         *
    abstract class BBP_Converter_Base { 
    13661369        /**
    13671370         * This method converts old reply_to post id to new bbPress reply_to post id.
    13681371         *
    1369          * @since bbPress (r5093)
     1372         * @since 2.4.0 bbPress (r5093)
    13701373         */
    13711374        public function convert_reply_to_parents( $start ) {
    13721375
    abstract class BBP_Converter_Base { 
    13941397        /**
    13951398         * This method converts anonymous topics.
    13961399         *
    1397          * @since bbPress (r5538)
     1400         * @since 2.6.0 bbPress (r5538)
    13981401         *
    13991402         * @uses add_post_meta() To add _bbp_anonymous_name topic meta key
    14001403         */
    abstract class BBP_Converter_Base { 
    14401443        /**
    14411444         * This method converts anonymous replies.
    14421445         *
    1443          * @since bbPress (r5538)
     1446         * @since 2.6.0 bbPress (r5538)
    14441447         *
    14451448         * @uses add_post_meta() To add _bbp_anonymous_name reply meta key
    14461449         */
    abstract class BBP_Converter_Base { 
    16721675        /**
    16731676         * A mini cache system to reduce database calls to reply_to post id.
    16741677         *
    1675          * @since bbPress (r5093)
     1678         * @since 2.4.0 bbPress (r5093)
    16761679         *
    16771680         * @param string $field
    16781681         * @return string
    abstract class BBP_Converter_Base { 
    17241727        /**
    17251728         * Check if the topic or reply author is anonymous
    17261729         *
    1727          * @since (r5544)
     1730         * @since 2.6.0 bbPress (r5544)
    17281731         *
    17291732         * @param  string $field
    17301733         * @return string
  • src/includes/admin/converters/AEF.php

    diff --git src/includes/admin/converters/AEF.php src/includes/admin/converters/AEF.php
    index a4c5ce9..d934cf7 100644
     
    1010/**
    1111 * Implementation of AEF Forum converter.
    1212 *
    13  * @since bbPress (r5139)
     13 * @since 2.5.0 bbPress (r5139)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/aef
    1516 */
    1617class AEF extends BBP_Converter_Base {
  • src/includes/admin/converters/Drupal7.php

    diff --git src/includes/admin/converters/Drupal7.php src/includes/admin/converters/Drupal7.php
    index fdbb4ce..01ac02a 100644
     
    1010/**
    1111 * Implementation of Drupal v7.x Forum converter.
    1212 *
    13  * @since bbPress (r5138)
     13 * @since 2.5.0 bbPress (r5138)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/drupal
    1516 */
    1617class Drupal7 extends BBP_Converter_Base {
  • src/includes/admin/converters/Example.php

    diff --git src/includes/admin/converters/Example.php src/includes/admin/converters/Example.php
    index 24902fd..3498a9f 100644
     
    1010/**
    1111 * Example converter base impoprter template for bbPress
    1212 *
    13  * @since bbPress (r4689)
     13 * @since 2.3.0 bbPress (r4689)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/custom-import
    1516 */
    1617class Example extends BBP_Converter_Base {
  • src/includes/admin/converters/FluxBB.php

    diff --git src/includes/admin/converters/FluxBB.php src/includes/admin/converters/FluxBB.php
    index 4beeee4..4719e95 100644
     
    1010/**
    1111 * Implementation of FluxBB Forum converter.
    1212 *
    13  * @since bbPress (r5138)
     13 * @since 2.5.0 bbPress (r5138)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/fluxbb
    1516 */
    1617class FluxBB extends BBP_Converter_Base {
  • src/includes/admin/converters/Invision.php

    diff --git src/includes/admin/converters/Invision.php src/includes/admin/converters/Invision.php
    index 726419e..737ff6e 100644
     
    1010/**
    1111 * Implementation of Invision Power Board v3.x converter.
    1212 *
    13  * @since bbPress (r4713)
     13 * @since 2.3.0 bbPress (r4713)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/invision
    1516 */
    1617class Invision extends BBP_Converter_Base {
  • src/includes/admin/converters/Kunena1.php

    diff --git src/includes/admin/converters/Kunena1.php src/includes/admin/converters/Kunena1.php
    index f51c283..f216033 100644
     
    1010/**
    1111 * Implementation of Kunena v1.x Forums for Joomla Forum converter.
    1212 *
    13  * @since bbPress (r5144)
     13 * @since 2.5.0 bbPress (r5144)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/kunena/
    1516 */
    1617class Kunena1 extends BBP_Converter_Base {
  • src/includes/admin/converters/Kunena2.php

    diff --git src/includes/admin/converters/Kunena2.php src/includes/admin/converters/Kunena2.php
    index 7117b09..0364550 100644
     
    1010/**
    1111 * Implementation of Kunena v2.x Forums for Joomla Forum converter.
    1212 *
    13  * @since bbPress (r5144)
     13 * @since 2.5.0 bbPress (r5144)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/kunena/
    1516 */
    1617class Kunena2 extends BBP_Converter_Base {
  • src/includes/admin/converters/Kunena3.php

    diff --git src/includes/admin/converters/Kunena3.php src/includes/admin/converters/Kunena3.php
    index 07a924d..add5afb 100644
     
    1010/**
    1111 * Implementation of Kunena v3.x Forums for Joomla Forum converter.
    1212 *
    13  * @since bbPress (r5144)
     13 * @since 2.5.0 bbPress (r5144)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/kunena/
    1516 */
    1617class Kunena3 extends BBP_Converter_Base {
  • src/includes/admin/converters/Mingle.php

    diff --git src/includes/admin/converters/Mingle.php src/includes/admin/converters/Mingle.php
    index fadd8b9..50f1f1e 100644
     
    1010/**
    1111 * Implementation of Mingle Forums converter.
    1212 *
    13  * @since bbPress (r4691)
     13 * @since 2.3.0 bbPress (r4691)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/mingle
    1516 */
    1617class Mingle extends BBP_Converter_Base {
  • src/includes/admin/converters/MyBB.php

    diff --git src/includes/admin/converters/MyBB.php src/includes/admin/converters/MyBB.php
    index 55d47f9..be02c82 100644
     
    1010/**
    1111 * Implementation of MyBB Forum converter.
    1212 *
    13  * @since bbPress (r5140)
     13 * @since 2.5.0 bbPress (r5140)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/mybb
    1516 */
    1617class MyBB extends BBP_Converter_Base {
  • src/includes/admin/converters/PHPFox3.php

    diff --git src/includes/admin/converters/PHPFox3.php src/includes/admin/converters/PHPFox3.php
    index 9f70af8..c2a57da 100644
     
    1010/**
    1111 * Implementation of PHPFox v3.x Forum converter.
    1212 *
    13  * @since bbPress (r5146)
     13 * @since 2.5.0 bbPress (r5146)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/phpfox
    1516 */
    1617class PHPFox3 extends BBP_Converter_Base {
  • src/includes/admin/converters/PHPWind.php

    diff --git src/includes/admin/converters/PHPWind.php src/includes/admin/converters/PHPWind.php
    index a584314..70f109d 100644
     
    1010/**
    1111 * Implementation of PHPWind Forum converter.
    1212 *
    13  * @since bbPress (r5142)
     13 * @since 2.5.0 bbPress (r5142)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/phpwind
    1516 */
    1617class PHPWind extends BBP_Converter_Base {
  • src/includes/admin/converters/Phorum.php

    diff --git src/includes/admin/converters/Phorum.php src/includes/admin/converters/Phorum.php
    index 36bd6f6..8a84b2b 100644
     
    1010/**
    1111 * Implementation of Phorum Forum converter.
    1212 *
    13  * @since bbPress (r5141)
     13 * @since 2.5.0 bbPress (r5141)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/phorum
    1516 */
    1617class Phorum extends BBP_Converter_Base {
  • src/includes/admin/converters/PunBB.php

    diff --git src/includes/admin/converters/PunBB.php src/includes/admin/converters/PunBB.php
    index aaaf6ab..be345b5 100644
     
    1010/**
    1111 * Implementation of PunBB v1.4.2 Forum converter.
    1212 *
    13  * @since bbPress (r5153)
     13 * @since 2.5.0 bbPress (r5153)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/punbb
    1516 */
    1617class PunBB extends BBP_Converter_Base {
  • src/includes/admin/converters/SMF.php

    diff --git src/includes/admin/converters/SMF.php src/includes/admin/converters/SMF.php
    index 832b15d..7305353 100644
     
    1010/**
    1111 * Implementation of SMF Forum converter.
    1212 *
    13  * @since bbPress (r5189)
     13 * @since 2.5.0 bbPress (r5189)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/smf
    1516 */
    1617class SMF extends BBP_Converter_Base {
  • src/includes/admin/converters/SimplePress5.php

    diff --git src/includes/admin/converters/SimplePress5.php src/includes/admin/converters/SimplePress5.php
    index eb02dba..6f638cd 100644
     
    1010/**
    1111 * Implementation of SimplePress v5 converter.
    1212 *
    13  * @since bbPress (r4638)
     13 * @since 2.3.0 bbPress (r4638)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/simplepress/
    1516 */
    1617class SimplePress5 extends BBP_Converter_Base {
  • src/includes/admin/converters/Vanilla.php

    diff --git src/includes/admin/converters/Vanilla.php src/includes/admin/converters/Vanilla.php
    index 1e2ca08..986b240 100644
     
    1010/**
    1111 * Implementation of Vanilla 2.0.18.1 Converter
    1212 *
    13  * @since bbPress (r4717)
     13 * @since 2.3.0 bbPress (r4717)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/vanilla
    1516 */
    1617class Vanilla extends BBP_Converter_Base {
  • src/includes/admin/converters/XMB.php

    diff --git src/includes/admin/converters/XMB.php src/includes/admin/converters/XMB.php
    index ae1e904..c7b95d3 100644
     
    1010/**
    1111 * Implementation of XMB Forum converter.
    1212 *
    13  * @since bbPress (r5143)
     13 * @since 2.5.0 bbPress (r5143)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/xmb
    1516 */
    1617class XMB extends BBP_Converter_Base {
  • src/includes/admin/converters/XenForo.php

    diff --git src/includes/admin/converters/XenForo.php src/includes/admin/converters/XenForo.php
    index 5adabec..11a5dc5 100644
     
    1010/**
    1111 *  Implementation of XenForo converter.
    1212 *
    13  * @since bbPress (r5145)
     13 * @since 2.5.0 bbPress (r5145)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/xenforo
    1516 */
    1617class XenForo extends BBP_Converter_Base {
  • src/includes/admin/converters/bbPress1.php

    diff --git src/includes/admin/converters/bbPress1.php src/includes/admin/converters/bbPress1.php
    index 309cdde..2f44854 100644
     
    1010/**
    1111 * bbPress 1.1 Converter
    1212 *
    13  * @since bbPress (r3816)
     13 * @since 2.1.0 bbPress (r3816)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/bbpress-1-x-buddypress-group-forums
    1516 */
    1617class bbPress1 extends BBP_Converter_Base {
    class bbPress1 extends BBP_Converter_Base { 
    740741        /**
    741742         * This callback strips `topic-` from topic subscriptions taxonomy
    742743         *
    743          * @since (r5572)
     744         * @since 2.6.0 bbPress (r5572)
    744745         *
    745746         * @param string $field Topic ID
    746747         * @return integer WordPress safe
  • src/includes/admin/converters/e107v1.php

    diff --git src/includes/admin/converters/e107v1.php src/includes/admin/converters/e107v1.php
    index 1310526..5c43281 100644
     
    1010/**
    1111 * Implementation of e107 v1.x Forum converter.
    1212 *
    13  * @since bbPress (r5352)
     13 * @since 2.6.0 bbPress (r5352)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/e107
    1516 */
    1617class e107v1 extends BBP_Converter_Base {
  • src/includes/admin/converters/phpBB.php

    diff --git src/includes/admin/converters/phpBB.php src/includes/admin/converters/phpBB.php
    index d6d2a75..b203a13 100644
     
    1010/**
    1111 * Implementation of phpBB v3 Converter.
    1212 *
    13  * @since bbPress (r4689)
     13 * @since 2.3.0 bbPress (r4689)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/phpbb
    1516 */
    1617class phpBB extends BBP_Converter_Base {
  • src/includes/admin/converters/vBulletin.php

    diff --git src/includes/admin/converters/vBulletin.php src/includes/admin/converters/vBulletin.php
    index 9cd0656..0fe1f0e 100644
     
    1010/**
    1111 * Implementation of vBulletin v4.x Converter.
    1212 *
    13  * @since bbPress (r4724)
     13 * @since 2.3.0 bbPress (r4724)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/vbulletin
    1516 */
    1617class vBulletin extends BBP_Converter_Base {
  • src/includes/admin/converters/vBulletin3.php

    diff --git src/includes/admin/converters/vBulletin3.php src/includes/admin/converters/vBulletin3.php
    index f42162c..5556e3e 100644
     
    1010/**
    1111 * Implementation of vBulletin v3.x Converter.
    1212 *
    13  * @since bbPress (r5151)
     13 * @since 2.5.0 bbPress (r5151)
     14 *
    1415 * @link Codex Docs https://codex.bbpress.org/import-forums/vbulletin
    1516 */
    1617class vBulletin3 extends BBP_Converter_Base {
  • src/includes/admin/forums.php

    diff --git src/includes/admin/forums.php src/includes/admin/forums.php
    index 246e55c..e0d4b76 100644
    if ( !class_exists( 'BBP_Forums_Admin' ) ) : 
    1616 *
    1717 * @package bbPress
    1818 * @subpackage Administration
    19  * @since bbPress (r2464)
     19 * @since 2.0.0 bbPress (r2464)
    2020 */
    2121class BBP_Forums_Admin {
    2222
    class BBP_Forums_Admin { 
    3232        /**
    3333         * The main bbPress forums admin loader
    3434         *
    35          * @since bbPress (r2515)
     35         * @since 2.0.0 bbPress (r2515)
    3636         *
    3737         * @uses BBP_Forums_Admin::setup_globals() Setup the globals needed
    3838         * @uses BBP_Forums_Admin::setup_actions() Setup the hooks and actions
    class BBP_Forums_Admin { 
    4646        /**
    4747         * Setup the admin hooks, actions and filters
    4848         *
    49          * @since bbPress (r2646)
     49         * @since 2.0.0 bbPress (r2646)
     50         *
    5051         * @access private
    5152         *
    5253         * @uses add_action() To add various actions
    class BBP_Forums_Admin { 
    9091        /**
    9192         * Should we bail out of this method?
    9293         *
    93          * @since bbPress (r4067)
     94         * @since 2.1.0 bbPress (r4067)
     95         *
    9496         * @return boolean
    9597         */
    9698        private function bail() {
    class BBP_Forums_Admin { 
    104106        /**
    105107         * Admin globals
    106108         *
    107          * @since bbPress (r2646)
     109         * @since 2.0.0 bbPress (r2646)
     110         *
    108111         * @access private
    109112         */
    110113        private function setup_globals() {
    class BBP_Forums_Admin { 
    116119        /**
    117120         * Contextual help for bbPress forum edit page
    118121         *
    119          * @since bbPress (r3119)
     122         * @since 2.0.0 bbPress (r3119)
     123         *
    120124         * @uses get_current_screen()
    121125         */
    122126        public function edit_help() {
    class BBP_Forums_Admin { 
    179183        /**
    180184         * Contextual help for bbPress forum edit page
    181185         *
    182          * @since bbPress (r3119)
     186         * @since 2.0.0 bbPress (r3119)
     187         *
    183188         * @uses get_current_screen()
    184189         */
    185190        public function new_help() {
    class BBP_Forums_Admin { 
    240245        /**
    241246         * Add the forum attributes metabox
    242247         *
    243          * @since bbPress (r2746)
     248         * @since 2.0.0 bbPress (r2746)
    244249         *
    245250         * @uses bbp_get_forum_post_type() To get the forum post type
    246251         * @uses add_meta_box() To add the metabox
    class BBP_Forums_Admin { 
    267272        /**
    268273         * Return user nicename suggestions instead of tag suggestions
    269274         *
    270          * @since bbPress (r5834)
     275         * @since 2.6.0 bbPress (r5834)
    271276         *
    272277         * @uses bbp_get_forum_mod_tax_id() To get the forum moderator taxonomy id
    273278         * @uses sanitize_key() To sanitize the taxonomy id
    class BBP_Forums_Admin { 
    340345        /**
    341346         * Pass the forum attributes for processing
    342347         *
    343          * @since bbPress (r2746)
     348         * @since 2.0.0 bbPress (r2746)
    344349         *
    345350         * @param int $forum_id Forum id
    346351         * @uses current_user_can() To check if the current user is capable of
    class BBP_Forums_Admin { 
    407412        /**
    408413         * Add some general styling to the admin area
    409414         *
    410          * @since bbPress (r2464)
     415         * @since 2.0.0 bbPress (r2464)
    411416         *
    412417         * @uses bbp_get_forum_post_type() To get the forum post type
    413418         * @uses bbp_get_topic_post_type() To get the topic post type
    class BBP_Forums_Admin { 
    490495         *
    491496         * Handles the admin-side opening/closing of forums
    492497         *
    493          * @since bbPress (r5254)
     498         * @since 2.6.0 bbPress (r5254)
    494499         *
    495500         * @uses bbp_get_forum() To get the forum
    496501         * @uses current_user_can() To check if the user is capable of editing
    class BBP_Forums_Admin { 
    566571         * Display the success/error notices from
    567572         * {@link BBP_Admin::toggle_forum()}
    568573         *
    569          * @since bbPress (r5254)
     574         * @since 2.6.0 bbPress (r5254)
    570575         *
    571576         * @uses bbp_get_forum() To get the forum
    572577         * @uses bbp_get_forum_title() To get the forum title of the forum
    class BBP_Forums_Admin { 
    629634        /**
    630635         * Manage the column headers for the forums page
    631636         *
    632          * @since bbPress (r2485)
     637         * @since 2.0.0 bbPress (r2485)
    633638         *
    634639         * @param array $columns The columns
    635640         * @uses apply_filters() Calls 'bbp_admin_forums_column_headers' with
    class BBP_Forums_Admin { 
    665670        /**
    666671         * Print extra columns for the forums page
    667672         *
    668          * @since bbPress (r2485)
     673         * @since 2.0.0 bbPress (r2485)
    669674         *
    670675         * @param string $column Column
    671676         * @param int $forum_id Forum id
    class BBP_Forums_Admin { 
    732737         * Remove the quick-edit action link and display the description under
    733738         * the forum title and add the open/close links
    734739         *
    735          * @since bbPress (r2577)
     740         * @since 2.0.0 bbPress (r2577)
    736741         *
    737742         * @param array $actions Actions
    738743         * @param array $forum Forum object
    class BBP_Forums_Admin { 
    776781        /**
    777782         * Custom user feedback messages for forum post type
    778783         *
    779          * @since bbPress (r3080)
     784         * @since 2.0.0 bbPress (r3080)
    780785         *
    781786         * @global int $post_ID
    782787         * @uses bbp_get_forum_permalink()
    endif; // class_exists check 
    854859 * This is currently here to make hooking and unhooking of the admin UI easy.
    855860 * It could use dependency injection in the future, but for now this is easier.
    856861 *
    857  * @since bbPress (r2596)
     862 * @since 2.0.0 bbPress (r2596)
    858863 *
    859864 * @uses BBP_Forums_Admin
    860865 */
  • src/includes/admin/functions.php

    diff --git src/includes/admin/functions.php src/includes/admin/functions.php
    index 6e6b89e..299027e 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Add a separator to the WordPress admin menus
    1717 *
    18  * @since bbPress (r2957)
     18 * @since 2.0.0 bbPress (r2957)
    1919 */
    2020function bbp_admin_separator() {
    2121
    function bbp_admin_separator() { 
    4747/**
    4848 * Tell WordPress we have a custom menu order
    4949 *
    50  * @since bbPress (r2957)
     50 * @since 2.0.0 bbPress (r2957)
    5151 *
    5252 * @param bool $menu_order Menu order
    5353 * @return mixed True if separator, false if not
    function bbp_admin_custom_menu_order( $menu_order = false ) { 
    6363/**
    6464 * Move our custom separator above our custom post types
    6565 *
    66  * @since bbPress (r2957)
     66 * @since 2.0.0 bbPress (r2957)
    6767 *
    6868 * @param array $menu_order Menu Order
    6969 * @uses bbp_get_forum_post_type() To get the forum post type
    function bbp_admin_menu_order( $menu_order ) { 
    117117/**
    118118 * Filter sample permalinks so that certain languages display properly.
    119119 *
    120  * @since bbPress (r3336)
     120 * @since 2.0.0 bbPress (r3336)
    121121 *
    122122 * @param string $post_link Custom post type permalink
    123123 * @param object $_post Post data object
    function bbp_filter_sample_permalink( $post_link, $_post, $leavename = false, $s 
    143143/**
    144144 * Sanitize permalink slugs when saving the settings page.
    145145 *
    146  * @since bbPress (r5364)
     146 * @since 2.6.0 bbPress (r5364)
    147147 *
    148148 * @param string $slug
    149149 * @return string
    function bbp_sanitize_slug( $slug = '' ) { 
    173173/**
    174174 * Uninstall all bbPress options and capabilities from a specific site.
    175175 *
    176  * @since bbPress (r3765)
     176 * @since 2.1.0 bbPress (r3765)
     177 *
    177178 * @param type $site_id
    178179 */
    179180function bbp_do_uninstall( $site_id = 0 ) {
    function bbp_do_uninstall( $site_id = 0 ) { 
    192193/**
    193194 * Redirect user to bbPress's What's New page on activation
    194195 *
    195  * @since bbPress (r4389)
     196 * @since 2.2.0 bbPress (r4389)
    196197 *
    197198 * @internal Used internally to redirect bbPress to the about page on activation
    198199 *
    function bbp_do_activation_redirect() { 
    236237 * The conditional prevents the override when the user is viewing settings or
    237238 * any third-party plugins.
    238239 *
    239  * @since bbPress (r3888)
     240 * @since 2.1.0 bbPress (r3888)
     241 *
    240242 * @global string $plugin_page
    241243 * @global array $submenu_file
    242244 */
    function bbp_tools_modify_menu_highlight() { 
    252254/**
    253255 * Output the tabs in the admin area
    254256 *
    255  * @since bbPress (r3872)
     257 * @since 2.1.0 bbPress (r3872)
     258 *
    256259 * @param string $active_tab Name of the tab that is active
    257260 */
    258261function bbp_tools_admin_tabs( $active_tab = '' ) {
    function bbp_tools_admin_tabs( $active_tab = '' ) { 
    262265        /**
    263266         * Output the tabs in the admin area
    264267         *
    265          * @since bbPress (r3872)
     268         * @since 2.1.0 bbPress (r3872)
     269         *
    266270         * @param string $active_tab Name of the tab that is active
    267271         */
    268272        function bbp_get_tools_admin_tabs( $active_tab = '' ) {
  • src/includes/admin/list-tables/topic-replies.php

    diff --git src/includes/admin/list-tables/topic-replies.php src/includes/admin/list-tables/topic-replies.php
    index 8ba566d..33a13d6 100644
    if ( class_exists( 'WP_List_Table' ) ) : 
    2323 * This list table is responsible for showing the replies to a topic in a
    2424 * metabox, similar to comments in posts and pages.
    2525 *
    26  * @since bbPress (r5886)
     26 * @since 2.6.0 bbPress (r5886)
    2727 */
    2828class BBP_Topic_Replies_List_Table extends WP_List_Table {
    2929
    3030        /**
    3131         * The main constructor method
    3232         *
    33          * @since bbPress (r5886)
     33         * @since 2.6.0 bbPress (r5886)
    3434         */
    3535        public function __construct( $args = array() ) {
    3636                $args = array(
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    4444        /**
    4545         * Setup the list-table's columns
    4646         *
    47          * @since bbPress (r5886)
     47         * @since 2.6.0 bbPress (r5886)
    4848         *
    4949         * @see WP_List_Table::::single_row_columns()
    5050         *
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    6262        /**
    6363         * Allow `bbp_reply_created` to be sortable
    6464         *
    65          * @since bbPress (r5886)
     65         * @since 2.6.0 bbPress (r5886)
    6666         *
    6767         * @return array An associative array containing the `bbp_reply_created` column
    6868         */
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    7575        /**
    7676         * Setup the bulk actions
    7777         *
    78          * @since bbPress (r5886)
     78         * @since 2.6.0 bbPress (r5886)
    7979         *
    8080         * @return array An associative array containing all the bulk actions
    8181         */
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    9393        /**
    9494         * Output the `cb` column for bulk actions (if we implement them)
    9595         *
    96          * @since bbPress (r5886)
     96         * @since 2.6.0 bbPress (r5886)
    9797         */
    9898        public function column_cb( $item = '' ) {
    9999                return sprintf(
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    106106        /**
    107107         * Output the contents of the `bbp_topic_reply_author` column
    108108         *
    109          * @since bbPress (r5886)
     109         * @since 2.6.0 bbPress (r5886)
    110110         */
    111111        public function column_bbp_topic_reply_author( $item = '' ) {
    112112                bbp_reply_author_avatar( $item->ID, 50 );
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    120120        /**
    121121         * Output the contents of the `bbp_reply_created` column
    122122         *
    123          * @since bbPress (r5886)
     123         * @since 2.6.0 bbPress (r5886)
    124124         */
    125125        public function column_bbp_reply_created( $item = '' ) {
    126126                return sprintf( '%1$s <br /> %2$s',
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    132132        /**
    133133         * Output the contents of the `bbp_reply_content` column
    134134         *
    135          * @since bbPress (r5886)
     135         * @since 2.6.0 bbPress (r5886)
    136136         */
    137137   public function column_bbp_reply_content( $item = '' ) {
    138138
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    158158        /**
    159159         * Handle bulk action requests
    160160         *
    161          * @since bbPress (r5886)
     161         * @since 2.6.0 bbPress (r5886)
    162162         */
    163163        public function process_bulk_action() {
    164164                switch ( $this->current_action() ) {
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    174174        /**
    175175         * Prepare the list-table items for display
    176176         *
    177          * @since bbPress (r5886)
     177         * @since 2.6.0 bbPress (r5886)
    178178         *
    179179         * @uses $this->_column_headers
    180180         * @uses $this->items
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    233233        /**
    234234         * Message to be displayed when there are no items
    235235         *
    236          * @since bbPress (r5930)
     236         * @since 2.6.0 bbPress (r5930)
    237237         */
    238238        public function no_items() {
    239239                esc_html_e( 'No replies to this topic.', 'bbpress' );
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    245245         * This custom method is necessary because the one in `WP_List_Table` comes
    246246         * with a nonce and check that we do not need.
    247247         *
    248          * @since bbPress (r5930)
     248         * @since 2.6.0 bbPress (r5930)
    249249         */
    250250        public function display() {
    251251
    class BBP_Topic_Replies_List_Table extends WP_List_Table { 
    282282         * This custom method is necessary because the one in `WP_List_Table` comes
    283283         * with a nonce and check that we do not need.
    284284         *
    285          * @since bbPress (r5930)
     285         * @since 2.6.0 bbPress (r5930)
    286286         *
    287287         * @param string $which
    288288         */
  • src/includes/admin/metaboxes.php

    diff --git src/includes/admin/metaboxes.php src/includes/admin/metaboxes.php
    index 6fc4ff2..8303ef1 100644
     
    1212/**
    1313 * Filter the Dashboard "at a glance" items and append bbPress elements to it.
    1414 *
    15  * @since bbPress (r5268)
     15 * @since 2.6.0 bbPress (r5268)
    1616 *
    1717 * @param array $elements
    1818 * @return array
    function bbp_filter_dashboard_glance_items( $elements = array() ) { 
    5959 *
    6060 * Adds a dashboard widget with forum statistics
    6161 *
    62  * @since bbPress (r2770)
    63  * @deprecated bbPress (r5268)
     62 * @since 2.0.0 bbPress (r2770)
     63 *
     64 * @deprecated 2.6.0 bbPress (r5268)
    6465 *
    6566 * @uses bbp_get_version() To get the current bbPress version
    6667 * @uses bbp_get_statistics() To get the forum statistics
    function bbp_dashboard_widget_right_now() { 
    284285 *
    285286 * The metabox that holds all of the additional forum information
    286287 *
    287  * @since bbPress (r2744)
     288 * @since 2.0.0 bbPress (r2744)
    288289 *
    289290 * @uses bbp_is_forum_closed() To check if a forum is closed or not
    290291 * @uses bbp_is_forum_category() To check if a forum is a category or not
    function bbp_forum_metabox() { 
    382383 *
    383384 * The metabox that holds all of the additional topic information
    384385 *
    385  * @since bbPress (r2464)
     386 * @since 2.0.0 bbPress (r2464)
    386387 *
    387388 * @uses bbp_get_topic_forum_id() To get the topic forum id
    388389 * @uses do_action() Calls 'bbp_topic_metabox'
    function bbp_topic_metabox() { 
    459460 *
    460461 * The metabox that holds all of the additional reply information
    461462 *
    462  * @since bbPress (r2464)
     463 * @since 2.0.0 bbPress (r2464)
    463464 *
    464465 * @uses bbp_get_topic_post_type() To get the topic post type
    465466 * @uses do_action() Calls 'bbp_reply_metabox'
    function bbp_reply_metabox() { 
    550551/**
    551552 * Output the topic replies metabox
    552553 *
    553  * @since bbPress (r5886)
     554 * @since 2.6.0 bbPress (r5886)
    554555 *
    555556 * @param type $topic
    556557 *
    function bbp_topic_replies_metabox( $topic = false ) { 
    591592/**
    592593 * Anonymous user information metabox
    593594 *
    594  * @since bbPress (r2828)
     595 * @since 2.0.0 bbPress (r2828)
    595596 *
    596597 * @uses bbp_is_reply_anonymous() To check if reply is anonymous
    597598 * @uses bbp_is_topic_anonymous() To check if topic is anonymous
  • src/includes/admin/replies.php

    diff --git src/includes/admin/replies.php src/includes/admin/replies.php
    index 2ad892a..27284af 100644
    if ( !class_exists( 'BBP_Replies_Admin' ) ) : 
    1616 *
    1717 * @package bbPress
    1818 * @subpackage Administration
    19  * @since bbPress (r2464)
     19 * @since 2.0.0 bbPress (r2464)
    2020 */
    2121class BBP_Replies_Admin {
    2222
    class BBP_Replies_Admin { 
    3232        /**
    3333         * The main bbPress admin loader
    3434         *
    35          * @since bbPress (r2515)
     35         * @since 2.0.0 bbPress (r2515)
    3636         *
    3737         * @uses BBP_Replies_Admin::setup_globals() Setup the globals needed
    3838         * @uses BBP_Replies_Admin::setup_actions() Setup the hooks and actions
    class BBP_Replies_Admin { 
    4646        /**
    4747         * Setup the admin hooks, actions and filters
    4848         *
    49          * @since bbPress (r2646)
     49         * @since 2.0.0 bbPress (r2646)
     50         *
    5051         * @access private
    5152         *
    5253         * @uses add_action() To add various actions
    class BBP_Replies_Admin { 
    9495        /**
    9596         * Should we bail out of this method?
    9697         *
    97          * @since bbPress (r4067)
     98         * @since 2.1.0 bbPress (r4067)
     99         *
    98100         * @return boolean
    99101         */
    100102        private function bail() {
    class BBP_Replies_Admin { 
    108110        /**
    109111         * Admin globals
    110112         *
    111          * @since bbPress (r2646)
     113         * @since 2.0.0 bbPress (r2646)
     114         *
    112115         * @access private
    113116         */
    114117        private function setup_globals() {
    class BBP_Replies_Admin { 
    120123        /**
    121124         * Contextual help for bbPress reply edit page
    122125         *
    123          * @since bbPress (r3119)
     126         * @since 2.0.0 bbPress (r3119)
     127         *
    124128         * @uses get_current_screen()
    125129         */
    126130        public function edit_help() {
    class BBP_Replies_Admin { 
    187191        /**
    188192         * Contextual help for bbPress reply edit page
    189193         *
    190          * @since bbPress (r3119)
     194         * @since 2.0.0 bbPress (r3119)
     195         *
    191196         * @uses get_current_screen()
    192197         */
    193198        public function new_help() {
    class BBP_Replies_Admin { 
    246251        /**
    247252         * Add the reply attributes metabox
    248253         *
    249          * @since bbPress (r2746)
     254         * @since 2.0.0 bbPress (r2746)
    250255         *
    251256         * @uses bbp_get_reply_post_type() To get the reply post type
    252257         * @uses add_meta_box() To add the metabox
    class BBP_Replies_Admin { 
    273278        /**
    274279         * Pass the reply attributes for processing
    275280         *
    276          * @since bbPress (r2746)
     281         * @since 2.0.0 bbPress (r2746)
    277282         *
    278283         * @param int $reply_id Reply id
    279284         * @uses current_user_can() To check if the current user is capable of
    class BBP_Replies_Admin { 
    338343         *
    339344         * Allows editing of information about an author
    340345         *
    341          * @since bbPress (r2828)
     346         * @since 2.0.0 bbPress (r2828)
    342347         *
    343348         * @uses bbp_get_topic() To get the topic
    344349         * @uses bbp_get_reply() To get the reply
    class BBP_Replies_Admin { 
    375380        /**
    376381         * Add some general styling to the admin area
    377382         *
    378          * @since bbPress (r2464)
     383         * @since 2.0.0 bbPress (r2464)
    379384         *
    380385         * @uses bbp_get_forum_post_type() To get the forum post type
    381386         * @uses bbp_get_topic_post_type() To get the topic post type
    class BBP_Replies_Admin { 
    450455         *
    451456         * Handles the admin-side spamming/unspamming of replies
    452457         *
    453          * @since bbPress (r2740)
     458         * @since 2.0.0 bbPress (r2740)
    454459         *
    455460         * @uses bbp_get_reply() To get the reply
    456461         * @uses current_user_can() To check if the user is capable of editing
    class BBP_Replies_Admin { 
    531536         * Display the success/error notices from
    532537         * {@link BBP_Admin::toggle_reply()}
    533538         *
    534          * @since bbPress (r2740)
     539         * @since 2.0.0 bbPress (r2740)
    535540         *
    536541         * @uses bbp_get_reply() To get the reply
    537542         * @uses bbp_get_reply_title() To get the reply title of the reply
    class BBP_Replies_Admin { 
    606611        /**
    607612         * Manage the column headers for the replies page
    608613         *
    609          * @since bbPress (r2577)
     614         * @since 2.0.0 bbPress (r2577)
    610615         *
    611616         * @param array $columns The columns
    612617         * @uses apply_filters() Calls 'bbp_admin_replies_column_headers' with
    class BBP_Replies_Admin { 
    634639        /**
    635640         * Print extra columns for the replies page
    636641         *
    637          * @since bbPress (r2577)
     642         * @since 2.0.0 bbPress (r2577)
    638643         *
    639644         * @param string $column Column
    640645         * @param int $reply_id reply id
    class BBP_Replies_Admin { 
    754759         * Remove the quick-edit action link under the reply title and add the
    755760         * content and spam link
    756761         *
    757          * @since bbPress (r2577)
     762         * @since 2.0.0 bbPress (r2577)
    758763         *
    759764         * @param array $actions Actions
    760765         * @param array $reply Reply object
    class BBP_Replies_Admin { 
    832837        /**
    833838         * Add forum dropdown to topic and reply list table filters
    834839         *
    835          * @since bbPress (r2991)
     840         * @since 2.0.0 bbPress (r2991)
    836841         *
    837842         * @uses bbp_get_reply_post_type() To get the reply post type
    838843         * @uses bbp_get_topic_post_type() To get the topic post type
    class BBP_Replies_Admin { 
    865870        /**
    866871         * Adjust the request query and include the forum id
    867872         *
    868          * @since bbPress (r2991)
     873         * @since 2.0.0 bbPress (r2991)
    869874         *
    870875         * @param array $query_vars Query variables from {@link WP_Query}
    871876         * @uses is_admin() To check if it's the admin section
    class BBP_Replies_Admin { 
    893898        /**
    894899         * Custom user feedback messages for reply post type
    895900         *
    896          * @since bbPress (r3080)
     901         * @since 2.0.0 bbPress (r3080)
    897902         *
    898903         * @global int $post_ID
    899904         * @uses bbp_get_topic_permalink()
    endif; // class_exists check 
    971976 * This is currently here to make hooking and unhooking of the admin UI easy.
    972977 * It could use dependency injection in the future, but for now this is easier.
    973978 *
    974  * @since bbPress (r2596)
     979 * @since 2.0.0 bbPress (r2596)
    975980 *
    976981 * @uses BBP_Replies_Admin
    977982 */
  • src/includes/admin/settings.php

    diff --git src/includes/admin/settings.php src/includes/admin/settings.php
    index 6d47bff..62f0b5a 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Get the Forums settings sections.
    1717 *
    18  * @since bbPress (r4001)
     18 * @since 2.1.0 bbPress (r4001)
     19 *
    1920 * @return array
    2021 */
    2122function bbp_admin_get_settings_sections() {
    function bbp_admin_get_settings_sections() { 
    7677/**
    7778 * Get all of the settings fields.
    7879 *
    79  * @since bbPress (r4001)
     80 * @since 2.1.0 bbPress (r4001)
     81 *
    8082 * @return type
    8183 */
    8284function bbp_admin_get_settings_fields() {
    function bbp_admin_get_settings_fields() { 
    429431/**
    430432 * Get settings fields by section.
    431433 *
    432  * @since bbPress (r4001)
     434 * @since 2.1.0 bbPress (r4001)
     435 *
    433436 * @param string $section_id
    434437 * @return mixed False if section is invalid, array of fields otherwise.
    435438 */
    function bbp_admin_get_settings_fields_for_section( $section_id = '' ) { 
    453456/**
    454457 * User settings section description for the settings page
    455458 *
    456  * @since bbPress (r2786)
     459 * @since 2.0.0 bbPress (r2786)
    457460 */
    458461function bbp_admin_setting_callback_user_section() {
    459462?>
    function bbp_admin_setting_callback_user_section() { 
    467470/**
    468471 * Edit lock setting field
    469472 *
    470  * @since bbPress (r2737)
     473 * @since 2.0.0 bbPress (r2737)
    471474 *
    472475 * @uses bbp_form_option() To output the option value
    473476 */
    function bbp_admin_setting_callback_editlock() { 
    483486/**
    484487 * Throttle setting field
    485488 *
    486  * @since bbPress (r2737)
     489 * @since 2.0.0 bbPress (r2737)
    487490 *
    488491 * @uses bbp_form_option() To output the option value
    489492 */
    function bbp_admin_setting_callback_throttle() { 
    499502/**
    500503 * Allow anonymous posting setting field
    501504 *
    502  * @since bbPress (r2737)
     505 * @since 2.0.0 bbPress (r2737)
    503506 *
    504507 * @uses checked() To display the checked attribute
    505508 */
    function bbp_admin_setting_callback_anonymous() { 
    515518/**
    516519 * Allow global access setting field
    517520 *
    518  * @since bbPress (r3378)
     521 * @since 2.0.0 bbPress (r3378)
    519522 *
    520523 * @uses checked() To display the checked attribute
    521524 */
    function bbp_admin_setting_callback_global_access() { 
    552555/**
    553556 * Features settings section description for the settings page
    554557 *
    555  * @since bbPress (r2786)
     558 * @since 2.0.0 bbPress (r2786)
    556559 */
    557560function bbp_admin_setting_callback_features_section() {
    558561?>
    function bbp_admin_setting_callback_features_section() { 
    565568/**
    566569 * Allow favorites setting field
    567570 *
    568  * @since bbPress (r2786)
     571 * @since 2.0.0 bbPress (r2786)
    569572 *
    570573 * @uses checked() To display the checked attribute
    571574 */
    function bbp_admin_setting_callback_favorites() { 
    581584/**
    582585 * Allow subscriptions setting field
    583586 *
    584  * @since bbPress (r2737)
     587 * @since 2.0.0 bbPress (r2737)
    585588 *
    586589 * @uses checked() To display the checked attribute
    587590 */
    function bbp_admin_setting_callback_subscriptions() { 
    597600/**
    598601 * Allow topic tags setting field
    599602 *
    600  * @since bbPress (r4944)
     603 * @since 2.4.0 bbPress (r4944)
    601604 *
    602605 * @uses checked() To display the checked attribute
    603606 */
    function bbp_admin_setting_callback_topic_tags() { 
    613616/**
    614617 * Allow forum-mods setting field
    615618 *
    616  * @since bbPress (r5834)
     619 * @since 2.6.0 bbPress (r5834)
    617620 *
    618621 * @uses checked() To display the checked attribute
    619622 */
    function bbp_admin_setting_callback_forum_mods() { 
    629632/**
    630633 * Allow forum wide search
    631634 *
    632  * @since bbPress (r4970)
     635 * @since 2.4.0 bbPress (r4970)
    633636 *
    634637 * @uses checked() To display the checked attribute
    635638 */
    function bbp_admin_setting_callback_search() { 
    647650 *
    648651 * Replies will be threaded if depth is 2 or greater
    649652 *
    650  * @since bbPress (r4944)
     653 * @since 2.4.0 bbPress (r4944)
    651654 *
    652655 * @uses apply_filters() Calls 'bbp_thread_replies_depth_max' to set a
    653656 *                        maximum displayed level
    function bbp_admin_setting_callback_thread_replies_depth() { 
    685688/**
    686689 * Allow topic and reply revisions
    687690 *
    688  * @since bbPress (r3412)
     691 * @since 2.0.0 bbPress (r3412)
    689692 *
    690693 * @uses checked() To display the checked attribute
    691694 */
    function bbp_admin_setting_callback_revisions() { 
    701704/**
    702705 * Use the WordPress editor setting field
    703706 *
    704  * @since bbPress (r3586)
     707 * @since 2.1.0 bbPress (r3586)
    705708 *
    706709 * @uses checked() To display the checked attribute
    707710 */
    function bbp_admin_setting_callback_use_wp_editor() { 
    717720/**
    718721 * Main subtheme section
    719722 *
    720  * @since bbPress (r2786)
     723 * @since 2.0.0 bbPress (r2786)
    721724 */
    722725function bbp_admin_setting_callback_subtheme_section() {
    723726?>
    function bbp_admin_setting_callback_subtheme_section() { 
    730733/**
    731734 * Use the WordPress editor setting field
    732735 *
    733  * @since bbPress (r3586)
     736 * @since 2.1.0 bbPress (r3586)
    734737 *
    735738 * @uses checked() To display the checked attribute
    736739 */
    function bbp_admin_setting_callback_subtheme_id() { 
    764767/**
    765768 * Allow oEmbed in replies
    766769 *
    767  * @since bbPress (r3752)
     770 * @since 2.1.0 bbPress (r3752)
    768771 *
    769772 * @uses checked() To display the checked attribute
    770773 */
    function bbp_admin_setting_callback_use_autoembed() { 
    782785/**
    783786 * Per page settings section description for the settings page
    784787 *
    785  * @since bbPress (r2786)
     788 * @since 2.0.0 bbPress (r2786)
    786789 */
    787790function bbp_admin_setting_callback_per_page_section() {
    788791?>
    function bbp_admin_setting_callback_per_page_section() { 
    795798/**
    796799 * Topics per page setting field
    797800 *
    798  * @since bbPress (r2786)
     801 * @since 2.0.0 bbPress (r2786)
    799802 *
    800803 * @uses bbp_form_option() To output the option value
    801804 */
    function bbp_admin_setting_callback_topics_per_page() { 
    811814/**
    812815 * Replies per page setting field
    813816 *
    814  * @since bbPress (r2786)
     817 * @since 2.0.0 bbPress (r2786)
    815818 *
    816819 * @uses bbp_form_option() To output the option value
    817820 */
    function bbp_admin_setting_callback_replies_per_page() { 
    829832/**
    830833 * Per page settings section description for the settings page
    831834 *
    832  * @since bbPress (r2786)
     835 * @since 2.0.0 bbPress (r2786)
    833836 */
    834837function bbp_admin_setting_callback_per_rss_page_section() {
    835838?>
    function bbp_admin_setting_callback_per_rss_page_section() { 
    842845/**
    843846 * Topics per RSS page setting field
    844847 *
    845  * @since bbPress (r2786)
     848 * @since 2.0.0 bbPress (r2786)
    846849 *
    847850 * @uses bbp_form_option() To output the option value
    848851 */
    function bbp_admin_setting_callback_topics_per_rss_page() { 
    858861/**
    859862 * Replies per RSS page setting field
    860863 *
    861  * @since bbPress (r2786)
     864 * @since 2.0.0 bbPress (r2786)
    862865 *
    863866 * @uses bbp_form_option() To output the option value
    864867 */
    function bbp_admin_setting_callback_replies_per_rss_page() { 
    876879/**
    877880 * Slugs settings section description for the settings page
    878881 *
    879  * @since bbPress (r2786)
     882 * @since 2.0.0 bbPress (r2786)
    880883 */
    881884function bbp_admin_setting_callback_root_slug_section() {
    882885
    function bbp_admin_setting_callback_root_slug_section() { 
    893896/**
    894897 * Root slug setting field
    895898 *
    896  * @since bbPress (r2786)
     899 * @since 2.0.0 bbPress (r2786)
    897900 *
    898901 * @uses bbp_form_option() To output the option value
    899902 */
    function bbp_admin_setting_callback_root_slug() { 
    910913/**
    911914 * Include root slug setting field
    912915 *
    913  * @since bbPress (r2786)
     916 * @since 2.0.0 bbPress (r2786)
    914917 *
    915918 * @uses checked() To display the checked attribute
    916919 */
    function bbp_admin_setting_callback_include_root() { 
    926929/**
    927930 * Include root slug setting field
    928931 *
    929  * @since bbPress (r2786)
     932 * @since 2.0.0 bbPress (r2786)
    930933 *
    931934 * @uses checked() To display the checked attribute
    932935 */
    function bbp_admin_setting_callback_show_on_root() { 
    963966/**
    964967 * Slugs settings section description for the settings page
    965968 *
    966  * @since bbPress (r2786)
     969 * @since 2.0.0 bbPress (r2786)
    967970 */
    968971function bbp_admin_setting_callback_user_slug_section() {
    969972?>
    function bbp_admin_setting_callback_user_slug_section() { 
    976979/**
    977980 * User slug setting field
    978981 *
    979  * @since bbPress (r2786)
     982 * @since 2.0.0 bbPress (r2786)
    980983 *
    981984 * @uses bbp_form_option() To output the option value
    982985 */
    function bbp_admin_setting_callback_user_slug() { 
    993996/**
    994997 * Topic archive slug setting field
    995998 *
    996  * @since bbPress (r2786)
     999 * @since 2.0.0 bbPress (r2786)
    9971000 *
    9981001 * @uses bbp_form_option() To output the option value
    9991002 */
    function bbp_admin_setting_callback_topic_archive_slug() { 
    10101013/**
    10111014 * Reply archive slug setting field
    10121015 *
    1013  * @since bbPress (r4932)
     1016 * @since 2.4.0 bbPress (r4932)
    10141017 *
    10151018 * @uses bbp_form_option() To output the option value
    10161019 */
    function bbp_admin_setting_callback_reply_archive_slug() { 
    10271030/**
    10281031 * Favorites slug setting field
    10291032 *
    1030  * @since bbPress (r4932)
     1033 * @since 2.4.0 bbPress (r4932)
    10311034 *
    10321035 * @uses bbp_form_option() To output the option value
    10331036 */
    function bbp_admin_setting_callback_user_favs_slug() { 
    10441047/**
    10451048 * Favorites slug setting field
    10461049 *
    1047  * @since bbPress (r4932)
     1050 * @since 2.4.0 bbPress (r4932)
    10481051 *
    10491052 * @uses bbp_form_option() To output the option value
    10501053 */
    function bbp_admin_setting_callback_user_subs_slug() { 
    10631066/**
    10641067 * Slugs settings section description for the settings page
    10651068 *
    1066  * @since bbPress (r2786)
     1069 * @since 2.0.0 bbPress (r2786)
    10671070 */
    10681071function bbp_admin_setting_callback_single_slug_section() {
    10691072?>
    function bbp_admin_setting_callback_single_slug_section() { 
    10761079/**
    10771080 * Forum slug setting field
    10781081 *
    1079  * @since bbPress (r2786)
     1082 * @since 2.0.0 bbPress (r2786)
    10801083 *
    10811084 * @uses bbp_form_option() To output the option value
    10821085 */
    function bbp_admin_setting_callback_forum_slug() { 
    10931096/**
    10941097 * Topic slug setting field
    10951098 *
    1096  * @since bbPress (r2786)
     1099 * @since 2.0.0 bbPress (r2786)
    10971100 *
    10981101 * @uses bbp_form_option() To output the option value
    10991102 */
    function bbp_admin_setting_callback_topic_slug() { 
    11101113/**
    11111114 * Reply slug setting field
    11121115 *
    1113  * @since bbPress (r2786)
     1116 * @since 2.0.0 bbPress (r2786)
    11141117 *
    11151118 * @uses bbp_form_option() To output the option value
    11161119 */
    function bbp_admin_setting_callback_reply_slug() { 
    11271130/**
    11281131 * Topic tag slug setting field
    11291132 *
    1130  * @since bbPress (r2786)
     1133 * @since 2.0.0 bbPress (r2786)
    11311134 *
    11321135 * @uses bbp_form_option() To output the option value
    11331136 */
    function bbp_admin_setting_callback_topic_tag_slug() { 
    11451148/**
    11461149 * View slug setting field
    11471150 *
    1148  * @since bbPress (r2789)
     1151 * @since 2.0.0 bbPress (r2789)
    11491152 *
    11501153 * @uses bbp_form_option() To output the option value
    11511154 */
    function bbp_admin_setting_callback_view_slug() { 
    11621165/**
    11631166 * Search slug setting field
    11641167 *
    1165  * @since bbPress (r4579)
     1168 * @since 2.3.0 bbPress (r4579)
    11661169 *
    11671170 * @uses bbp_form_option() To output the option value
    11681171 */
    function bbp_admin_setting_callback_search_slug() { 
    11811184/**
    11821185 * Extension settings section description for the settings page
    11831186 *
    1184  * @since bbPress (r3575)
     1187 * @since 2.1.0 bbPress (r3575)
    11851188 */
    11861189function bbp_admin_setting_callback_buddypress_section() {
    11871190?>
    function bbp_admin_setting_callback_buddypress_section() { 
    11941197/**
    11951198 * Allow BuddyPress group forums setting field
    11961199 *
    1197  * @since bbPress (r3575)
     1200 * @since 2.1.0 bbPress (r3575)
    11981201 *
    11991202 * @uses checked() To display the checked attribute
    12001203 */
    function bbp_admin_setting_callback_group_forums() { 
    12101213/**
    12111214 * Replies per page setting field
    12121215 *
    1213  * @since bbPress (r3575)
     1216 * @since 2.1.0 bbPress (r3575)
    12141217 *
    12151218 * @uses bbp_form_option() To output the option value
    12161219 */
    function bbp_admin_setting_callback_group_forums_root_id() { 
    12381241/**
    12391242 * Extension settings section description for the settings page
    12401243 *
    1241  * @since bbPress (r3575)
     1244 * @since 2.1.0 bbPress (r3575)
    12421245 */
    12431246function bbp_admin_setting_callback_akismet_section() {
    12441247?>
    function bbp_admin_setting_callback_akismet_section() { 
    12521255/**
    12531256 * Allow Akismet setting field
    12541257 *
    1255  * @since bbPress (r3575)
     1258 * @since 2.1.0 bbPress (r3575)
    12561259 *
    12571260 * @uses checked() To display the checked attribute
    12581261 */
    function bbp_admin_setting_callback_akismet() { 
    12701273/**
    12711274 * The main settings page
    12721275 *
    1273  * @since bbPress (r2643)
     1276 * @since 2.0.0 bbPress (r2643)
    12741277 *
    12751278 * @uses settings_fields() To output the hidden fields for the form
    12761279 * @uses do_settings_sections() To output the settings sections
    function bbp_admin_settings() { 
    13031306/**
    13041307 * Main settings section description for the settings page
    13051308 *
    1306  * @since bbPress (r3813)
     1309 * @since 2.1.0 bbPress (r3813)
    13071310 */
    13081311function bbp_converter_setting_callback_main_section() {
    13091312?>
    function bbp_converter_setting_callback_main_section() { 
    13161319/**
    13171320 * Edit Platform setting field
    13181321 *
    1319  * @since bbPress (r3813)
     1322 * @since 2.1.0 bbPress (r3813)
    13201323 */
    13211324function bbp_converter_setting_callback_platform() {
    13221325
    function bbp_converter_setting_callback_platform() { 
    13471350/**
    13481351 * Edit Database Server setting field
    13491352 *
    1350  * @since bbPress (r3813)
     1353 * @since 2.1.0 bbPress (r3813)
    13511354 */
    13521355function bbp_converter_setting_callback_dbserver() {
    13531356?>
    function bbp_converter_setting_callback_dbserver() { 
    13611364/**
    13621365 * Edit Database Server Port setting field
    13631366 *
    1364  * @since bbPress (r3813)
     1367 * @since 2.1.0 bbPress (r3813)
    13651368 */
    13661369function bbp_converter_setting_callback_dbport() {
    13671370?>
    function bbp_converter_setting_callback_dbport() { 
    13751378/**
    13761379 * Edit Database User setting field
    13771380 *
    1378  * @since bbPress (r3813)
     1381 * @since 2.1.0 bbPress (r3813)
    13791382 */
    13801383function bbp_converter_setting_callback_dbuser() {
    13811384?>
    function bbp_converter_setting_callback_dbuser() { 
    13891392/**
    13901393 * Edit Database Pass setting field
    13911394 *
    1392  * @since bbPress (r3813)
     1395 * @since 2.1.0 bbPress (r3813)
    13931396 */
    13941397function bbp_converter_setting_callback_dbpass() {
    13951398?>
    function bbp_converter_setting_callback_dbpass() { 
    14031406/**
    14041407 * Edit Database Name setting field
    14051408 *
    1406  * @since bbPress (r3813)
     1409 * @since 2.1.0 bbPress (r3813)
    14071410 */
    14081411function bbp_converter_setting_callback_dbname() {
    14091412?>
    function bbp_converter_setting_callback_dbname() { 
    14171420/**
    14181421 * Main settings section description for the settings page
    14191422 *
    1420  * @since bbPress (r3813)
     1423 * @since 2.1.0 bbPress (r3813)
    14211424 */
    14221425function bbp_converter_setting_callback_options_section() {
    14231426?>
    function bbp_converter_setting_callback_options_section() { 
    14301433/**
    14311434 * Edit Table Prefix setting field
    14321435 *
    1433  * @since bbPress (r3813)
     1436 * @since 2.1.0 bbPress (r3813)
    14341437 */
    14351438function bbp_converter_setting_callback_dbprefix() {
    14361439?>
    function bbp_converter_setting_callback_dbprefix() { 
    14441447/**
    14451448 * Edit Rows Limit setting field
    14461449 *
    1447  * @since bbPress (r3813)
     1450 * @since 2.1.0 bbPress (r3813)
    14481451 */
    14491452function bbp_converter_setting_callback_rows() {
    14501453?>
    function bbp_converter_setting_callback_rows() { 
    14591462/**
    14601463 * Edit Delay Time setting field
    14611464 *
    1462  * @since bbPress (r3813)
     1465 * @since 2.1.0 bbPress (r3813)
    14631466 */
    14641467function bbp_converter_setting_callback_delay_time() {
    14651468?>
    function bbp_converter_setting_callback_delay_time() { 
    14741477/**
    14751478 * Edit Restart setting field
    14761479 *
    1477  * @since bbPress (r3813)
     1480 * @since 2.1.0 bbPress (r3813)
    14781481 */
    14791482function bbp_converter_setting_callback_restart() {
    14801483?>
    function bbp_converter_setting_callback_restart() { 
    14891492/**
    14901493 * Edit Clean setting field
    14911494 *
    1492  * @since bbPress (r3813)
     1495 * @since 2.1.0 bbPress (r3813)
    14931496 */
    14941497function bbp_converter_setting_callback_clean() {
    14951498?>
    function bbp_converter_setting_callback_clean() { 
    15041507/**
    15051508 * Edit Convert Users setting field
    15061509 *
    1507  * @since bbPress (r3813)
     1510 * @since 2.1.0 bbPress (r3813)
    15081511 */
    15091512function bbp_converter_setting_callback_convert_users() {
    15101513?>
    function bbp_converter_settings() { 
    15551558/**
    15561559 * Contextual help for Forums settings page
    15571560 *
    1558  * @since bbPress (r3119)
     1561 * @since 2.0.0 bbPress (r3119)
     1562 *
    15591563 * @uses get_current_screen()
    15601564 */
    15611565function bbp_admin_settings_help() {
    function bbp_admin_settings_help() { 
    16261630 * Disable a settings field if the value is forcibly set in bbPress's global
    16271631 * options array.
    16281632 *
    1629  * @since bbPress (r4347)
     1633 * @since 2.2.0 bbPress (r4347)
    16301634 *
    16311635 * @param string $option_key
    16321636 */
    function bbp_maybe_admin_setting_disabled( $option_key = '' ) { 
    16371641/**
    16381642 * Output settings API option
    16391643 *
    1640  * @since bbPress (r3203)
     1644 * @since 2.0.0 bbPress (r3203)
    16411645 *
    16421646 * @uses bbp_get_bbp_form_option()
    16431647 *
    function bbp_form_option( $option, $default = '' , $slug = false ) { 
    16511655        /**
    16521656         * Return settings API option
    16531657         *
    1654          * @since bbPress (r3203)
     1658         * @since 2.0.0 bbPress (r3203)
    16551659         *
    16561660         * @uses get_option()
    16571661         * @uses esc_attr()
    function bbp_form_option( $option, $default = '' , $slug = false ) { 
    16871691/**
    16881692 * Used to check if a bbPress slug conflicts with an existing known slug.
    16891693 *
    1690  * @since bbPress (r3306)
     1694 * @since 2.0.0 bbPress (r3306)
    16911695 *
    16921696 * @param string $slug
    16931697 * @param string $default
  • src/includes/admin/tools.php

    diff --git src/includes/admin/tools.php src/includes/admin/tools.php
    index 5190542..6a22130 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Admin repair page
    1717 *
    18  * @since bbPress (r2613) Converted from bbPress 1.2
    19  * @since bbPress (r5885) Upgraded to list-table UI
     18 * @since 2.0.0 bbPress (r2613) Converted from bbPress 1.2
     19 * @since 2.6.0 bbPress (r5885) Upgraded to list-table UI
    2020 *
    2121 * @todo Use a real list table
    2222 *
    function bbp_admin_repair() { 
    162162/**
    163163 * Handle the processing and feedback of the admin tools page
    164164 *
    165  * @since bbPress (r2613)
     165 * @since 2.0.0 bbPress (r2613)
    166166 *
    167167 * @uses bbp_admin_repair_list() To get the recount list
    168168 * @uses check_admin_referer() To verify the nonce and the referer
    function bbp_admin_repair_handler() { 
    222222/**
    223223 * Output the URL to run a specific repair tool
    224224 *
    225  * @since bbPress (r5885)
     225 * @since 2.6.0 bbPress (r5885)
    226226 *
    227227 * @param string $component
    228228 */
    function bbp_admin_repair_tool_run_url( $component = '' ) { 
    233233/**
    234234 * Return the URL to run a specific repair tool
    235235 *
    236  * @since bbPress (r5885)
     236 * @since 2.6.0 bbPress (r5885)
    237237 *
    238238 * @param string $component
    239239 */
    function bbp_get_admin_repair_tool_run_url( $component = '' ) { 
    249249/**
    250250 * Contextual help for Repair Forums tools page
    251251 *
    252  * @since bbPress (r5314)
     252 * @since 2.6.0 bbPress (r5314)
     253 *
    253254 * @uses get_current_screen()
    254255 */
    255256
    function bbp_admin_tools_repair_help() { 
    287288/**
    288289 * Contextual help for Reset Forums tools page
    289290 *
    290  * @since bbPress (r5314)
     291 * @since 2.6.0 bbPress (r5314)
     292 *
    291293 * @uses get_current_screen()
    292294 */
    293295
    function bbp_admin_tools_reset_help() { 
    318320/**
    319321 * Contextual help for Import Forums tools page
    320322 *
    321  * @since bbPress (r5314)
     323 * @since 2.6.0 bbPress (r5314)
     324 *
    322325 * @uses get_current_screen()
    323326 */
    324327
    function bbp_admin_tools_converter_help() { 
    377380/**
    378381 * Assemble the admin notices
    379382 *
    380  * @since bbPress (r2613)
     383 * @since 2.0.0 bbPress (r2613)
    381384 *
    382385 * @param string|WP_Error $message A message to be displayed or {@link WP_Error}
    383386 * @param string $class Optional. A class to be added to the message div
    function bbp_admin_tools_feedback( $message, $class = false ) { 
    431434/**
    432435 * Register an admin area repair tool
    433436 *
    434  * @since bbPress (r5885)
     437 * @since 2.6.0 bbPress (r5885)
    435438 *
    436439 * @param array $args
    437440 * @return
    function bbp_register_repair_tool( $args = array() ) { 
    474477/**
    475478 * Register the default repair tools
    476479 *
    477  * @since bbPress (r5885)
     480 * @since 2.6.0 bbPress (r5885)
    478481 */
    479482function bbp_register_default_repair_tools() {
    480483
    function bbp_register_default_repair_tools() { 
    672675/**
    673676 * Get the array of available repair tools
    674677 *
    675  * @since bbPress (r5885)
     678 * @since 2.6.0 bbPress (r5885)
    676679 *
    677680 * @return array
    678681 */
    function bbp_get_admin_repair_tool_registered_components() { 
    706709/**
    707710 * Output the repair list search form
    708711 *
    709  * @since bbPress (r5885)
     712 * @since 2.6.0 bbPress (r5885)
    710713 */
    711714function bbp_admin_repair_list_search_form() {
    712715        ?>
    function bbp_admin_repair_list_components_filter() { 
    747750/**
    748751 * Maybe translate a repair tool component name
    749752 *
    750  * @since bbPress (r5885)
     753 * @since 2.6.0 bbPress (r5885)
    751754 *
    752755 * @param string $component
    753756 * @return string
    function bbp_admin_repair_tool_translate_component( $component = '' ) { 
    779782/**
    780783 * Get the array of the repair list
    781784 *
    782  * @since bbPress (r2613)
     785 * @since 2.0.0 bbPress (r2613)
    783786 *
    784787 * @uses apply_filters() Calls 'bbp_repair_list' with the list array
    785788 * @return array Repair list of options
    function bbp_admin_repair_list() { 
    836839/**
    837840 * Get filter links for components for a specific admir repair tool
    838841 *
    839  * @since bbPress (r5885)
     842 * @since 2.6.0 bbPress (r5885)
    840843 *
    841844 * @param array $item
    842845 * @return array
    function bbp_admin_repair_tool_overhead_filters( $args = array() ) { 
    868871/**
    869872 * Get filter links for components for a specific admir repair tool
    870873 *
    871  * @since bbPress (r5885)
     874 * @since 2.6.0 bbPress (r5885)
    872875 *
    873876 * @param array $args
    874877 * @return array
    function bbp_get_admin_repair_tool_overhead_filters( $args = array() ) { 
    951954/**
    952955 * Recount topic replies
    953956 *
    954  * @since bbPress (r2613)
     957 * @since 2.0.0 bbPress (r2613)
    955958 *
    956959 * @uses wpdb::query() To run our recount sql queries
    957960 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_topic_reply_count() { 
    10061009/**
    10071010 * Recount topic voices
    10081011 *
    1009  * @since bbPress (r2613)
     1012 * @since 2.0.0 bbPress (r2613)
    10101013 *
    10111014 * @uses wpdb::query() To run our recount sql queries
    10121015 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_topic_voice_count() { 
    10551058/**
    10561059 * Recount topic hidden replies (spammed/trashed)
    10571060 *
    1058  * @since bbPress (r2747)
     1061 * @since 2.0.0 bbPress (r2747)
    10591062 *
    10601063 * @uses wpdb::query() To run our recount sql queries
    10611064 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_topic_hidden_reply_count() { 
    10941097/**
    10951098 * Repair group forum ID mappings after a bbPress 1.1 to bbPress 2.2 conversion
    10961099 *
    1097  * @since bbPress (r4395)
     1100 * @since 2.2.0 bbPress (r4395)
    10981101 *
    10991102 * @uses bbp_get_forum_post_type() To get the forum post type
    11001103 * @return If a wp_error() occurs and no converted forums are found
    function bbp_admin_repair_group_forum_relationship() { 
    12311234/**
    12321235 * Recount forum topics
    12331236 *
    1234  * @since bbPress (r2613)
     1237 * @since 2.0.0 bbPress (r2613)
    12351238 *
    12361239 * @uses wpdb::query() To run our recount sql queries
    12371240 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_forum_topic_count() { 
    12681271/**
    12691272 * Recount forum replies
    12701273 *
    1271  * @since bbPress (r2613)
     1274 * @since 2.0.0 bbPress (r2613)
    12721275 *
    12731276 * @uses wpdb::query() To run our recount sql queries
    12741277 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_forum_reply_count() { 
    13141317/**
    13151318 * Recount topics by the users
    13161319 *
    1317  * @since bbPress (r3889)
     1320 * @since 2.1.0 bbPress (r3889)
    13181321 *
    13191322 * @uses bbp_get_topic_post_type() To get the topic post type
    13201323 * @uses bbp_get_public_status_id() To get the public status id
    function bbp_admin_repair_user_topic_count() { 
    13661369/**
    13671370 * Recount topic replied by the users
    13681371 *
    1369  * @since bbPress (r2613)
     1372 * @since 2.0.0 bbPress (r2613)
    13701373 *
    13711374 * @uses bbp_get_reply_post_type() To get the reply post type
    13721375 * @uses bbp_get_public_status_id() To get the public status id
    function bbp_admin_repair_user_reply_count() { 
    14181421/**
    14191422 * Clean the users' favorites
    14201423 *
    1421  * @since bbPress (r2613)
     1424 * @since 2.0.0 bbPress (r2613)
    14221425 *
    14231426 * @uses wpdb::query() To run our recount sql queries
    14241427 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_user_favorites() { 
    14881491/**
    14891492 * Clean the users' topic subscriptions
    14901493 *
    1491  * @since bbPress (r2668)
     1494 * @since 2.0.0 bbPress (r2668)
    14921495 *
    14931496 * @uses wpdb::query() To run our recount sql queries
    14941497 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_user_topic_subscriptions() { 
    15571560/**
    15581561 * Clean the users' forum subscriptions
    15591562 *
    1560  * @since bbPress (r5155)
     1563 * @since 2.5.0 bbPress (r5155)
    15611564 *
    15621565 * @uses wpdb::query() To run our recount sql queries
    15631566 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_user_forum_subscriptions() { 
    16281631 * forums role. By default, Admins will be Key Masters, and every other role
    16291632 * will be the default role defined in Settings > Forums (Participant).
    16301633 *
    1631  * @since bbPress (r4340)
     1634 * @since 2.2.0 bbPress (r4340)
    16321635 *
    16331636 * @uses bbp_get_user_role_map() To get the map of user roles
    16341637 * @uses bbp_get_default_role() To get the default bbPress user role
    function bbp_admin_repair_user_roles() { 
    16851688/**
    16861689 * Recaches the last post in every topic and forum
    16871690 *
    1688  * @since bbPress (r3040)
     1691 * @since 2.0.0 bbPress (r3040)
    16891692 *
    16901693 * @uses wpdb::query() To run our recount sql queries
    16911694 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_freshness() { 
    18141817/**
    18151818 * Repairs the relationship of sticky topics to the actual parent forum
    18161819 *
    1817  * @since bbPress (r4695)
     1820 * @since 2.3.0 bbPress (r4695)
    18181821 *
    18191822 * @uses wpdb::get_col() To run our recount sql queries
    18201823 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_sticky() { 
    18841887 * had imported forums from another forum package previous to bbPress v2.6,
    18851888 * https://bbpress.trac.wordpress.org/ticket/2577
    18861889 *
    1887  * @since bbPress (r5668)
     1890 * @since 2.6.0 bbPress (r5668)
    18881891 *
    18891892 * @uses wpdb::get_col() To run our recount sql queries
    18901893 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_closed_topics() { 
    19331936/**
    19341937 * Recaches the private and hidden forums
    19351938 *
    1936  * @since bbPress (r4104)
     1939 * @since 2.2.0 bbPress (r4104)
    19371940 *
    19381941 * @uses bbp_repair_forum_visibility() To update private and hidden forum ids
    19391942 * @return array An array of the status code and the message
    function bbp_admin_repair_forum_visibility() { 
    19541957/**
    19551958 * Recaches the parent forum meta for each topic and reply
    19561959 *
    1957  * @since bbPress (r3876)
     1960 * @since 2.1.0 bbPress (r3876)
    19581961 *
    19591962 * @uses wpdb::query() To run our recount sql queries
    19601963 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_forum_meta() { 
    20092012/**
    20102013 * Recaches the topic for each post
    20112014 *
    2012  * @since bbPress (r3876)
     2015 * @since 2.1.0 bbPress (r3876)
    20132016 *
    20142017 * @uses wpdb::query() To run our recount sql queries
    20152018 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_topic_meta() { 
    20642067/**
    20652068 * Recalculate reply menu order
    20662069 *
    2067  * @since bbPress (r5367)
     2070 * @since 2.5.4 bbPress (r5367)
    20682071 *
    20692072 * @uses wpdb::query() To run our recount sql queries
    20702073 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}
    function bbp_admin_repair_reply_menu_order() { 
    21232126/**
    21242127 * Admin reset page
    21252128 *
    2126  * @since bbPress (r2613)
     2129 * @since 2.0.0 bbPress (r2613)
    21272130 *
    21282131 * @uses check_admin_referer() To verify the nonce and the referer
    21292132 * @uses do_action() Calls 'admin_notices' to display the notices
    function bbp_admin_reset() { 
    21902193/**
    21912194 * Handle the processing and feedback of the admin tools page
    21922195 *
    2193  * @since bbPress (r2613)
     2196 * @since 2.0.0 bbPress (r2613)
    21942197 *
    21952198 * @uses check_admin_referer() To verify the nonce and the referer
    21962199 * @uses wp_cache_flush() To flush the cache
  • src/includes/admin/topics.php

    diff --git src/includes/admin/topics.php src/includes/admin/topics.php
    index d515db0..d9c327c 100644
    if ( !class_exists( 'BBP_Topics_Admin' ) ) : 
    1616 *
    1717 * @package bbPress
    1818 * @subpackage Administration
    19  * @since bbPress (r2464)
     19 * @since 2.0.0 bbPress (r2464)
    2020 */
    2121class BBP_Topics_Admin {
    2222
    class BBP_Topics_Admin { 
    3232        /**
    3333         * The main bbPress topics admin loader
    3434         *
    35          * @since bbPress (r2515)
     35         * @since 2.0.0 bbPress (r2515)
    3636         *
    3737         * @uses BBP_Topics_Admin::setup_globals() Setup the globals needed
    3838         * @uses BBP_Topics_Admin::setup_actions() Setup the hooks and actions
    class BBP_Topics_Admin { 
    4646        /**
    4747         * Setup the admin hooks, actions and filters
    4848         *
    49          * @since bbPress (r2646)
     49         * @since 2.0.0 bbPress (r2646)
     50         *
    5051         * @access private
    5152         *
    5253         * @uses add_action() To add various actions
    class BBP_Topics_Admin { 
    9596        /**
    9697         * Should we bail out of this method?
    9798         *
    98          * @since bbPress (r4067)
     99         * @since 2.1.0 bbPress (r4067)
     100         *
    99101         * @return boolean
    100102         */
    101103        private function bail() {
    class BBP_Topics_Admin { 
    109111        /**
    110112         * Admin globals
    111113         *
    112          * @since bbPress (r2646)
     114         * @since 2.0.0 bbPress (r2646)
     115         *
    113116         * @access private
    114117         */
    115118        private function setup_globals() {
    class BBP_Topics_Admin { 
    121124        /**
    122125         * Contextual help for bbPress topic edit page
    123126         *
    124          * @since bbPress (r3119)
     127         * @since 2.0.0 bbPress (r3119)
     128         *
    125129         * @uses get_current_screen()
    126130         */
    127131        public function edit_help() {
    class BBP_Topics_Admin { 
    190194        /**
    191195         * Contextual help for bbPress topic edit page
    192196         *
    193          * @since bbPress (r3119)
     197         * @since 2.0.0 bbPress (r3119)
     198         *
    194199         * @uses get_current_screen()
    195200         */
    196201        public function new_help() {
    class BBP_Topics_Admin { 
    248253        /**
    249254         * Add the topic attributes metabox
    250255         *
    251          * @since bbPress (r2744)
     256         * @since 2.0.0 bbPress (r2744)
    252257         *
    253258         * @uses bbp_get_topic_post_type() To get the topic post type
    254259         * @uses add_meta_box() To add the metabox
    class BBP_Topics_Admin { 
    275280        /**
    276281         * Pass the topic attributes for processing
    277282         *
    278          * @since bbPress (r2746)
     283         * @since 2.0.0 bbPress (r2746)
    279284         *
    280285         * @param int $topic_id Topic id
    281286         * @uses current_user_can() To check if the current user is capable of
    class BBP_Topics_Admin { 
    355360        /**
    356361         * Add the author info metabox
    357362         *
    358          * @since bbPress (r2828)
     363         * @since 2.0.0 bbPress (r2828)
    359364         *
    360365         * @uses bbp_get_topic() To get the topic
    361366         * @uses bbp_get_reply() To get the reply
    class BBP_Topics_Admin { 
    395400         * Allows viewing & moderating of replies to a topic, based on the way
    396401         * comments are visible on a blog post.
    397402         *
    398          * @since bbPress (r5886)
     403         * @since 2.6.0 bbPress (r5886)
    399404         *
    400405         * @uses bbp_get_topic() To get the topic
    401406         * @uses bbp_get_reply() To get the reply
    class BBP_Topics_Admin { 
    432437        /**
    433438         * Add some general styling to the admin area
    434439         *
    435          * @since bbPress (r2464)
     440         * @since 2.0.0 bbPress (r2464)
    436441         *
    437442         * @uses bbp_get_forum_post_type() To get the forum post type
    438443         * @uses bbp_get_topic_post_type() To get the topic post type
    class BBP_Topics_Admin { 
    519524         * Handles the admin-side opening/closing, sticking/unsticking and
    520525         * spamming/unspamming of topics
    521526         *
    522          * @since bbPress (r2727)
     527         * @since 2.0.0 bbPress (r2727)
    523528         *
    524529         * @uses bbp_get_topic() To get the topic
    525530         * @uses current_user_can() To check if the user is capable of editing
    class BBP_Topics_Admin { 
    647652         * Display the success/error notices from
    648653         * {@link BBP_Admin::toggle_topic()}
    649654         *
    650          * @since bbPress (r2727)
     655         * @since 2.0.0 bbPress (r2727)
    651656         *
    652657         * @uses bbp_get_topic() To get the topic
    653658         * @uses bbp_get_topic_title() To get the topic title of the topic
    class BBP_Topics_Admin { 
    752757        /**
    753758         * Manage the column headers for the topics page
    754759         *
    755          * @since bbPress (r2485)
     760         * @since 2.0.0 bbPress (r2485)
    756761         *
    757762         * @param array $columns The columns
    758763         * @uses apply_filters() Calls 'bbp_admin_topics_column_headers' with
    class BBP_Topics_Admin { 
    782787        /**
    783788         * Print extra columns for the topics page
    784789         *
    785          * @since bbPress (r2485)
     790         * @since 2.0.0 bbPress (r2485)
    786791         *
    787792         * @param string $column Column
    788793         * @param int $topic_id Topic id
    class BBP_Topics_Admin { 
    884889         * Remove the quick-edit action link under the topic title and add the
    885890         * content and close/stick/spam links
    886891         *
    887          * @since bbPress (r2485)
     892         * @since 2.0.0 bbPress (r2485)
    888893         *
    889894         * @param array $actions Actions
    890895         * @param array $topic Topic object
    class BBP_Topics_Admin { 
    985990        /**
    986991         * Add forum dropdown to topic and reply list table filters
    987992         *
    988          * @since bbPress (r2991)
     993         * @since 2.0.0 bbPress (r2991)
    989994         *
    990995         * @uses bbp_get_reply_post_type() To get the reply post type
    991996         * @uses bbp_get_topic_post_type() To get the topic post type
    class BBP_Topics_Admin { 
    10181023        /**
    10191024         * Adjust the request query and include the forum id
    10201025         *
    1021          * @since bbPress (r2991)
     1026         * @since 2.0.0 bbPress (r2991)
    10221027         *
    10231028         * @param array $query_vars Query variables from {@link WP_Query}
    10241029         * @uses is_admin() To check if it's the admin section
    class BBP_Topics_Admin { 
    10461051        /**
    10471052         * Custom user feedback messages for topic post type
    10481053         *
    1049          * @since bbPress (r3080)
     1054         * @since 2.0.0 bbPress (r3080)
    10501055         *
    10511056         * @global int $post_ID
    10521057         * @uses bbp_get_topic_permalink()
    endif; // class_exists check 
    11241129 * This is currently here to make hooking and unhooking of the admin UI easy.
    11251130 * It could use dependency injection in the future, but for now this is easier.
    11261131 *
    1127  * @since bbPress (r2596)
     1132 * @since 2.0.0 bbPress (r2596)
    11281133 *
    11291134 * @uses BBP_Forums_Admin
    11301135 */
  • src/includes/admin/users.php

    diff --git src/includes/admin/users.php src/includes/admin/users.php
    index f060018..817f3fe 100644
    if ( !class_exists( 'BBP_Users_Admin' ) ) : 
    1616 *
    1717 * @package bbPress
    1818 * @subpackage Administration
    19  * @since bbPress (r2464)
     19 * @since 2.0.0 bbPress (r2464)
    2020 */
    2121class BBP_Users_Admin {
    2222
    2323        /**
    2424         * The bbPress users admin loader
    2525         *
    26          * @since bbPress (r2515)
     26         * @since 2.0.0 bbPress (r2515)
    2727         *
    2828         * @uses BBP_Users_Admin::setup_globals() Setup the globals needed
    2929         * @uses BBP_Users_Admin::setup_actions() Setup the hooks and actions
    class BBP_Users_Admin { 
    3535        /**
    3636         * Setup the admin hooks, actions and filters
    3737         *
    38          * @since bbPress (r2646)
     38         * @since 2.0.0 bbPress (r2646)
     39         *
    3940         * @access private
    4041         *
    4142         * @uses add_action() To add various actions
    class BBP_Users_Admin { 
    6263        /**
    6364         * Default interface for setting a forum role
    6465         *
    65          * @since bbPress (r4285)
     66         * @since 2.2.0 bbPress (r4285)
    6667         *
    6768         * @param WP_User $profileuser User data
    6869         * @return bool Always false
    class BBP_Users_Admin { 
    123124        /**
    124125         * Add bulk forums role dropdown to the WordPress users table
    125126         *
    126          * @since bbPress (r4360)
     127         * @since 2.2.0 bbPress (r4360)
    127128         */
    128129        public static function user_role_bulk_dropdown() {
    129130
    class BBP_Users_Admin { 
    219220         * Add Forum Role column to the WordPress Users table, and change the
    220221         * core role title to "Site Role"
    221222         *
    222          * @since bbPress (r4337)
     223         * @since 2.2.0 bbPress (r4337)
    223224         *
    224225         * @param array $columns Users table columns
    225226         * @return array $columns
    class BBP_Users_Admin { 
    234235        /**
    235236         * Return user's forums role for display in the WordPress Users list table
    236237         *
    237          * @since bbPress (r4337)
     238         * @since 2.2.0 bbPress (r4337)
    238239         *
    239240         * @param string $retval
    240241         * @param string $column_name
  • src/includes/common/ajax.php

    diff --git src/includes/common/ajax.php src/includes/common/ajax.php
    index 03fe163..f8eb3e6 100644
    defined( 'ABSPATH' ) || exit; 
    1616/**
    1717 * Output the URL to use for theme-side bbPress AJAX requests
    1818 *
    19  * @since bbPress (r4543)
     19 * @since 2.3.0 bbPress (r4543)
    2020 *
    2121 * @uses bbp_get_ajax_url() To get the URL to use for AJAX requests
    2222 */
    function bbp_ajax_url() { 
    2626        /**
    2727         * Return the URL to use for theme-side bbPress AJAX requests
    2828         *
    29          * @since bbPress (r4543)
     29         * @since 2.3.0 bbPress (r4543)
    3030         *
    3131         * @global WP $wp
    3232         * @return string
    function bbp_ajax_url() { 
    4343/**
    4444 * Is this a bbPress AJAX request?
    4545 *
    46  * @since bbPress (r4543)
     46 * @since 2.3.0 bbPress (r4543)
    4747 *
    4848 * @return bool Looking for bbp-ajax
    4949 */
    function bbp_is_ajax() { 
    5555 * Hooked to the 'bbp_template_redirect' action, this is bbPress's custom
    5656 * theme-side ajax handler.
    5757 *
    58  * @since bbPress (r4543)
     58 * @since 2.3.0 bbPress (r4543)
    5959 *
    6060 * @return If not a bbPress ajax request
    6161 */
    function bbp_do_ajax() { 
    8585/**
    8686 * Helper method to return JSON response for the ajax calls
    8787 *
    88  * @since bbPress (r4542)
     88 * @since 2.3.0 bbPress (r4542)
    8989 *
    9090 * @param bool $success
    9191 * @param string $content
  • src/includes/common/classes.php

    diff --git src/includes/common/classes.php src/includes/common/classes.php
    index 6ce3d50..85f4c17 100644
    if ( !class_exists( 'BBP_Component' ) ) : 
    2222 * @package bbPress
    2323 * @subpackage Classes
    2424 *
    25  * @since bbPress (r2688)
     25 * @since 2.0.0 bbPress (r2688)
    2626 */
    2727class BBP_Component {
    2828
    class BBP_Component { 
    5858        /**
    5959         * bbPress Component loader
    6060         *
    61          * @since bbPress (r2700)
     61         * @since 2.0.0 bbPress (r2700)
    6262         *
    6363         * @param array $args Required. Supports these args:
    6464         *  - name: Unique name (for internal identification)
    class BBP_Component { 
    8383        /**
    8484         * Component global variables
    8585         *
    86          * @since bbPress (r2700)
     86         * @since 2.0.0 bbPress (r2700)
     87         *
    8788         * @access private
    8889         *
    8990         * @uses apply_filters() Calls 'bbp_{@link BBP_Component::name}_id'
    class BBP_Component { 
    9899        /**
    99100         * Include required files
    100101         *
    101          * @since bbPress (r2700)
     102         * @since 2.0.0 bbPress (r2700)
     103         *
    102104         * @access private
    103105         *
    104106         * @uses do_action() Calls 'bbp_{@link BBP_Component::name}includes'
    class BBP_Component { 
    110112        /**
    111113         * Setup the actions
    112114         *
    113          * @since bbPress (r2700)
     115         * @since 2.0.0 bbPress (r2700)
     116         *
    114117         * @access private
    115118         *
    116119         * @uses add_action() To add various actions
    class BBP_Component { 
    130133        /**
    131134         * Setup the component post types
    132135         *
    133          * @since bbPress (r2700)
     136         * @since 2.0.0 bbPress (r2700)
    134137         *
    135138         * @uses do_action() Calls 'bbp_{@link BBP_Component::name}_register_post_types'
    136139         */
    class BBP_Component { 
    141144        /**
    142145         * Register component specific taxonomies
    143146         *
    144          * @since bbPress (r2700)
     147         * @since 2.0.0 bbPress (r2700)
    145148         *
    146149         * @uses do_action() Calls 'bbp_{@link BBP_Component::name}_register_taxonomies'
    147150         */
    class BBP_Component { 
    152155        /**
    153156         * Add any additional rewrite tags
    154157         *
    155          * @since bbPress (r2700)
     158         * @since 2.0.0 bbPress (r2700)
    156159         *
    157160         * @uses do_action() Calls 'bbp_{@link BBP_Component::name}_add_rewrite_tags'
    158161         */
    class BBP_Component { 
    163166        /**
    164167         * Generate any additional rewrite rules
    165168         *
    166          * @since bbPress (r2700)
     169         * @since 2.0.0 bbPress (r2700)
    167170         *
    168171         * @uses do_action() Calls 'bbp_{@link BBP_Component::name}_generate_rewrite_rules'
    169172         */
    if ( class_exists( 'Walker' ) ) : 
    180183 * @package bbPress
    181184 * @subpackage Classes
    182185 *
    183  * @since bbPress (r2746)
     186 * @since 2.0.0 bbPress (r2746)
     187 *
    184188 * @uses Walker
    185189 */
    186190class BBP_Walker_Dropdown extends Walker {
    class BBP_Walker_Dropdown extends Walker { 
    188192        /**
    189193         * @see Walker::$tree_type
    190194         *
    191          * @since bbPress (r2746)
     195         * @since 2.0.0 bbPress (r2746)
    192196         *
    193197         * @var string
    194198         */
    class BBP_Walker_Dropdown extends Walker { 
    197201        /**
    198202         * @see Walker::$db_fields
    199203         *
    200          * @since bbPress (r2746)
     204         * @since 2.0.0 bbPress (r2746)
    201205         *
    202206         * @var array
    203207         */
    class BBP_Walker_Dropdown extends Walker { 
    211215        /**
    212216         * Set the tree_type
    213217         *
    214          * @since bbPress (r2746)
     218         * @since 2.0.0 bbPress (r2746)
    215219         */
    216220        public function __construct() {
    217221                $this->tree_type = bbp_get_forum_post_type();
    class BBP_Walker_Dropdown extends Walker { 
    220224        /**
    221225         * @see Walker::start_el()
    222226         *
    223          * @since bbPress (r2746)
     227         * @since 2.0.0 bbPress (r2746)
    224228         *
    225229         * @param string $output Passed by reference. Used to append additional
    226230         *                       content.
    class BBP_Walker_Dropdown extends Walker { 
    271275 * @package bbPress
    272276 * @subpackage Classes
    273277 *
    274  * @since bbPress (r4944)
     278 * @since 2.4.0 bbPress (r4944)
    275279 */
    276280class BBP_Walker_Reply extends Walker {
    277281
    278282        /**
    279283         * @see Walker::$tree_type
    280284         *
    281          * @since bbPress (r4944)
     285         * @since 2.4.0 bbPress (r4944)
    282286         *
    283287         * @var string
    284288         */
    class BBP_Walker_Reply extends Walker { 
    287291        /**
    288292         * @see Walker::$db_fields
    289293         *
    290          * @since bbPress (r4944)
     294         * @since 2.4.0 bbPress (r4944)
    291295         *
    292296         * @var array
    293297         */
    class BBP_Walker_Reply extends Walker { 
    299303        /**
    300304         * Confirm the tree_type
    301305         *
    302          * @since bbPress (r5389)
     306         * @since 2.6.0 bbPress (r5389)
    303307         */
    304308        public function __construct() {
    305309                $this->tree_type = bbp_get_reply_post_type();
    class BBP_Walker_Reply extends Walker { 
    308312        /**
    309313         * @see Walker::start_lvl()
    310314         *
    311          * @since bbPress (r4944)
     315         * @since 2.4.0 bbPress (r4944)
    312316         *
    313317         * @param string $output Passed by reference. Used to append additional content
    314318         * @param int $depth Depth of reply
    class BBP_Walker_Reply extends Walker { 
    333337        /**
    334338         * @see Walker::end_lvl()
    335339         *
    336          * @since bbPress (r4944)
     340         * @since 2.4.0 bbPress (r4944)
    337341         *
    338342         * @param string $output Passed by reference. Used to append additional content
    339343         * @param int $depth Depth of reply
    class BBP_Walker_Reply extends Walker { 
    356360        }
    357361
    358362        /**
    359          * @since bbPress (r4944)
     363         * @since 2.4.0 bbPress (r4944)
    360364         */
    361365        public function display_element( $element = false, &$children_elements = array(), $max_depth = 0, $depth = 0, $args = array(), &$output = '' ) {
    362366
    class BBP_Walker_Reply extends Walker { 
    384388        /**
    385389         * @see Walker:start_el()
    386390         *
    387          * @since bbPress (r4944)
     391         * @since 2.4.0 bbPress (r4944)
    388392         */
    389393        public function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {
    390394
    class BBP_Walker_Reply extends Walker { 
    411415        }
    412416
    413417        /**
    414          * @since bbPress (r4944)
     418         * @since 2.4.0 bbPress (r4944)
    415419         */
    416420        public function end_el( &$output = '', $object = false, $depth = 0, $args = array() ) {
    417421
    class BBP_Walker_Reply extends Walker { 
    436440 * @package bbPress
    437441 * @subpackage Classes
    438442 *
    439  * @since bbPress (r5389)
     443 * @since 2.6.0 bbPress (r5389)
     444 *
    440445 * @uses Walker
    441446 */
    442447class BBP_Walker_Reply_Dropdown extends Walker {
    class BBP_Walker_Reply_Dropdown extends Walker { 
    444449        /**
    445450         * @see Walker::$tree_type
    446451         *
    447          * @since bbPress (r5389)
     452         * @since 2.6.0 bbPress (r5389)
    448453         *
    449454         * @var string
    450455         */
    class BBP_Walker_Reply_Dropdown extends Walker { 
    453458        /**
    454459         * @see Walker::$db_fields
    455460         *
    456          * @since bbPress (r5389)
     461         * @since 2.6.0 bbPress (r5389)
    457462         *
    458463         * @var array
    459464         */
    class BBP_Walker_Reply_Dropdown extends Walker { 
    467472        /**
    468473         * Confirm the tree_type
    469474         *
    470          * @since bbPress (r5389)
     475         * @since 2.6.0 bbPress (r5389)
    471476         */
    472477        public function __construct() {
    473478                $this->tree_type = bbp_get_reply_post_type();
    class BBP_Walker_Reply_Dropdown extends Walker { 
    476481        /**
    477482         * @see Walker::start_el()
    478483         *
    479          * @since bbPress (r5389)
     484         * @since 2.6.0 bbPress (r5389)
    480485         *
    481486         * @param string $output Passed by reference. Used to append additional
    482487         *                       content.
  • src/includes/common/formatting.php

    diff --git src/includes/common/formatting.php src/includes/common/formatting.php
    index 851ecc7..34d51fb 100644
    defined( 'ABSPATH' ) || exit; 
    1717 *
    1818 * Allows all users to post links, quotes, code, formatting, lists, and images
    1919 *
    20  * @since bbPress (r4603)
     20 * @since 2.3.0 bbPress (r4603)
    2121 *
    2222 * @return array Associative array of allowed tags and attributes
    2323 */
    function bbp_kses_allowed_tags() { 
    7676/**
    7777 * Custom kses filter for forum topics and replies, for filtering incoming data
    7878 *
    79  * @since bbPress (r4603)
     79 * @since 2.3.0 bbPress (r4603)
    8080 *
    8181 * @param string $data Content to filter, expected to be escaped with slashes
    8282 * @return string Filtered content
    function bbp_filter_kses( $data = '' ) { 
    8888/**
    8989 * Custom kses filter for forum topics and replies, for raw data
    9090 *
    91  * @since bbPress (r4603)
     91 * @since 2.3.0 bbPress (r4603)
    9292 *
    9393 * @param string $data Content to filter, expected to not be escaped
    9494 * @return string Filtered content
    function bbp_kses_data( $data = '' ) { 
    102102/**
    103103 * Filter the topic or reply content and output code and pre tags
    104104 *
    105  * @since bbPress (r4641)
     105 * @since 2.3.0 bbPress (r4641)
    106106 *
    107107 * @param string $content Topic and reply content
    108108 * @return string Partially encodedd content
    function bbp_code_trick( $content = '' ) { 
    119119 * When editing a topic or reply, reverse the code trick so the textarea
    120120 * contains the correct editable content.
    121121 *
    122  * @since bbPress (r4641)
     122 * @since 2.3.0 bbPress (r4641)
    123123 *
    124124 * @param string $content Topic and reply content
    125125 * @return string Partially encodedd content
    function bbp_code_trick_reverse( $content = '' ) { 
    143143/**
    144144 * Filter the content and encode any bad HTML tags
    145145 *
    146  * @since bbPress (r4641)
     146 * @since 2.3.0 bbPress (r4641)
    147147 *
    148148 * @param string $content Topic and reply content
    149149 * @return string Partially encodedd content
    function bbp_encode_bad( $content = '' ) { 
    186186/**
    187187 * Callback to encode the tags in topic or reply content
    188188 *
    189  * @since bbPress (r4641)
     189 * @since 2.3.0 bbPress (r4641)
    190190 *
    191191 * @param array $matches
    192192 * @return string
    function bbp_encode_callback( $matches = array() ) { 
    222222/**
    223223 * Callback to decode the tags in topic or reply content
    224224 *
    225  * @since bbPress (r4641)
     225 * @since 2.3.0 bbPress (r4641)
    226226 *
    227227 * @param array $matches
    228228 * @todo Experiment with _wp_specialchars()
    function bbp_decode_callback( $matches = array() ) { 
    251251/**
    252252 * Callback to replace empty HTML tags in a content string
    253253 *
    254  * @since bbPress (r4641)
     254 * @since 2.3.0 bbPress (r4641)
    255255 *
    256256 * @internal Used by bbp_encode_bad()
    257257 * @param string $content
    function bbp_encode_empty_callback( &$content = '', $key = '', $preg = '' ) { 
    267267/**
    268268 * Callback to replace normal HTML tags in a content string
    269269 *
    270  * @since bbPress (r4641)
     270 * @since 2.3.0 bbPress (r4641)
    271271 *
    272272 * @internal Used by bbp_encode_bad()
    273273 * @param type $content
    function bbp_encode_normal_callback( &$content = '', $key = '', $preg = '') { 
    285285/**
    286286 * Catches links so rel=nofollow can be added (on output, not save)
    287287 *
    288  * @since bbPress (r4865)
     288 * @since 2.3.0 bbPress (r4865)
     289 *
    289290 * @param string $text Post text
    290291 * @return string $text Text with rel=nofollow added to any links
    291292 */
    function bbp_rel_nofollow( $text = '' ) { 
    296297/**
    297298 * Adds rel=nofollow to a link
    298299 *
    299  * @since bbPress (r4865)
     300 * @since 2.3.0 bbPress (r4865)
     301 *
    300302 * @param array $matches
    301303 * @return string $text Link with rel=nofollow added
    302304 */
    function bbp_rel_nofollow_callback( $matches = array() ) { 
    317319 * This custom version of WordPress's make_clickable() skips links inside of
    318320 * pre and code tags.
    319321 *
    320  * @since bbPress (r4941)
     322 * @since 2.4.0 bbPress (r4941)
    321323 *
    322324 * @param string $text Content to convert URIs.
    323325 * @return string Content with converted URIs.
  • src/includes/common/functions.php

    diff --git src/includes/common/functions.php src/includes/common/functions.php
    index 67af13c..7101e96 100644
    defined( 'ABSPATH' ) || exit; 
    1818/**
    1919 * A bbPress specific method of formatting numeric values
    2020 *
    21  * @since bbPress (r2486)
     21 * @since 2.0.0 bbPress (r2486)
    2222 *
    2323 * @param string $number Number to format
    2424 * @param string $decimals Optional. Display decimals
    function bbp_number_format( $number = 0, $decimals = false, $dec_point = '.', $t 
    3939/**
    4040 * A bbPress specific method of formatting numeric values
    4141 *
    42  * @since bbPress (r3857)
     42 * @since 2.1.0 bbPress (r3857)
    4343 *
    4444 * @param string $number Number to format
    4545 * @param string $decimals Optional. Display decimals
    function bbp_number_format_i18n( $number = 0, $decimals = false ) { 
    6060/**
    6161 * Convert time supplied from database query into specified date format.
    6262 *
    63  * @since bbPress (r2455)
     63 * @since 2.0.0 bbPress (r2544)
    6464 *
    6565 * @param string $time Time to convert
    6666 * @param string $d Optional. Default is 'U'. Either 'G', 'U', or php date
    function bbp_convert_date( $time, $d = 'U', $translate = false ) { 
    8181/**
    8282 * Output formatted time to display human readable time difference.
    8383 *
    84  * @since bbPress (r2544)
     84 * @since 2.0.0 bbPress (r2544)
    8585 *
    8686 * @param string $older_date Unix timestamp from which the difference begins.
    8787 * @param string $newer_date Optional. Unix timestamp from which the
    function bbp_time_since( $older_date, $newer_date = false, $gmt = false ) { 
    9595        /**
    9696         * Return formatted time to display human readable time difference.
    9797         *
    98          * @since bbPress (r2544)
     98         * @since 2.0.0 bbPress (r2544)
    9999         *
    100100         * @param string $older_date Unix timestamp from which the difference begins.
    101101         * @param string $newer_date Optional. Unix timestamp from which the
    function bbp_time_since( $older_date, $newer_date = false, $gmt = false ) { 
    204204 *  - Removing periods from the end of the string
    205205 *  - Trimming again
    206206 *
    207  * @since bbPress (r2782)
     207 * @since 2.0.0 bbPress (r2782)
    208208 *
    209209 * @param string $reason Optional. User submitted reason for editing.
    210210 * @return string Status of topic
    function bbp_get_redirect_to() { 
    249249/**
    250250 * Append 'view=all' to query string if it's already there from referer
    251251 *
    252  * @since bbPress (r3325)
     252 * @since 2.0.0 bbPress (r3325)
    253253 *
    254254 * @param string $original_link Original Link to be modified
    255255 * @param bool $force Override bbp_get_view_all() check
    function bbp_add_view_all( $original_link = '', $force = false ) { 
    273273/**
    274274 * Remove 'view=all' from query string
    275275 *
    276  * @since bbPress (r3325)
     276 * @since 2.0.0 bbPress (r3325)
    277277 *
    278278 * @param string $original_link Original Link to be modified
    279279 * @uses current_user_can() To check if the current user can moderate
    function bbp_remove_view_all( $original_link = '' ) { 
    288288/**
    289289 * If current user can and is vewing all topics/replies
    290290 *
    291  * @since bbPress (r3325)
     291 * @since 2.0.0 bbPress (r3325)
    292292 *
    293293 * @uses current_user_can() To check if the current user can moderate
    294294 * @uses apply_filters() Calls 'bbp_get_view_all' with the link and original link
    function bbp_get_view_all( $cap = 'moderate' ) { 
    302302/**
    303303 * Assist pagination by returning correct page number
    304304 *
    305  * @since bbPress (r2628)
     305 * @since 2.0.0 bbPress (r2628)
    306306 *
    307307 * @uses get_query_var() To get the 'paged' value
    308308 * @return int Current page number
    function bbp_get_paged() { 
    335335 * edits it, the post_author field is set to the logged in user's id. This
    336336 * function fixes that.
    337337 *
    338  * @since bbPress (r2734)
     338 * @since 2.0.0 bbPress (r2734)
    339339 *
    340340 * @param array $data Post data
    341341 * @param array $postarr Original post array (includes post id)
    function bbp_fix_post_author( $data = array(), $postarr = array() ) { 
    373373/**
    374374 * Check the date against the _bbp_edit_lock setting.
    375375 *
    376  * @since bbPress (r3133)
     376 * @since 2.0.0 bbPress (r3133)
    377377 *
    378378 * @param string $post_date_gmt
    379379 *
    function bbp_past_edit_lock( $post_date_gmt ) { 
    415415/**
    416416 * Get the forum statistics
    417417 *
    418  * @since bbPress (r2769)
     418 * @since 2.0.0 bbPress (r2769)
    419419 *
    420420 * @param array $args Optional. The function supports these arguments (all
    421421 *                     default to true):
    function bbp_get_statistics( $args = array() ) { 
    604604 *
    605605 * If there are any errors, those are directly added to {@link bbPress:errors}
    606606 *
    607  * @since bbPress (r2734)
     607 * @since 2.0.0 bbPress (r2734)
    608608 *
    609609 * @param array $args Optional. If no args are there, then $_POST values are
    610610 *                     used.
    function bbp_filter_anonymous_post_data( $args = array() ) { 
    651651 *
    652652 * Check to make sure that a user is not making a duplicate post
    653653 *
    654  * @since bbPress (r2763)
     654 * @since 2.0.0 bbPress (r2763)
    655655 *
    656656 * @param array $post_data Contains information about the comment
    657657 * @uses current_user_can() To check if the current user can throttle
    function bbp_check_for_duplicate( $post_data = array() ) { 
    723723 * Check to make sure that a user is not making too many posts in a short amount
    724724 * of time.
    725725 *
    726  * @since bbPress (r2734)
     726 * @since 2.0.0 bbPress (r2734)
    727727 *
    728728 * @param false|array $anonymous_data Optional - if it's an anonymous post. Do
    729729 *                                     not supply if supplying $author_id.
    function bbp_check_for_flood( $anonymous_data = false, $author_id = 0 ) { 
    773773/**
    774774 * Checks topics and replies against the discussion moderation of blocked keys
    775775 *
    776  * @since bbPress (r3581)
     776 * @since 2.1.0 bbPress (r3581)
    777777 *
    778778 * @param array $anonymous_data Anonymous user data
    779779 * @param int $author_id Topic or reply author ID
    function bbp_check_for_moderation( $anonymous_data = false, $author_id = 0, $tit 
    897897/**
    898898 * Checks topics and replies against the discussion blacklist of blocked keys
    899899 *
    900  * @since bbPress (r3446)
     900 * @since 2.0.0 bbPress (r3446)
    901901 *
    902902 * @param array $anonymous_data Anonymous user data
    903903 * @param int $author_id Topic or reply author ID
    function bbp_check_for_blacklist( $anonymous_data = false, $author_id = 0, $titl 
    10111011 * WordPress core. Previously, we used `get_home_url()` to use already validated
    10121012 * user input, but it was causing issues in some installations.
    10131013 *
    1014  * @since bbPress (r5409)
     1014 * @since 2.6.0 bbPress (r5409)
    10151015 *
    10161016 * @see  wp_mail
    10171017 * @see  wp_notify_postauthor
    function bbp_get_do_not_reply_address() { 
    10391039 * those cases, we recommend unhooking this function and creating your own
    10401040 * custom emailer script.
    10411041 *
    1042  * @since bbPress (r5413)
     1042 * @since 2.6.0 bbPress (r5413)
    10431043 *
    10441044 * @param int $reply_id ID of the newly made reply
    10451045 * @param int $topic_id ID of the topic of the reply
    Login and visit the topic to unsubscribe from these emails.', 'bbpress' ), 
    12031203 * those cases, we recommend unhooking this function and creating your own
    12041204 * custom emailer script.
    12051205 *
    1206  * @since bbPress (r5156)
     1206 * @since 2.5.0 bbPress (r5156)
    12071207 *
    12081208 * @param int $topic_id ID of the newly made reply
    12091209 * @param int $forum_id ID of the forum for the topic
    Login and visit the topic to unsubscribe from these emails.', 'bbpress' ), 
    13531353 *
    13541354 * This function is deprecated. Please use: bbp_notify_topic_subscribers()
    13551355 *
    1356  * @since bbPress (r2668)
    1357  * @deprecated bbPress (r5412)
     1356 * @since 2.0.0 bbPress (r2668)
     1357 *
     1358 * @deprecated 2.6.0 bbPress (r5412)
    13581359 *
    13591360 * @param int $reply_id ID of the newly made reply
    13601361 * @param int $topic_id ID of the topic of the reply
    function bbp_logout_url( $url = '', $redirect_to = '' ) { 
    14101411 * it allows for arguments to be passively or aggressively filtered using the
    14111412 * optional $filter_key parameter.
    14121413 *
    1413  * @since bbPress (r3839)
     1414 * @since 2.1.0 bbPress (r3839)
    14141415 *
    14151416 * @param string|array $args Value to merge with $defaults
    14161417 * @param array $defaults Array that serves as the defaults.
    function bbp_parse_args( $args, $defaults = array(), $filter_key = '' ) { 
    14501451/**
    14511452 * Adds ability to include or exclude specific post_parent ID's
    14521453 *
    1453  * @since bbPress (r2996)
    1454  * @deprecated bbPress (r5814)
     1454 * @since 2.0.0 bbPress (r2996)
     1455 *
     1456 * @deprecated 2.5.8 bbPress (r5814)
    14551457 *
    14561458 * @global WP $wp
    14571459 * @param string $where
    function bbp_get_public_child_last_id( $parent_id = 0, $post_type = 'post' ) { 
    15461548/**
    15471549 * Query the DB and get a count of public children
    15481550 *
    1549  * @since bbPress (r2868)
     1551 * @since 2.0.0 bbPress (r2868)
    15501552 *
    15511553 * @param int $parent_id Parent id
    15521554 * @param string $post_type Post type. Defaults to 'post'
    function bbp_get_public_child_count( $parent_id = 0, $post_type = 'post' ) { 
    15971599/**
    15981600 * Query the DB and get a the child id's of public children
    15991601 *
    1600  * @since bbPress (r2868)
     1602 * @since 2.0.0 bbPress (r2868)
    16011603 *
    16021604 * @param int $parent_id Parent id
    16031605 * @param string $post_type Post type. Defaults to 'post'
    function bbp_get_public_child_ids( $parent_id = 0, $post_type = 'post' ) { 
    16501652/**
    16511653 * Query the DB and get a the child id's of all children
    16521654 *
    1653  * @since bbPress (r3325)
     1655 * @since 2.0.0 bbPress (r3325)
    16541656 *
    16551657 * @param int $  parent_id  Parent id
    16561658 * @param string $post_type Post type. Defaults to 'post'
    function bbp_get_all_child_ids( $parent_id = 0, $post_type = 'post' ) { 
    17341736 *
    17351737 * Used most frequently when editing a forum/topic/reply
    17361738 *
    1737  * @since bbPress (r3694)
     1739 * @since 2.1.0 bbPress (r3694)
    17381740 *
    17391741 * @global WP_Query $post
    17401742 * @param string $field Name of the key
    function bbp_get_global_post_field( $field = 'ID', $context = 'edit' ) { 
    17571759 *
    17581760 * To avoid security exploits within the theme.
    17591761 *
    1760  * @since bbPress (r4022)
     1762 * @since 2.1.0 bbPress (r4022)
    17611763 *
    17621764 * @uses do_action() Calls 'bbp_check_referer' on $action.
    17631765 * @param string $action Action nonce
    function bbp_verify_nonce_request( $action = '', $query_arg = '_wpnonce' ) { 
    18011803         *
    18021804         * Useful for configurations like reverse proxying.
    18031805         *
    1804          * @since bbPress (2.5.0)
     1806         * @since 2.2.0 bbPress (r4361)
    18051807         *
    18061808         * @param string $requested_url The requested URL.
    18071809         */
    function bbp_verify_nonce_request( $action = '', $query_arg = '_wpnonce' ) { 
    18181820        /**
    18191821         * Fires at the end of the nonce verification check.
    18201822         *
    1821          * @since bbPress (2.2.0)
     1823         * @since 2.1.0 bbPress (r4023)
    18221824         *
    18231825         * @param string $action Action nonce.
    18241826         * @param bool   $result Boolean result of nonce verification.
    function bbp_verify_nonce_request( $action = '', $query_arg = '_wpnonce' ) { 
    18351837 * responsible for sniffing out the query vars and serving up RSS2 feeds if
    18361838 * the stars align and the user has requested a feed of any bbPress type.
    18371839 *
    1838  * @since bbPress (r3171)
     1840 * @since 2.0.0 bbPress (r3171)
    18391841 *
    18401842 * @param array $query_vars
    18411843 * @return array
    function bbp_request_feed_trap( $query_vars = array() ) { 
    20582060/**
    20592061 * Used to guess if page exists at requested path
    20602062 *
    2061  * @since bbPress (r3304)
     2063 * @since 2.0.0 bbPress (r3304)
    20622064 *
    20632065 * @uses get_option() To see if pretty permalinks are enabled
    20642066 * @uses get_page_by_path() To see if page exists at path
    function bbp_get_page_by_path( $path = '' ) { 
    20882090 *
    20892091 * Used primarily with topics/replies inside hidden forums.
    20902092 *
    2091  * @since bbPress (r3051)
     2093 * @since 2.0.0 bbPress (r3051)
    20922094 *
    20932095 * @global WP_Query $wp_query
    20942096 * @uses WP_Query::set_404()
  • src/includes/common/shortcodes.php

    diff --git src/includes/common/shortcodes.php src/includes/common/shortcodes.php
    index a2d44d7..ce1bcee 100644
    if ( !class_exists( 'BBP_Shortcodes' ) ) : 
    1414/**
    1515 * bbPress Shortcode Class
    1616 *
    17  * @since bbPress (r3031)
     17 * @since 2.0.0 bbPress (r3031)
    1818 */
    1919class BBP_Shortcodes {
    2020
    class BBP_Shortcodes { 
    3030        /**
    3131         * Add the register_shortcodes action to bbp_init
    3232         *
    33          * @since bbPress (r3031)
     33         * @since 2.0.0 bbPress (r3031)
    3434         *
    3535         * @uses setup_globals()
    3636         * @uses add_shortcodes()
    class BBP_Shortcodes { 
    4343        /**
    4444         * Shortcode globals
    4545         *
    46          * @since bbPress (r3143)
     46         * @since 2.0.0 bbPress (r3143)
     47         *
    4748         * @access private
    4849         *
    4950         * @uses apply_filters()
    class BBP_Shortcodes { 
    99100        /**
    100101         * Register the bbPress shortcodes
    101102         *
    102          * @since bbPress (r3031)
     103         * @since 2.0.0 bbPress (r3031)
    103104         *
    104105         * @uses add_shortcode()
    105106         * @uses do_action()
    class BBP_Shortcodes { 
    113114        /**
    114115         * Unset some globals in the $bbp object that hold query related info
    115116         *
    116          * @since bbPress (r3034)
     117         * @since 2.0.0 bbPress (r3034)
    117118         */
    118119        private function unset_globals() {
    119120                $bbp = bbpress();
    class BBP_Shortcodes { 
    144145         * than outputting the HTML at run-time. This allows shortcodes to appear
    145146         * in the correct location in the_content() instead of when it's created.
    146147         *
    147          * @since bbPress (r3079)
     148         * @since 2.0.0 bbPress (r3079)
    148149         *
    149150         * @param string $query_name
    150151         *
    class BBP_Shortcodes { 
    163164        /**
    164165         * Return the contents of the output buffer and flush its contents.
    165166         *
    166          * @since bbPress( r3079)
     167         * @since 2.0.0 bbPress (r3079)
    167168         *
    168169         * @uses BBP_Shortcodes::unset_globals() Cleans up global values
    169170         * @return string Contents of output buffer.
    class BBP_Shortcodes { 
    186187         * Display an index of all visible root level forums in an output buffer
    187188         * and return to ensure that post/page contents are displayed first.
    188189         *
    189          * @since bbPress (r3031)
     190         * @since 2.0.0 bbPress (r3031)
    190191         *
    191192         * @param array $attr
    192193         * @param string $content
    class BBP_Shortcodes { 
    212213         * Display the contents of a specific forum ID in an output buffer
    213214         * and return to ensure that post/page contents are displayed first.
    214215         *
    215          * @since bbPress (r3031)
     216         * @since 2.0.0 bbPress (r3031)
    216217         *
    217218         * @param array $attr
    218219         * @param string $content
    class BBP_Shortcodes { 
    255256         * Display the forum form in an output buffer and return to ensure
    256257         * post/page contents are displayed first.
    257258         *
    258          * @since bbPress (r3566)
     259         * @since 2.1.0 bbPress (r3566)
    259260         *
    260261         * @uses get_template_part()
    261262         */
    class BBP_Shortcodes { 
    277278         * Display an index of all visible root level topics in an output buffer
    278279         * and return to ensure that post/page contents are displayed first.
    279280         *
    280          * @since bbPress (r3031)
     281         * @since 2.0.0 bbPress (r3031)
    281282         *
    282283         * @param array $attr
    283284         * @param string $content
    class BBP_Shortcodes { 
    309310         * Display the contents of a specific topic ID in an output buffer
    310311         * and return to ensure that post/page contents are displayed first.
    311312         *
    312          * @since bbPress (r3031)
     313         * @since 2.0.0 bbPress (r3031)
    313314         *
    314315         * @param array $attr
    315316         * @param string $content
    class BBP_Shortcodes { 
    375376         * forum. This currently has styling issues from not being wrapped in
    376377         * <div id="bbpress-forums"></div> which will need to be sorted out later.
    377378         *
    378          * @since bbPress (r3031)
     379         * @since 2.0.0 bbPress (r3031)
    379380         *
    380381         * @param array $attr
    381382         * @param string $content
    class BBP_Shortcodes { 
    430431         * Display the contents of a specific reply ID in an output buffer
    431432         * and return to ensure that post/page contents are displayed first.
    432433         *
    433          * @since bbPress (r3031)
     434         * @since 2.0.0 bbPress (r3031)
    434435         *
    435436         * @param array $attr
    436437         * @param string $content
    class BBP_Shortcodes { 
    492493         * Display the reply form in an output buffer and return to ensure
    493494         * post/page contents are displayed first.
    494495         *
    495          * @since bbPress (r3031)
     496         * @since 2.0.0 bbPress (r3031)
    496497         *
    497498         * @uses get_template_part()
    498499         */
    class BBP_Shortcodes { 
    514515         * Display a tag cloud of all topic tags in an output buffer and return to
    515516         * ensure that post/page contents are displayed first.
    516517         *
    517          * @since bbPress (r3110)
     518         * @since 2.0.0 bbPress (r3110)
    518519         *
    519520         * @return string
    520521         */
    class BBP_Shortcodes { 
    542543         * Display the contents of a specific topic tag in an output buffer
    543544         * and return to ensure that post/page contents are displayed first.
    544545         *
    545          * @since bbPress (r3110)
     546         * @since 2.0.0 bbPress (r3110)
    546547         *
    547548         * @param array $attr
    548549         * @param string $content
    class BBP_Shortcodes { 
    581582         * Display the contents of a specific topic tag in an output buffer
    582583         * and return to ensure that post/page contents are displayed first.
    583584         *
    584          * @since bbPress (r3346)
     585         * @since 2.0.0 bbPress (r3346)
    585586         *
    586587         * @param array $attr
    587588         * @param string $content
    class BBP_Shortcodes { 
    609610         * Display the contents of a specific view in an output buffer and return to
    610611         * ensure that post/page contents are displayed first.
    611612         *
    612          * @since bbPress (r3031)
     613         * @since 2.0.0 bbPress (r3031)
    613614         *
    614615         * @param array $attr
    615616         * @param string $content
    class BBP_Shortcodes { 
    652653         * Display the search form in an output buffer and return to ensure
    653654         * post/page contents are displayed first.
    654655         *
    655          * @since bbPress (r4585)
     656         * @since 2.3.0 bbPress (r4585)
    656657         *
    657658         * @uses get_template_part()
    658659         */
    class BBP_Shortcodes { 
    677678         * Display the contents of search results in an output buffer and return to
    678679         * ensure that post/page contents are displayed first.
    679680         *
    680          * @since bbPress (r4579)
     681         * @since 2.3.0 bbPress (r4579)
    681682         *
    682683         * @param array $attr
    683684         * @param string $content
    class BBP_Shortcodes { 
    725726        /**
    726727         * Display a login form
    727728         *
    728          * @since bbPress (r3302)
     729         * @since 2.0.0 bbPress (r3302)
    729730         *
    730731         * @return string
    731732         */
    class BBP_Shortcodes { 
    751752        /**
    752753         * Display a register form
    753754         *
    754          * @since bbPress (r3302)
     755         * @since 2.0.0 bbPress (r3302)
    755756         *
    756757         * @return string
    757758         */
    class BBP_Shortcodes { 
    777778        /**
    778779         * Display a lost password form
    779780         *
    780          * @since bbPress (r3302)
     781         * @since 2.0.0 bbPress (r3302)
    781782         *
    782783         * @return string
    783784         */
    class BBP_Shortcodes { 
    805806        /**
    806807         * Display forum statistics
    807808         *
    808          * @since bbPress (r4509)
     809         * @since 2.3.0 bbPress (r4509)
    809810         *
    810811         * @return shring
    811812         */
    class BBP_Shortcodes { 
    827828        /**
    828829         * Display a breadcrumb
    829830         *
    830          * @since bbPress (r3302)
     831         * @since 2.0.0 bbPress (r3302)
    831832         *
    832833         * @return string
    833834         */
    class BBP_Shortcodes { 
    851852        /**
    852853         * Filter the query for the topic index
    853854         *
    854          * @since bbPress (r3637)
     855         * @since 2.1.0 bbPress (r3637)
    855856         *
    856857         * @param array $args
    857858         * @return array
    class BBP_Shortcodes { 
    866867        /**
    867868         * Filter the query for topic tags
    868869         *
    869          * @since bbPress (r3637)
     870         * @since 2.1.0 bbPress (r3637)
    870871         *
    871872         * @param array $args
    872873         * @return array
  • src/includes/common/template.php

    diff --git src/includes/common/template.php src/includes/common/template.php
    index 49486f2..5e938e2 100644
    defined( 'ABSPATH' ) || exit; 
    1818/**
    1919 * Ouput the forum URL
    2020 *
    21  * @since bbPress (r3979)
     21 * @since 2.1.0 bbPress (r3979)
    2222 *
    2323 * @uses bbp_get_forums_url() To get the forums URL
    2424 * @param string $path Additional path with leading slash
    function bbp_forums_url( $path = '/' ) { 
    2929        /**
    3030         * Return the forum URL
    3131         *
    32          * @since bbPress (r3979)
     32         * @since 2.1.0 bbPress (r3979)
    3333         *
    3434         * @uses home_url() To get the home URL
    3535         * @uses bbp_get_root_slug() To get the forum root location
    function bbp_forums_url( $path = '/' ) { 
    4242/**
    4343 * Ouput the forum URL
    4444 *
    45  * @since bbPress (r3979)
     45 * @since 2.1.0 bbPress (r3979)
    4646 *
    4747 * @uses bbp_get_topics_url() To get the topics URL
    4848 * @param string $path Additional path with leading slash
    function bbp_topics_url( $path = '/' ) { 
    5353        /**
    5454         * Return the forum URL
    5555         *
    56          * @since bbPress (r3979)
     56         * @since 2.1.0 bbPress (r3979)
    5757         *
    5858         * @uses home_url() To get the home URL
    5959         * @uses bbp_get_topic_archive_slug() To get the topics archive location
    function bbp_topics_url( $path = '/' ) { 
    6969/**
    7070 * Add our custom head action to wp_head
    7171 *
    72  * @since bbPress (r2464)
     72 * @since 2.0.0 bbPress (r2464)
    7373 *
    7474 * @uses do_action() Calls 'bbp_head'
    7575*/
    function bbp_head() { 
    8080/**
    8181 * Add our custom head action to wp_head
    8282 *
    83  * @since bbPress (r2464)
     83 * @since 2.0.0 bbPress (r2464)
    8484 *
    8585 * @uses do_action() Calls 'bbp_footer'
    8686 */
    function bbp_footer() { 
    9393/**
    9494 * Check if current site is public
    9595 *
    96  * @since bbPress (r3398)
     96 * @since 2.0.0 bbPress (r3398)
    9797 *
    9898 * @param int $site_id
    9999 * @uses get_current_blog_id()
    function bbp_is_site_public( $site_id = 0 ) { 
    117117/**
    118118 * Check if current page is a bbPress forum
    119119 *
    120  * @since bbPress (r2549)
     120 * @since 2.0.0 bbPress (r2549)
    121121 *
    122122 * @param int $post_id Possible post_id to check
    123123 * @uses bbp_get_forum_post_type() To get the forum post type
    function bbp_is_forum( $post_id = 0 ) { 
    139139/**
    140140 * Check if we are viewing a forum archive.
    141141 *
    142  * @since bbPress (r3251)
     142 * @since 2.0.0 bbPress (r3251)
    143143 *
    144144 * @uses is_post_type_archive() To check if we are looking at the forum archive
    145145 * @uses bbp_get_forum_post_type() To get the forum post type ID
    function bbp_is_forum_archive() { 
    163163/**
    164164 * Viewing a single forum
    165165 *
    166  * @since bbPress (r3338)
     166 * @since 2.0.0 bbPress (r3338)
    167167 *
    168168 * @uses is_single()
    169169 * @uses bbp_get_forum_post_type()
    function bbp_is_single_forum() { 
    193193/**
    194194 * Check if current page is a forum edit page
    195195 *
    196  * @since bbPress (r3553)
     196 * @since 2.1.0 bbPress (r3553)
    197197 *
    198198 * @uses WP_Query Checks if WP_Query::bbp_is_forum_edit is true
    199199 * @return bool True if it's the forum edit page, false if not
    function bbp_is_forum_edit() { 
    219219/**
    220220 * Check if current page is a bbPress topic
    221221 *
    222  * @since bbPress (r2549)
     222 * @since 2.0.0 bbPress (r2549)
    223223 *
    224224 * @param int $post_id Possible post_id to check
    225225 * @uses bbp_get_topic_post_type() To get the topic post type
    function bbp_is_topic( $post_id = 0 ) { 
    242242/**
    243243 * Viewing a single topic
    244244 *
    245  * @since bbPress (r3338)
     245 * @since 2.0.0 bbPress (r3338)
    246246 *
    247247 * @uses is_single()
    248248 * @uses bbp_get_topic_post_type()
    function bbp_is_single_topic() { 
    272272/**
    273273 * Check if we are viewing a topic archive.
    274274 *
    275  * @since bbPress (r3251)
     275 * @since 2.0.0 bbPress (r3251)
    276276 *
    277277 * @uses is_post_type_archive() To check if we are looking at the topic archive
    278278 * @uses bbp_get_topic_post_type() To get the topic post type ID
    function bbp_is_topic_archive() { 
    295295/**
    296296 * Check if current page is a topic edit page
    297297 *
    298  * @since bbPress (r2753)
     298 * @since 2.0.0 bbPress (r2753)
    299299 *
    300300 * @uses WP_Query Checks if WP_Query::bbp_is_topic_edit is true
    301301 * @return bool True if it's the topic edit page, false if not
    function bbp_is_topic_edit() { 
    321321/**
    322322 * Check if current page is a topic merge page
    323323 *
    324  * @since bbPress (r2756)
     324 * @since 2.0.0 bbPress (r2756)
    325325 *
    326326 * @uses bbp_is_topic_edit() To check if it's a topic edit page
    327327 * @return bool True if it's the topic merge page, false if not
    function bbp_is_topic_merge() { 
    342342/**
    343343 * Check if current page is a topic split page
    344344 *
    345  * @since bbPress (r2756)
     345 * @since 2.0.0 bbPress (r2756)
    346346 *
    347347 * @uses bbp_is_topic_edit() To check if it's a topic edit page
    348348 * @return bool True if it's the topic split page, false if not
    function bbp_is_topic_split() { 
    363363/**
    364364 * Check if the current page is a topic tag
    365365 *
    366  * @since bbPress (r3311)
     366 * @since 2.0.0 bbPress (r3311)
    367367 *
    368368 * @return bool True if it's a topic tag, false if not
    369369 */
    function bbp_is_topic_tag() { 
    393393/**
    394394 * Check if the current page is editing a topic tag
    395395 *
    396  * @since bbPress (r3346)
     396 * @since 2.0.0 bbPress (r3346)
    397397 *
    398398 * @uses WP_Query Checks if WP_Query::bbp_is_topic_tag_edit is true
    399399 * @return bool True if editing a topic tag, false if not
    function bbp_is_topic_tag_edit() { 
    424424/**
    425425 * Check if the current post type is one of bbPress's
    426426 *
    427  * @since bbPress (r3311)
     427 * @since 2.0.0 bbPress (r3311)
    428428 *
    429429 * @param mixed $the_post Optional. Post object or post ID.
    430430 * @uses get_post_type()
    function bbp_is_custom_post_type( $the_post = false ) { 
    454454/**
    455455 * Check if current page is a bbPress reply
    456456 *
    457  * @since bbPress (r2549)
     457 * @since 2.0.0 bbPress (r2549)
    458458 *
    459459 * @param int $post_id Possible post_id to check
    460460 * @uses bbp_get_reply_post_type() To get the reply post type
    function bbp_is_reply( $post_id = 0 ) { 
    477477/**
    478478 * Check if current page is a reply edit page
    479479 *
    480  * @since bbPress (r2753)
     480 * @since 2.0.0 bbPress (r2753)
    481481 *
    482482 * @uses WP_Query Checks if WP_Query::bbp_is_reply_edit is true
    483483 * @return bool True if it's the reply edit page, false if not
    function bbp_is_reply_move() { 
    522522/**
    523523 * Viewing a single reply
    524524 *
    525  * @since bbPress (r3344)
     525 * @since 2.0.0 bbPress (r3344)
    526526 *
    527527 * @uses is_single()
    528528 * @uses bbp_get_reply_post_type()
    function bbp_is_single_reply() { 
    552552/**
    553553 * Check if current page is a bbPress user's favorites page (profile page)
    554554 *
    555  * @since bbPress (r2652)
     555 * @since 2.0.0 bbPress (r2652)
    556556 *
    557557 * @return bool True if it's the favorites page, false if not
    558558 */
    function bbp_is_favorites() { 
    573573/**
    574574 * Check if current page is a bbPress user's subscriptions page (profile page)
    575575 *
    576  * @since bbPress (r2652)
     576 * @since 2.0.0 bbPress (r2652)
    577577 *
    578578 * @return bool True if it's the subscriptions page, false if not
    579579 */
    function bbp_is_subscriptions() { 
    595595 * Check if current page shows the topics created by a bbPress user (profile
    596596 * page)
    597597 *
    598  * @since bbPress (r2688)
     598 * @since 2.0.0 bbPress (r2688)
    599599 *
    600600 * @return bool True if it's the topics created page, false if not
    601601 */
    function bbp_is_topics_created() { 
    617617 * Check if current page shows the topics created by a bbPress user (profile
    618618 * page)
    619619 *
    620  * @since bbPress (r4225)
     620 * @since 2.2.0 bbPress (r4225)
    621621 *
    622622 * @return bool True if it's the topics created page, false if not
    623623 */
    function bbp_is_replies_created() { 
    638638/**
    639639 * Check if current page is the currently logged in users author page
    640640 *
    641  * @since bbPress (r2688)
     641 * @since 2.0.0 bbPress (r2688)
     642 *
    642643 * @uses bbp_is_single_user() Check query variable
    643644 * @uses is_user_logged_in() Must be logged in to be home
    644645 * @uses bbp_get_displayed_user_id()
    function bbp_is_user_home() { 
    662663/**
    663664 * Check if current page is the currently logged in users author edit page
    664665 *
    665  * @since bbPress (r3918)
     666 * @since 2.1.0 bbPress (r3918)
     667 *
    666668 * @uses bbp_is_single_user_edit() Check query variable
    667669 * @uses is_user_logged_in() Must be logged in to be home
    668670 * @uses bbp_get_displayed_user_id()
    function bbp_is_user_home_edit() { 
    684686/**
    685687 * Check if current page is a user profile page
    686688 *
    687  * @since bbPress (r2688)
     689 * @since 2.0.0 bbPress (r2688)
    688690 *
    689691 * @uses WP_Query Checks if WP_Query::bbp_is_single_user is set to true
    690692 * @return bool True if it's a user's profile page, false if not
    function bbp_is_single_user() { 
    706708/**
    707709 * Check if current page is a user profile edit page
    708710 *
    709  * @since bbPress (r2688)
     711 * @since 2.0.0 bbPress (r2688)
    710712 *
    711713 * @uses WP_Query Checks if WP_Query::bbp_is_single_user_edit is set to true
    712714 * @return bool True if it's a user's profile edit page, false if not
    function bbp_is_single_user_edit() { 
    728730/**
    729731 * Check if current page is a user profile page
    730732 *
    731  * @since bbPress (r4225)
     733 * @since 2.2.0 bbPress (r4225)
    732734 *
    733735 * @uses WP_Query Checks if WP_Query::bbp_is_single_user_profile is set to true
    734736 * @return bool True if it's a user's profile page, false if not
    function bbp_is_single_user_profile() { 
    750752/**
    751753 * Check if current page is a user topics created page
    752754 *
    753  * @since bbPress (r4225)
     755 * @since 2.2.0 bbPress (r4225)
    754756 *
    755757 * @uses WP_Query Checks if WP_Query::bbp_is_single_user_topics is set to true
    756758 * @return bool True if it's a user's topics page, false if not
    function bbp_is_single_user_topics() { 
    772774/**
    773775 * Check if current page is a user replies created page
    774776 *
    775  * @since bbPress (r4225)
     777 * @since 2.2.0 bbPress (r4225)
    776778 *
    777779 * @uses WP_Query Checks if WP_Query::bbp_is_single_user_replies is set to true
    778780 * @return bool True if it's a user's replies page, false if not
    function bbp_is_single_user_replies() { 
    794796/**
    795797 * Check if current page is a view page
    796798 *
    797  * @since bbPress (r2789)
     799 * @since 2.0.0 bbPress (r2789)
    798800 *
    799801 * @global WP_Query $wp_query To check if WP_Query::bbp_is_view is true
    800802 * @uses bbp_is_query_name() To get the query name
    function bbp_is_single_view() { 
    822824/**
    823825 * Check if current page is a search page
    824826 *
    825  * @since bbPress (r4579)
     827 * @since 2.3.0 bbPress (r4579)
    826828 *
    827829 * @global WP_Query $wp_query To check if WP_Query::bbp_is_search is true
    828830 * @uses bbp_is_query_name() To get the query name
    function bbp_is_search() { 
    860862/**
    861863 * Check if current page is a search results page
    862864 *
    863  * @since bbPress (r4919)
     865 * @since 2.4.0 bbPress (r4919)
    864866 *
    865867 * @global WP_Query $wp_query To check if WP_Query::bbp_is_search is true
    866868 * @uses bbp_is_query_name() To get the query name
    function bbp_is_search_results() { 
    898900/**
    899901 * Check if current page is an edit page
    900902 *
    901  * @since bbPress (r3585)
     903 * @since 2.1.0 bbPress (r3585)
    902904 *
    903905 * @uses WP_Query Checks if WP_Query::bbp_is_edit is true
    904906 * @return bool True if it's the edit page, false if not
    function bbp_is_edit() { 
    920922/**
    921923 * Use the above is_() functions to output a body class for each scenario
    922924 *
    923  * @since bbPress (r2926)
     925 * @since 2.0.0 bbPress (r2926)
    924926 *
    925927 * @param array $wp_classes
    926928 * @param array $custom_classes
    function bbp_body_class( $wp_classes, $custom_classes = false ) { 
    10731075/**
    10741076 * Use the above is_() functions to return if in any bbPress page
    10751077 *
    1076  * @since bbPress (r3344)
     1078 * @since 2.0.0 bbPress (r3344)
    10771079 *
    10781080 * @uses bbp_is_single_forum()
    10791081 * @uses bbp_is_single_topic()
    function is_bbpress() { 
    11881190/**
    11891191 * Output the login form action url
    11901192 *
    1191  * @since bbPress (r2815)
     1193 * @since 2.0.0 bbPress (r2815)
    11921194 *
    11931195 * @param array $args This function supports these arguments:
    11941196 *  - action: The action being taken
    function bbp_wp_login_action( $args = array() ) { 
    12041206        /**
    12051207         * Return the login form action url
    12061208         *
    1207          * @since bbPress (r5684)
     1209         * @since 2.6.0 bbPress (r5684)
    12081210         *
    12091211         * @param array $args This function supports these arguments:
    12101212         *  - action: The action being taken
    function bbp_wp_login_action( $args = array() ) { 
    12421244 * The referer link is the current Request URI from the server super global. To
    12431245 * check the field manually, use bbp_get_redirect_to().
    12441246 *
    1245  * @since bbPress (r2815)
     1247 * @since 2.0.0 bbPress (r2815)
    12461248 *
    12471249 * @param string $redirect_to Pass a URL to redirect to
    12481250 *
    function bbp_redirect_to_field( $redirect_to = '' ) { 
    12741276 * Use the $input_type parameter to properly process the value. This
    12751277 * ensures correct sanitization of the value for the receiving input.
    12761278 *
    1277  * @since bbPress (r2815)
     1279 * @since 2.0.0 bbPress (r2815)
    12781280 *
    12791281 * @param string $request Name of $_REQUEST to look for
    12801282 * @param string $input_type Type of input. Default: text. Accepts:
    function bbp_sanitize_val( $request = '', $input_type = 'text' ) { 
    12901292         * Use the $input_type parameter to properly process the value. This
    12911293         * ensures correct sanitization of the value for the receiving input.
    12921294         *
    1293          * @since bbPress (r2815)
     1295         * @since 2.0.0 bbPress (r2815)
    12941296         *
    12951297         * @param string $request Name of $_REQUEST to look for
    12961298         * @param string $input_type Type of input. Default: text. Accepts:
    function bbp_sanitize_val( $request = '', $input_type = 'text' ) { 
    13361338 * template file. Calling this function will automatically increment the global
    13371339 * tab index by default.
    13381340 *
    1339  * @since bbPress (r2810)
    1340  * @deprecated since version 2.6
     1341 * @since 2.0.0 bbPress (r2810)
     1342 *
     1343 * @deprecated 2.6.0 bbPress (r5561)
     1344 *
    13411345 * @link https://bbpress.trac.wordpress.org/attachment/ticket/2714 Trac Ticket
    13421346 * @param int $auto_increment Optional. Default true. Set to false to prevent
    13431347 *                             increment
    function bbp_tab_index( $auto_increment = true ) { 
    13531357         * within a template file. Calling this function will automatically
    13541358         * increment the global tab index by default.
    13551359         *
    1356          * @since bbPress (r2810)
    1357          * @deprecated bbPress (r5560)
     1360         * @since 2.0.0 bbPress (r2810)
     1361         *
     1362         * @deprecated 2.6.0 bbPress (r5561)
     1363         *
    13581364         * @link https://bbpress.trac.wordpress.org/attachment/ticket/2714 Trac Ticket
    13591365         * @uses apply_filters Allows return value to be filtered
    13601366         * @param int $auto_increment Optional. Default true. Set to false to
    function bbp_tab_index( $auto_increment = true ) { 
    13771383 *
    13781384 * Can be used for any post type, but is mostly used for topics and forums.
    13791385 *
    1380  * @since bbPress (r2746)
     1386 * @since 2.0.0 bbPress (r2746)
    13811387 *
    13821388 * @param array $args See {@link bbp_get_dropdown()} for arguments
    13831389 */
    function bbp_dropdown( $args = array() ) { 
    13881394         * Return a select box allowing to pick which forum/topic a new
    13891395         * topic/reply belongs in.
    13901396         *
    1391          * @since bbPress (r2746)
     1397         * @since 2.0.0 bbPress (r2746)
    13921398         *
    13931399         * @param array $args The function supports these args:
    13941400         *  - post_type: Post type, defaults to bbp_get_forum_post_type() (bbp_forum)
    function bbp_dropdown( $args = array() ) { 
    15611567/**
    15621568 * Output the required hidden fields when creating/editing a forum
    15631569 *
    1564  * @since bbPress (r3553)
     1570 * @since 2.1.0 bbPress (r3553)
    15651571 *
    15661572 * @uses bbp_is_forum_edit() To check if it's the forum edit page
    15671573 * @uses wp_nonce_field() To generate hidden nonce fields
    function bbp_forum_form_fields() { 
    16041610/**
    16051611 * Output the required hidden fields when creating/editing a topic
    16061612 *
    1607  * @since bbPress (r2753)
     1613 * @since 2.0.0 bbPress (r2753)
    16081614 *
    16091615 * @uses bbp_is_topic_edit() To check if it's the topic edit page
    16101616 * @uses wp_nonce_field() To generate hidden nonce fields
    function bbp_topic_form_fields() { 
    16471653/**
    16481654 * Output the required hidden fields when creating/editing a reply
    16491655 *
    1650  * @since bbPress (r2753)
     1656 * @since 2.0.0 bbPress (r2753)
    16511657 *
    16521658 * @uses bbp_is_reply_edit() To check if it's the reply edit page
    16531659 * @uses wp_nonce_field() To generate hidden nonce fields
    function bbp_reply_form_fields() { 
    16901696/**
    16911697 * Output the required hidden fields when editing a user
    16921698 *
    1693  * @since bbPress (r2690)
     1699 * @since 2.0.0 bbPress (r2690)
    16941700 *
    16951701 * @uses bbp_displayed_user_id() To output the displayed user id
    16961702 * @uses wp_nonce_field() To generate a hidden referer field
    function bbp_edit_user_form_fields() { 
    17091715 *
    17101716 * Output the required hidden fields when merging a topic
    17111717 *
    1712  * @since bbPress (r2756)
     1718 * @since 2.0.0 bbPress (r2756)
    17131719 *
    17141720 * @uses wp_nonce_field() To generate a hidden nonce field
    17151721 * @uses bbp_topic_id() To output the topic id
    function bbp_merge_topic_form_fields() { 
    17281734 *
    17291735 * Output the required hidden fields when splitting a topic
    17301736 *
    1731  * @since bbPress (r2756)
     1737 * @since 2.0.0 bbPress (r2756)
    17321738 *
    17331739 * @uses wp_nonce_field() To generate a hidden nonce field
    17341740 */
    function bbp_move_reply_form_fields() { 
    17601766/**
    17611767 * Output a textarea or TinyMCE if enabled
    17621768 *
    1763  * @since bbPress (r3586)
     1769 * @since 2.1.0 bbPress (r3586)
    17641770 *
    17651771 * @param array $args
    17661772 * @uses bbp_get_the_content() To return the content to output
    function bbp_the_content( $args = array() ) { 
    17711777        /**
    17721778         * Return a textarea or TinyMCE if enabled
    17731779         *
    1774          * @since bbPress (r3586)
     1780         * @since 2.1.0 bbPress (r3586)
    17751781         *
    17761782         * @param array $args
    17771783         *
    function bbp_the_content( $args = array() ) { 
    18781884/**
    18791885 * Edit TinyMCE plugins to match core behaviour
    18801886 *
    1881  * @since bbPress (r4574)
     1887 * @since 2.3.0 bbPress (r4574)
    18821888 *
    18831889 * @param array $plugins
    18841890 * @see tiny_mce_plugins, teeny_mce_plugins
    function bbp_get_tiny_mce_plugins( $plugins = array() ) { 
    19031909/**
    19041910 * Edit TeenyMCE buttons to match allowedtags
    19051911 *
    1906  * @since bbPress (r4605)
     1912 * @since 2.3.0 bbPress (r4605)
    19071913 *
    19081914 * @param array $buttons
    19091915 * @see teeny_mce_buttons
    function bbp_get_teeny_mce_buttons( $buttons = array() ) { 
    19281934/**
    19291935 * Edit TinyMCE quicktags buttons to match allowedtags
    19301936 *
    1931  * @since bbPress (r4606)
     1937 * @since 2.3.0 bbPress (r4606)
    19321938 *
    19331939 * @param array $settings
    19341940 * @see quicktags_settings
    function bbp_get_quicktags_settings( $settings = array() ) { 
    19571963/**
    19581964 * Output the view id
    19591965 *
    1960  * @since bbPress (r2789)
     1966 * @since 2.0.0 bbPress (r2789)
    19611967 *
    19621968 * @param string $view Optional. View id
    19631969 * @uses bbp_get_view_id() To get the view id
    function bbp_view_id( $view = '' ) { 
    19711977         *
    19721978         * Use view id if supplied, otherwise bbp_get_view_rewrite_id() query var.
    19731979         *
    1974          * @since bbPress (r2789)
     1980         * @since 2.0.0 bbPress (r2789)
    19751981         *
    19761982         * @param string $view Optional. View id.
    19771983         * @uses sanitize_title() To sanitize the view id
    function bbp_view_id( $view = '' ) { 
    20002006/**
    20012007 * Output the view name aka title
    20022008 *
    2003  * @since bbPress (r2789)
     2009 * @since 2.0.0 bbPress (r2789)
    20042010 *
    20052011 * @param string $view Optional. View id
    20062012 * @uses bbp_get_view_title() To get the view title
    function bbp_view_title( $view = '' ) { 
    20152021         * If a view id is supplied, that is used. Otherwise the bbp_view
    20162022         * query var is checked for.
    20172023         *
    2018          * @since bbPress (r2789)
     2024         * @since 2.0.0 bbPress (r2789)
    20192025         *
    20202026         * @param string $view Optional. View id
    20212027         * @uses bbp_get_view_id() To get the view id
    function bbp_view_title( $view = '' ) { 
    20352041/**
    20362042 * Output the view url
    20372043 *
    2038  * @since bbPress (r2789)
     2044 * @since 2.0.0 bbPress (r2789)
    20392045 *
    20402046 * @param string $view Optional. View id
    20412047 * @uses bbp_get_view_url() To get the view url
    function bbp_view_url( $view = false ) { 
    20462052        /**
    20472053         * Return the view url
    20482054         *
    2049          * @since bbPress (r2789)
     2055         * @since 2.0.0 bbPress (r2789)
    20502056         *
    20512057         * @param string $view Optional. View id
    20522058         * @uses sanitize_title() To sanitize the view id
    function bbp_view_url( $view = false ) { 
    20842090/**
    20852091 * Check the passed parameter against the current _bbp_query_name
    20862092 *
    2087  * @since bbPress (r2980)
     2093 * @since 2.0.0 bbPress (r2980)
    20882094 *
    20892095 * @uses bbp_get_query_name() Get the query var '_bbp_query_name'
    20902096 * @return bool True if match, false if not
    function bbp_is_query_name( $name = '' ) { 
    20962102/**
    20972103 * Get the '_bbp_query_name' setting
    20982104 *
    2099  * @since bbPress (r2695)
     2105 * @since 2.0.0 bbPress (r2695)
    21002106 *
    21012107 * @uses get_query_var() To get the query var '_bbp_query_name'
    21022108 * @return string To return the query var value
    function bbp_get_query_name() { 
    21082114/**
    21092115 * Set the '_bbp_query_name' setting to $name
    21102116 *
    2111  * @since bbPress (r2692)
     2117 * @since 2.0.0 bbPress (r2692)
    21122118 *
    21132119 * @param string $name What to set the query var to
    21142120 * @uses set_query_var() To set the query var '_bbp_query_name'
    function bbp_set_query_name( $name = '' ) { 
    21202126/**
    21212127 * Used to clear the '_bbp_query_name' setting
    21222128 *
    2123  * @since bbPress (r2692)
     2129 * @since 2.0.0 bbPress (r2692)
    21242130 *
    21252131 * @uses bbp_set_query_name() To set the query var '_bbp_query_name' value to ''
    21262132 */
    function bbp_reset_query_name() { 
    21332139/**
    21342140 * Output the page title as a breadcrumb
    21352141 *
    2136  * @since bbPress (r2589)
     2142 * @since 2.0.0 bbPress (r2589)
    21372143 *
    21382144 * @param string $sep Separator. Defaults to '&larr;'
    21392145 * @param bool $current_page Include the current item
    function bbp_title_breadcrumb( $args = array() ) { 
    21472153/**
    21482154 * Output a breadcrumb
    21492155 *
    2150  * @since bbPress (r2589)
     2156 * @since 2.0.0 bbPress (r2589)
    21512157 *
    21522158 * @param string $sep Separator. Defaults to '&larr;'
    21532159 * @param bool $current_page Include the current item
    function bbp_breadcrumb( $args = array() ) { 
    21602166        /**
    21612167         * Return a breadcrumb ( forum -> topic -> reply )
    21622168         *
    2163          * @since bbPress (r2589)
     2169         * @since 2.0.0 bbPress (r2589)
    21642170         *
    21652171         * @param string $sep Separator. Defaults to '&larr;'
    21662172         * @param bool $current_page Include the current item
    function bbp_breadcrumb( $args = array() ) { 
    24482454 * This is useful for displaying in the post area, which elements and
    24492455 * attributes are supported. As well as any plugins which want to display it.
    24502456 *
    2451  * @since bbPress (r2780)
     2457 * @since 2.0.0 bbPress (r2780)
    24522458 *
    24532459 * @uses bbp_get_allowed_tags()
    24542460 */
    function bbp_allowed_tags() { 
    24612467         * This is useful for displaying in the post area, which elements and
    24622468         * attributes are supported. As well as any plugins which want to display it.
    24632469         *
    2464          * @since bbPress (r2780)
     2470         * @since 2.0.0 bbPress (r2780)
    24652471         *
    24662472         * @uses bbp_kses_allowed_tags() To get the allowed tags
    24672473         * @uses apply_filters() Calls 'bbp_allowed_tags' with the tags
    function bbp_allowed_tags() { 
    24892495/**
    24902496 * Display possible errors & messages inside a template file
    24912497 *
    2492  * @since bbPress (r2688)
     2498 * @since 2.0.0 bbPress (r2688)
    24932499 *
    24942500 * @uses WP_Error bbPress::errors::get_error_codes() To get the error codes
    24952501 * @uses WP_Error bbPress::errors::get_error_data() To get the error data
    function bbp_template_notices() { 
    25542560/**
    25552561 * Output the logout link
    25562562 *
    2557  * @since bbPress (r2827)
     2563 * @since 2.0.0 bbPress (r2827)
    25582564 *
    25592565 * @param string $redirect_to Redirect to url
    25602566 * @uses bbp_get_logout_link() To get the logout link
    function bbp_logout_link( $redirect_to = '' ) { 
    25652571        /**
    25662572         * Return the logout link
    25672573         *
    2568          * @since bbPress (r2827)
     2574         * @since 2.0.0 bbPress (r2827)
    25692575         *
    25702576         * @param string $redirect_to Redirect to url
    25712577         * @uses wp_logout_url() To get the logout url
    function bbp_logout_link( $redirect_to = '' ) { 
    25822588/**
    25832589 * Custom page title for bbPress pages
    25842590 *
    2585  * @since bbPress (r2788)
     2591 * @since 2.0.0 bbPress (r2788)
    25862592 *
    25872593 * @param string $title Optional. The title (not used).
    25882594 * @param string $sep Optional, default is '&raquo;'. How to separate the
  • src/includes/common/widgets.php

    diff --git src/includes/common/widgets.php src/includes/common/widgets.php
    index b3e0546..c644885 100644
    defined( 'ABSPATH' ) || exit; 
    1717 *
    1818 * Adds a widget which displays the login form
    1919 *
    20  * @since bbPress (r2827)
     20 * @since 2.0.0 bbPress (r2827)
    2121 *
    2222 * @uses WP_Widget
    2323 */
    class BBP_Login_Widget extends WP_Widget { 
    2828         *
    2929         * Registers the login widget
    3030         *
    31          * @since bbPress (r2827)
     31         * @since 2.0.0 bbPress (r2827)
    3232         *
    3333         * @uses apply_filters() Calls 'bbp_login_widget_options' with the
    3434         *                        widget options
    class BBP_Login_Widget extends WP_Widget { 
    4545        /**
    4646         * Register the widget
    4747         *
    48          * @since bbPress (r3389)
     48         * @since 2.0.0 bbPress (r3389)
    4949         *
    5050         * @uses register_widget()
    5151         */
    class BBP_Login_Widget extends WP_Widget { 
    5656        /**
    5757         * Displays the output, the login form
    5858         *
    59          * @since bbPress (r2827)
     59         * @since 2.0.0 bbPress (r2827)
    6060         *
    6161         * @param array $args Arguments
    6262         * @param array $instance Instance
    class BBP_Login_Widget extends WP_Widget { 
    153153        /**
    154154         * Update the login widget options
    155155         *
    156          * @since bbPress (r2827)
     156         * @since 2.0.0 bbPress (r2827)
    157157         *
    158158         * @param array $new_instance The new instance options
    159159         * @param array $old_instance The old instance options
    class BBP_Login_Widget extends WP_Widget { 
    170170        /**
    171171         * Output the login widget options form
    172172         *
    173          * @since bbPress (r2827)
     173         * @since 2.0.0 bbPress (r2827)
    174174         *
    175175         * @param $instance Instance
    176176         * @uses BBP_Login_Widget::get_field_id() To output the field id
    class BBP_Login_Widget extends WP_Widget { 
    202202        /**
    203203         * Merge the widget settings into defaults array.
    204204         *
    205          * @since bbPress (r4802)
     205         * @since 2.3.0 bbPress (r4802)
    206206         *
    207207         * @param $instance Instance
    208208         * @uses bbp_parse_args() To merge widget settings into defaults
    class BBP_Login_Widget extends WP_Widget { 
    221221 *
    222222 * Adds a widget which displays the view list
    223223 *
    224  * @since bbPress (r3020)
     224 * @since 2.0.0 bbPress (r3020)
    225225 *
    226226 * @uses WP_Widget
    227227 */
    class BBP_Views_Widget extends WP_Widget { 
    232232         *
    233233         * Registers the view widget
    234234         *
    235          * @since bbPress (r3020)
     235         * @since 2.0.0 bbPress (r3020)
    236236         *
    237237         * @uses apply_filters() Calls 'bbp_views_widget_options' with the
    238238         *                        widget options
    class BBP_Views_Widget extends WP_Widget { 
    249249        /**
    250250         * Register the widget
    251251         *
    252          * @since bbPress (r3389)
     252         * @since 2.0.0 bbPress (r3389)
    253253         *
    254254         * @uses register_widget()
    255255         */
    class BBP_Views_Widget extends WP_Widget { 
    260260        /**
    261261         * Displays the output, the view list
    262262         *
    263          * @since bbPress (r3020)
     263         * @since 2.0.0 bbPress (r3020)
    264264         *
    265265         * @param array $args Arguments
    266266         * @param array $instance Instance
    class BBP_Views_Widget extends WP_Widget { 
    307307        /**
    308308         * Update the view widget options
    309309         *
    310          * @since bbPress (r3020)
     310         * @since 2.0.0 bbPress (r3020)
    311311         *
    312312         * @param array $new_instance The new instance options
    313313         * @param array $old_instance The old instance options
    class BBP_Views_Widget extends WP_Widget { 
    322322        /**
    323323         * Output the view widget options form
    324324         *
    325          * @since bbPress (r3020)
     325         * @since 2.0.0 bbPress (r3020)
    326326         *
    327327         * @param $instance Instance
    328328         * @uses BBP_Views_Widget::get_field_id() To output the field id
    class BBP_Views_Widget extends WP_Widget { 
    345345        /**
    346346         * Merge the widget settings into defaults array.
    347347         *
    348          * @since bbPress (r4802)
     348         * @since 2.3.0 bbPress (r4802)
    349349         *
    350350         * @param $instance Instance
    351351         * @uses bbp_parse_args() To merge widget settings into defaults
    class BBP_Views_Widget extends WP_Widget { 
    362362 *
    363363 * Adds a widget which displays the forum search form
    364364 *
    365  * @since bbPress (r4579)
     365 * @since 2.3.0 bbPress (r4579)
    366366 *
    367367 * @uses WP_Widget
    368368 */
    class BBP_Search_Widget extends WP_Widget { 
    373373         *
    374374         * Registers the search widget
    375375         *
    376          * @since bbPress (r4579)
     376         * @since 2.3.0 bbPress (r4579)
    377377         *
    378378         * @uses apply_filters() Calls 'bbp_search_widget_options' with the
    379379         *                        widget options
    class BBP_Search_Widget extends WP_Widget { 
    390390        /**
    391391         * Register the widget
    392392         *
    393          * @since bbPress (r4579)
     393         * @since 2.3.0 bbPress (r4579)
    394394         *
    395395         * @uses register_widget()
    396396         */
    class BBP_Search_Widget extends WP_Widget { 
    401401        /**
    402402         * Displays the output, the search form
    403403         *
    404          * @since bbPress (r4579)
     404         * @since 2.3.0 bbPress (r4579)
    405405         *
    406406         * @uses apply_filters() Calls 'bbp_search_widget_title' with the title
    407407         * @uses get_template_part() To get the search form
    class BBP_Search_Widget extends WP_Widget { 
    436436        /**
    437437         * Update the widget options
    438438         *
    439          * @since bbPress (r4579)
     439         * @since 2.3.0 bbPress (r4579)
    440440         *
    441441         * @param array $new_instance The new instance options
    442442         * @param array $old_instance The old instance options
    class BBP_Search_Widget extends WP_Widget { 
    451451        /**
    452452         * Output the search widget options form
    453453         *
    454          * @since bbPress (r4579)
     454         * @since 2.3.0 bbPress (r4579)
    455455         *
    456456         * @param $instance Instance
    457457         * @uses BBP_Search_Widget::get_field_id() To output the field id
    class BBP_Search_Widget extends WP_Widget { 
    474474        /**
    475475         * Merge the widget settings into defaults array.
    476476         *
    477          * @since bbPress (r4802)
     477         * @since 2.3.0 bbPress (r4802)
    478478         *
    479479         * @param $instance Instance
    480480         * @uses bbp_parse_args() To merge widget settings into defaults
    class BBP_Search_Widget extends WP_Widget { 
    491491 *
    492492 * Adds a widget which displays the forum list
    493493 *
    494  * @since bbPress (r2653)
     494 * @since 2.0.0 bbPress (r2653)
    495495 *
    496496 * @uses WP_Widget
    497497 */
    class BBP_Forums_Widget extends WP_Widget { 
    502502         *
    503503         * Registers the forum widget
    504504         *
    505          * @since bbPress (r2653)
     505         * @since 2.0.0 bbPress (r2653)
    506506         *
    507507         * @uses apply_filters() Calls 'bbp_forums_widget_options' with the
    508508         *                        widget options
    class BBP_Forums_Widget extends WP_Widget { 
    519519        /**
    520520         * Register the widget
    521521         *
    522          * @since bbPress (r3389)
     522         * @since 2.0.0 bbPress (r3389)
    523523         *
    524524         * @uses register_widget()
    525525         */
    class BBP_Forums_Widget extends WP_Widget { 
    530530        /**
    531531         * Displays the output, the forum list
    532532         *
    533          * @since bbPress (r2653)
     533         * @since 2.0.0 bbPress (r2653)
    534534         *
    535535         * @param array $args Arguments
    536536         * @param array $instance Instance
    class BBP_Forums_Widget extends WP_Widget { 
    603603        /**
    604604         * Update the forum widget options
    605605         *
    606          * @since bbPress (r2653)
     606         * @since 2.0.0 bbPress (r2653)
    607607         *
    608608         * @param array $new_instance The new instance options
    609609         * @param array $old_instance The old instance options
    class BBP_Forums_Widget extends WP_Widget { 
    624624        /**
    625625         * Output the forum widget options form
    626626         *
    627          * @since bbPress (r2653)
     627         * @since 2.0.0 bbPress (r2653)
    628628         *
    629629         * @param $instance Instance
    630630         * @uses BBP_Forums_Widget::get_field_id() To output the field id
    class BBP_Forums_Widget extends WP_Widget { 
    657657        /**
    658658         * Merge the widget settings into defaults array.
    659659         *
    660          * @since bbPress (r4802)
     660         * @since 2.3.0 bbPress (r4802)
    661661         *
    662662         * @param $instance Instance
    663663         * @uses bbp_parse_args() To merge widget settings into defaults
    class BBP_Forums_Widget extends WP_Widget { 
    675675 *
    676676 * Adds a widget which displays the topic list
    677677 *
    678  * @since bbPress (r2653)
     678 * @since 2.0.0 bbPress (r2653)
    679679 *
    680680 * @uses WP_Widget
    681681 */
    class BBP_Topics_Widget extends WP_Widget { 
    686686         *
    687687         * Registers the topic widget
    688688         *
    689          * @since bbPress (r2653)
     689         * @since 2.0.0 bbPress (r2653)
    690690         *
    691691         * @uses apply_filters() Calls 'bbp_topics_widget_options' with the
    692692         *                        widget options
    class BBP_Topics_Widget extends WP_Widget { 
    703703        /**
    704704         * Register the widget
    705705         *
    706          * @since bbPress (r3389)
     706         * @since 2.0.0 bbPress (r3389)
    707707         *
    708708         * @uses register_widget()
    709709         */
    class BBP_Topics_Widget extends WP_Widget { 
    714714        /**
    715715         * Displays the output, the topic list
    716716         *
    717          * @since bbPress (r2653)
     717         * @since 2.0.0 bbPress (r2653)
    718718         *
    719719         * @param array $args
    720720         * @param array $instance
    class BBP_Topics_Widget extends WP_Widget { 
    844844        /**
    845845         * Update the topic widget options
    846846         *
    847          * @since bbPress (r2653)
     847         * @since 2.0.0 bbPress (r2653)
    848848         *
    849849         * @param array $new_instance The new instance options
    850850         * @param array $old_instance The old instance options
    class BBP_Topics_Widget extends WP_Widget { 
    869869        /**
    870870         * Output the topic widget options form
    871871         *
    872          * @since bbPress (r2653)
     872         * @since 2.0.0 bbPress (r2653)
    873873         *
    874874         * @param $instance Instance
    875875         * @uses BBP_Topics_Widget::get_field_id() To output the field id
    class BBP_Topics_Widget extends WP_Widget { 
    911911        /**
    912912         * Merge the widget settings into defaults array.
    913913         *
    914          * @since bbPress (r4802)
     914         * @since 2.3.0 bbPress (r4802)
    915915         *
    916916         * @param $instance Instance
    917917         * @uses bbp_parse_args() To merge widget options into defaults
    class BBP_Topics_Widget extends WP_Widget { 
    933933 *
    934934 * Adds a widget which displays the forum statistics
    935935 *
    936  * @since bbPress (r4509)
     936 * @since 2.3.0 bbPress (r4509)
    937937 *
    938938 * @uses WP_Widget
    939939 */
    class BBP_Stats_Widget extends WP_Widget { 
    944944         *
    945945         * Registers the stats widget
    946946         *
    947          * @since bbPress (r4509)
     947         * @since 2.3.0 bbPress (r4509)
    948948         *
    949949         * @uses  apply_filters() Calls 'bbp_stats_widget_options' with the
    950950         *        widget options
    class BBP_Stats_Widget extends WP_Widget { 
    961961        /**
    962962         * Register the widget
    963963         *
    964          * @since bbPress (r4509)
     964         * @since 2.3.0 bbPress (r4509)
    965965         *
    966966         * @uses register_widget()
    967967         */
    class BBP_Stats_Widget extends WP_Widget { 
    972972        /**
    973973         * Displays the output, the statistics
    974974         *
    975          * @since bbPress (r4509)
     975         * @since 2.3.0 bbPress (r4509)
    976976         *
    977977         * @param array $args     Arguments
    978978         * @param array $instance Instance
    class BBP_Stats_Widget extends WP_Widget { 
    10051005        /**
    10061006         * Update the stats widget options
    10071007         *
    1008          * @since bbPress (r4509)
     1008         * @since 2.3.0 bbPress (r4509)
    10091009         *
    10101010         * @param array $new_instance The new instance options
    10111011         * @param array $old_instance The old instance options
    class BBP_Stats_Widget extends WP_Widget { 
    10221022        /**
    10231023         * Output the stats widget options form
    10241024         *
    1025          * @since bbPress (r4509)
     1025         * @since 2.3.0 bbPress (r4509)
    10261026         *
    10271027         * @param $instance
    10281028         *
    class BBP_Stats_Widget extends WP_Widget { 
    10451045        /**
    10461046         * Merge the widget settings into defaults array.
    10471047         *
    1048          * @since bbPress (r4802)
     1048         * @since 2.3.0 bbPress (r4802)
    10491049         *
    10501050         * @param $instance Instance
    10511051         * @uses bbp_parse_args() To merge widget settings into defaults
    class BBP_Stats_Widget extends WP_Widget { 
    10631063 *
    10641064 * Adds a widget which displays the replies list
    10651065 *
    1066  * @since bbPress (r2653)
     1066 * @since 2.0.0 bbPress (r2653)
    10671067 *
    10681068 * @uses WP_Widget
    10691069 */
    class BBP_Replies_Widget extends WP_Widget { 
    10741074         *
    10751075         * Registers the replies widget
    10761076         *
    1077          * @since bbPress (r2653)
     1077         * @since 2.0.0 bbPress (r2653)
    10781078         *
    10791079         * @uses apply_filters() Calls 'bbp_replies_widget_options' with the
    10801080         *                        widget options
    class BBP_Replies_Widget extends WP_Widget { 
    10911091        /**
    10921092         * Register the widget
    10931093         *
    1094          * @since bbPress (r3389)
     1094         * @since 2.0.0 bbPress (r3389)
    10951095         *
    10961096         * @uses register_widget()
    10971097         */
    class BBP_Replies_Widget extends WP_Widget { 
    11021102        /**
    11031103         * Displays the output, the replies list
    11041104         *
    1105          * @since bbPress (r2653)
     1105         * @since 2.0.0 bbPress (r2653)
    11061106         *
    11071107         * @param array $args
    11081108         * @param array $instance
    class BBP_Replies_Widget extends WP_Widget { 
    12091209        /**
    12101210         * Update the reply widget options
    12111211         *
    1212          * @since bbPress (r2653)
     1212         * @since 2.0.0 bbPress (r2653)
    12131213         *
    12141214         * @param array $new_instance The new instance options
    12151215         * @param array $old_instance The old instance options
    class BBP_Replies_Widget extends WP_Widget { 
    12271227        /**
    12281228         * Output the reply widget options form
    12291229         *
    1230          * @since bbPress (r2653)
     1230         * @since 2.0.0 bbPress (r2653)
    12311231         *
    12321232         * @param $instance Instance
    12331233         * @uses BBP_Replies_Widget::get_field_id() To output the field id
    class BBP_Replies_Widget extends WP_Widget { 
    12491249        /**
    12501250         * Merge the widget settings into defaults array.
    12511251         *
    1252          * @since bbPress (r4802)
     1252         * @since 2.3.0 bbPress (r4802)
    12531253         *
    12541254         * @param $instance Instance
    12551255         * @uses bbp_parse_args() To merge widget settings into defaults
  • src/includes/core/abstraction.php

    diff --git src/includes/core/abstraction.php src/includes/core/abstraction.php
    index 4d233fc..4ec2b99 100644
    defined( 'ABSPATH' ) || exit; 
    1919/**
    2020 * Lookup and return a global variable
    2121 *
    22  * @since bbPress (r5814)
     22 * @since 2.5.8 bbPress (r5814)
    2323 *
    2424 * @param  string  $name     Name of global variable
    2525 * @param  string  $type     Type of variable to check with `is_a()`
    function bbp_get_global_object( $name = '', $type = '', $default = null ) { 
    5757 * class. bbPress supports WordPress's `$wpdb` global by default, and can be
    5858 * filtered to support other configurations if needed.
    5959 *
    60  * @since bbPress (r5814)
     60 * @since 2.5.8 bbPress (r5814)
    6161 *
    6262 * @return object
    6363 */
    function bbp_db() { 
    7272 * rules class. bbPress supports WordPress's `$wp_rewrite` by default, but can
    7373 * be filtered to support other configurations if needed.
    7474 *
    75  * @since bbPress (r5814)
     75 * @since 2.5.8 bbPress (r5814)
    7676 *
    7777 * @return object
    7878 */
    function bbp_rewrite() { 
    8686/**
    8787 * Get the root URL
    8888 *
    89  * @since bbPress (r5814)
     89 * @since 2.5.8 bbPress (r5814)
    9090 *
    9191 * @return string
    9292 */
    function bbp_get_root_url() { 
    9797/**
    9898 * Get the slug used for paginated requests
    9999 *
    100  * @since bbPress (r4926)
     100 * @since 2.4.0 bbPress (r4926)
    101101 *
    102102 * @return string
    103103 */
    function bbp_get_paged_slug() { 
    108108/**
    109109 * Is the environment using pretty URLs?
    110110 *
    111  * @since bbPress (r5814)
     111 * @since 2.5.8 bbPress (r5814)
    112112 *
    113113 * @global object $wp_rewrite The WP_Rewrite object
    114114 *
  • src/includes/core/cache.php

    diff --git src/includes/core/cache.php src/includes/core/cache.php
    index 4734d13..3f4d6c6 100644
    defined( 'ABSPATH' ) || exit; 
    2525 * child posts whenever a parent post is modified. This can cause thousands of
    2626 * cache invalidations to occur on a single edit, which is no good for anyone.
    2727 *
    28  * @since bbPress (r4011)
     28 * @since 2.1.0 bbPress (r4011)
    2929 *
    3030 * @package bbPress
    3131 * @subpackage Cache
    class BBP_Skip_Children { 
    4747        /**
    4848         * Hook into the 'pre_post_update' action.
    4949         *
    50          * @since bbPress (r4011)
     50         * @since 2.1.0 bbPress (r4011)
    5151         */
    5252        public function __construct() {
    5353                add_action( 'pre_post_update', array( $this, 'pre_post_update' ) );
    class BBP_Skip_Children { 
    6060         * post ID to be used later, and adds an action to 'clean_post_cache' that
    6161         * prevents child post caches from being cleared.
    6262         *
    63          * @since bbPress (r4011)
     63         * @since 2.1.0 bbPress (r4011)
    6464         *
    6565         * @param int $post_id The post ID being updated
    6666         * @return If invalid post data
    class BBP_Skip_Children { 
    8484         * Skip cache invalidation of related posts if the post ID being invalidated
    8585         * is not the one that was just updated.
    8686         *
    87          * @since bbPress (r4011)
     87         * @since 2.1.0 bbPress (r4011)
    8888         *
    8989         * @param int $post_id The post ID of the cache being invalidated
    9090         * @return If invalid post data
    class BBP_Skip_Children { 
    112112        /**
    113113         * Restore the cache invalidation to its previous value.
    114114         *
    115          * @since bbPress (r4011)
     115         * @since 2.1.0 bbPress (r4011)
     116         *
    116117         * @uses wp_suspend_cache_invalidation()
    117118         */
    118119        public function restore_cache_invalidation() {
    new BBP_Skip_Children(); 
    128129 *
    129130 * Will call to clean the term object cache associated with the post ID.
    130131 *
    131  * @since bbPress (r4040)
     132 * @since 2.1.0 bbPress (r4040)
    132133 *
    133134 * @uses do_action() Calls 'bbp_clean_post_cache' on $id
    134135 * @param object|int $_post The post object or ID to remove from the cache
  • src/includes/core/capabilities.php

    diff --git src/includes/core/capabilities.php src/includes/core/capabilities.php
    index 54e698f..a04e036 100644
    defined( 'ABSPATH' ) || exit; 
    1919/**
    2020 * Returns an array of capabilities based on the role that is being requested.
    2121 *
    22  * @since bbPress (r2994)
     22 * @since 2.0.0 bbPress (r2994)
    2323 *
    2424 * @todo Map all of these and deprecate
    2525 *
    function bbp_get_caps_for_role( $role = '' ) { 
    211211/**
    212212 * Adds capabilities to WordPress user roles.
    213213 *
    214  * @since bbPress (r2608)
     214 * @since 2.0.0 bbPress (r2608)
    215215 */
    216216function bbp_add_caps() {
    217217
    function bbp_add_caps() { 
    228228/**
    229229 * Removes capabilities from WordPress user roles.
    230230 *
    231  * @since bbPress (r2608)
     231 * @since 2.0.0 bbPress (r2608)
    232232 */
    233233function bbp_remove_caps() {
    234234
    function bbp_remove_caps() { 
    245245/**
    246246 * Get the `$wp_roles` global without needing to declare it everywhere
    247247 *
    248  * @since bbPress (r4293)
     248 * @since 2.2.0 bbPress (r4293)
    249249 *
    250250 * @return WP_Roles
    251251 */
    function bbp_get_wp_roles() { 
    265265/**
    266266 * Get the available roles minus bbPress's dynamic roles
    267267 *
    268  * @since bbPress (r5064)
     268 * @since 2.4.0 bbPress (r5064)
    269269 *
    270270 * @uses bbp_get_wp_roles() To load and get the $wp_roles global
    271271 * @return array
    function bbp_get_blog_roles() { 
    292292 *
    293293 * We do this to avoid adding these values to the database.
    294294 *
    295  * @since bbPress (r4290)
     295 * @since 2.2.0 bbPress (r4290)
    296296 *
    297297 * @uses bbp_get_wp_roles() To load and get the $wp_roles global
    298298 * @uses bbp_get_dynamic_roles() To get and add bbPress's roles to $wp_roles
    function bbp_add_forums_roles() { 
    313313/**
    314314 * Helper function to add filter to option_wp_user_roles
    315315 *
    316  * @since bbPress (r4363)
     316 * @since 2.2.0 bbPress (r4363)
    317317 *
    318318 * @see _bbp_reinit_dynamic_roles()
    319319 */
    function bbp_filter_user_roles_option() { 
    339339 * @see restore_current_blog()
    340340 * @see WP_Roles::_init()
    341341 *
    342  * @since bbPress (r4363)
     342 * @since 2.2.0 bbPress (r4363)
    343343 *
    344344 * @internal Used by bbPress to reinitialize dynamic roles on blog switch
    345345 *
    function _bbp_reinit_dynamic_roles( $roles = array() ) { 
    366366 * only editors or authors. This filter allows admins to delegate
    367367 * user management.
    368368 *
    369  * @since bbPress (r4284)
     369 * @since 2.2.0 bbPress (r4284)
    370370 *
    371371 * @return array
    372372 */
    function bbp_get_dynamic_roles() { 
    408408/**
    409409 * Gets a translated role name from a role ID
    410410 *
    411  * @since bbPress (r4792)
     411 * @since 2.3.0 bbPress (r4792)
    412412 *
    413413 * @param string $role_id
    414414 * @return string Translated role name
    function bbp_get_dynamic_role_name( $role_id = '' ) { 
    426426 * This used to use array_diff_assoc() but it randomly broke before 2.2 release.
    427427 * Need to research what happened, and if there's a way to speed this up.
    428428 *
    429  * @since bbPress (r4303)
     429 * @since 2.2.0 bbPress (r4303)
    430430 *
    431431 * @param array $all_roles All registered roles
    432432 * @return array
    function bbp_filter_blog_editable_roles( $all_roles = array() ) { 
    452452/**
    453453 * The keymaster role for bbPress users
    454454 *
    455  * @since bbPress (r4284)
     455 * @since 2.2.0 bbPress (r4284)
    456456 *
    457457 * @uses apply_filters() Allow override of hardcoded keymaster role
    458458 * @return string
    function bbp_get_keymaster_role() { 
    464464/**
    465465 * The moderator role for bbPress users
    466466 *
    467  * @since bbPress (r3410)
     467 * @since 2.0.0 bbPress (r3410)
    468468 *
    469469 * @uses apply_filters() Allow override of hardcoded moderator role
    470470 * @return string
    function bbp_get_moderator_role() { 
    476476/**
    477477 * The participant role for registered user that can participate in forums
    478478 *
    479  * @since bbPress (r3410)
     479 * @since 2.0.0 bbPress (r3410)
    480480 *
    481481 * @uses apply_filters() Allow override of hardcoded participant role
    482482 * @return string
    function bbp_get_participant_role() { 
    488488/**
    489489 * The spectator role is for registered users without any capabilities
    490490 *
    491  * @since bbPress (r3860)
     491 * @since 2.1.0 bbPress (r3860)
    492492 *
    493493 * @uses apply_filters() Allow override of hardcoded spectator role
    494494 * @return string
    function bbp_get_spectator_role() { 
    500500/**
    501501 * The blocked role is for registered users that cannot spectate or participate
    502502 *
    503  * @since bbPress (r4284)
     503 * @since 2.2.0 bbPress (r4284)
    504504 *
    505505 * @uses apply_filters() Allow override of hardcoded blocked role
    506506 * @return string
    function bbp_get_blocked_role() { 
    512512/**
    513513 * Adds bbPress-specific user roles.
    514514 *
    515  * @since bbPress (r2741)
    516  * @deprecated since version 2.2
     515 * @since 2.0.0 bbPress (r2741)
     516 *
     517 * @deprecated 2.2.0 bbPress (r4164)
    517518 */
    518519function bbp_add_roles() {
    519520        _doing_it_wrong( 'bbp_add_roles', __( 'Editable forum roles no longer exist.', 'bbpress' ), '2.2' );
    function bbp_add_roles() { 
    528529 * @see bbp_do_uninstall()
    529530 * @see bbp_version_updater()
    530531 *
    531  * @since bbPress (r2741)
     532 * @since 2.0.0 bbPress (r2741)
    532533 */
    533534function bbp_remove_roles() {
    534535
  • src/includes/core/extend.php

    diff --git src/includes/core/extend.php src/includes/core/extend.php
    index f19d0b1..bf94800 100644
    defined( 'ABSPATH' ) || exit; 
    1616/**
    1717 * Loads Akismet inside the bbPress global class
    1818 *
    19  * @since bbPress (r3277)
     19 * @since 2.0.0 bbPress (r3277)
    2020 *
    2121 * @return If bbPress is not active
    2222 */
    function bbp_setup_akismet() { 
    4343 * Requires and creates the BuddyPress extension, and adds component creation
    4444 * action to bp_init hook. @see bbp_setup_buddypress_component()
    4545 *
    46  * @since bbPress (r3395)
     46 * @since 2.0.0 bbPress (r3395)
     47 *
    4748 * @return If BuddyPress is not active
    4849 */
    4950function bbp_setup_buddypress() {
    function bbp_setup_buddypress() { 
    5354                /**
    5455                 * Helper for BuddyPress 1.6 and earlier
    5556                 *
    56                  * @since bbPress (r4395)
     57                 * @since 2.2.0 bbPress (r4395)
     58                 *
    5759                 * @return BuddyPress
    5860                 */
    5961                function buddypress() {
  • src/includes/core/filters.php

    diff --git src/includes/core/filters.php src/includes/core/filters.php
    index 28b2dcd..1289968 100644
    add_filter( 'bbp_map_meta_caps', 'bbp_map_reply_meta_caps', 10, 4 ); // Repl 
    273273/**
    274274 * Deprecated locale filter
    275275 *
    276  * @since bbPress (r4213)
     276 * @since 2.2.0 bbPress (r4213)
    277277 *
    278278 * @param string $locale
    279279 * @return string  $domain
    add_filter( 'bbp_plugin_locale', '_bbp_filter_locale', 10, 1 ); 
    292292/**
    293293 * Deprecated forums query filter
    294294 *
    295  * @since bbPress (r3961)
     295 * @since 2.1.0 bbPress (r3961)
     296 *
    296297 * @param array $args
    297298 * @return array
    298299 */
    add_filter( 'bbp_after_has_forums_parse_args', '_bbp_has_forums_query' ); 
    304305/**
    305306 * Deprecated topics query filter
    306307 *
    307  * @since bbPress (r3961)
     308 * @since 2.1.0 bbPress (r3961)
     309 *
    308310 * @param array $args
    309311 * @return array
    310312 */
    add_filter( 'bbp_after_has_topics_parse_args', '_bbp_has_topics_query' ); 
    316318/**
    317319 * Deprecated replies query filter
    318320 *
    319  * @since bbPress (r3961)
     321 * @since 2.1.0 bbPress (r3961)
     322 *
    320323 * @param array $args
    321324 * @return array
    322325 */
  • src/includes/core/functions.php

    diff --git src/includes/core/functions.php src/includes/core/functions.php
    index b871317..585a9fa 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Output the bbPress version
    1717 *
    18  * @since bbPress (r3468)
     18 * @since 2.0.0 bbPress (r3468)
     19 *
    1920 * @uses bbp_get_version() To get the bbPress version
    2021 */
    2122function bbp_version() {
    function bbp_version() { 
    2425        /**
    2526         * Return the bbPress version
    2627         *
    27          * @since bbPress (r3468)
     28         * @since 2.0.0 bbPress (r3468)
     29         *
    2830         * @retrun string The bbPress version
    2931         */
    3032        function bbp_get_version() {
    function bbp_version() { 
    3436/**
    3537 * Output the bbPress database version
    3638 *
    37  * @since bbPress (r3468)
     39 * @since 2.0.0 bbPress (r3468)
     40 *
    3841 * @uses bbp_get_version() To get the bbPress version
    3942 */
    4043function bbp_db_version() {
    function bbp_db_version() { 
    4346        /**
    4447         * Return the bbPress database version
    4548         *
    46          * @since bbPress (r3468)
     49         * @since 2.0.0 bbPress (r3468)
     50         *
    4751         * @retrun string The bbPress version
    4852         */
    4953        function bbp_get_db_version() {
    function bbp_db_version() { 
    5357/**
    5458 * Output the bbPress database version directly from the database
    5559 *
    56  * @since bbPress (r3468)
     60 * @since 2.0.0 bbPress (r3468)
     61 *
    5762 * @uses bbp_get_version() To get the current bbPress version
    5863 */
    5964function bbp_db_version_raw() {
    function bbp_db_version_raw() { 
    6267        /**
    6368         * Return the bbPress database version directly from the database
    6469         *
    65          * @since bbPress (r3468)
     70         * @since 2.0.0 bbPress (r3468)
     71         *
    6672         * @retrun string The current bbPress version
    6773         */
    6874        function bbp_get_db_version_raw() {
    function bbp_db_version_raw() { 
    7480/**
    7581 * Update a posts' forum meta ID
    7682 *
    77  * @since bbPress (r3181)
     83 * @since 2.0.0 bbPress (r3181)
    7884 *
    7985 * @param int $post_id  The post to update
    8086 * @param int $forum_id The forum
    function bbp_update_forum_id( $post_id, $forum_id ) { 
    9399/**
    94100 * Update a posts' topic meta ID
    95101 *
    96  * @since bbPress (r3181)
     102 * @since 2.0.0 bbPress (r3181)
    97103 *
    98104 * @param int $post_id  The post to update
    99105 * @param int $topic_id The topic
    function bbp_update_topic_id( $post_id, $topic_id ) { 
    112118/**
    113119 * Update a posts' reply meta ID
    114120 *
    115  * @since bbPress (r3181)
     121 * @since 2.0.0 bbPress (r3181)
    116122 *
    117123 * @param int $post_id  The post to update
    118124 * @param int $reply_id The reply
    function bbp_update_reply_id( $post_id, $reply_id ) { 
    131137/**
    132138 * Update a posts' reply-to meta ID
    133139 *
    134  * @since bbPress (r5735)
     140 * @since 2.6.0 bbPress (r5735)
    135141 *
    136142 * @param int $post_id  The post to update
    137143 * @param int $reply_id The reply ID
    function bbp_update_reply_to_id( $post_id, $reply_id ) { 
    154160 *
    155161 * Does nothing much other than return the {@link $bbp->views} variable
    156162 *
    157  * @since bbPress (r2789)
     163 * @since 2.0.0 bbPress (r2789)
    158164 *
    159165 * @return array Views
    160166 */
    function bbp_get_views() { 
    165171/**
    166172 * Register a bbPress view
    167173 *
    168  * @since bbPress (r2789)
     174 * @since 2.0.0 bbPress (r2789)
    169175 *
    170176 * @param string $view View name
    171177 * @param string $title View title
    function bbp_register_view( $view, $title, $query_args = '', $feed = true, $capa 
    211217/**
    212218 * Deregister a bbPress view
    213219 *
    214  * @since bbPress (r2789)
     220 * @since 2.0.0 bbPress (r2789)
    215221 *
    216222 * @param string $view View name
    217223 * @uses sanitize_title() To sanitize the view name
    function bbp_deregister_view( $view ) { 
    233239/**
    234240 * Run the view's query
    235241 *
    236  * @since bbPress (r2789)
     242 * @since 2.0.0 bbPress (r2789)
    237243 *
    238244 * @param string $view Optional. View id
    239245 * @param mixed $new_args New arguments. See {@link bbp_has_topics()}
    function bbp_view_query( $view = '', $new_args = '' ) { 
    263269/**
    264270 * Return the view's query arguments
    265271 *
    266  * @since bbPress (r2789)
     272 * @since 2.0.0 bbPress (r2789)
    267273 *
    268274 * @param string $view View name
    269275 * @uses bbp_get_view_id() To get the view id
    function bbp_get_view_query_args( $view ) { 
    283289/**
    284290 * Adds an error message to later be output in the theme
    285291 *
    286  * @since bbPress (r3381)
     292 * @since 2.0.0 bbPress (r3381)
    287293 *
    288294 * @see WP_Error()
    289295 * @uses WP_Error::add();
    function bbp_add_error( $code = '', $message = '', $data = '' ) { 
    299305/**
    300306 * Check if error messages exist in queue
    301307 *
    302  * @since bbPress (r3381)
     308 * @since 2.0.0 bbPress (r3381)
    303309 *
    304310 * @see WP_Error()
    305311 *
    function bbp_has_errors() { 
    320326 * Moved into its own function to allow filtering of the regex pattern
    321327 * anywhere mentions might be used.
    322328 *
    323  * @since bbPress (r4997)
     329 * @since 2.4.0 bbPress (r4997)
     330 *
    324331 * @return string Pattern to match usernames with
    325332 */
    326333function bbp_find_mentions_pattern() {
    function bbp_find_mentions_pattern() { 
    330337/**
    331338 * Searches through the content to locate usernames, designated by an @ sign.
    332339 *
    333  * @since bbPress (r4323)
     340 * @since 2.2.0 bbPress (r4323)
    334341 *
    335342 * @param string $content The content
    336343 * @return bool|array $usernames Existing usernames. False if no matches.
    function bbp_find_mentions( $content = '' ) { 
    351358/**
    352359 * Finds and links @-mentioned users in the content
    353360 *
    354  * @since bbPress (r4323)
     361 * @since 2.2.0 bbPress (r4323)
    355362 *
    356363 * @uses bbp_find_mentions() To get usernames in content areas
    357364 * @return string $content Content filtered for mentions
    function bbp_mention_filter( $content = '' ) { 
    386393/**
    387394 * Return the public post status ID
    388395 *
    389  * @since bbPress (r3504)
     396 * @since 2.0.0 bbPress (r3504)
    390397 *
    391398 * @return string
    392399 */
    function bbp_get_public_status_id() { 
    397404/**
    398405 * Return the pending post status ID
    399406 *
    400  * @since bbPress (r3581)
     407 * @since 2.1.0 bbPress (r3581)
    401408 *
    402409 * @return string
    403410 */
    function bbp_get_pending_status_id() { 
    408415/**
    409416 * Return the private post status ID
    410417 *
    411  * @since bbPress (r3504)
     418 * @since 2.0.0 bbPress (r3504)
    412419 *
    413420 * @return string
    414421 */
    function bbp_get_private_status_id() { 
    419426/**
    420427 * Return the hidden post status ID
    421428 *
    422  * @since bbPress (r3504)
     429 * @since 2.0.0 bbPress (r3504)
    423430 *
    424431 * @return string
    425432 */
    function bbp_get_hidden_status_id() { 
    430437/**
    431438 * Return the closed post status ID
    432439 *
    433  * @since bbPress (r3504)
     440 * @since 2.0.0 bbPress (r3504)
    434441 *
    435442 * @return string
    436443 */
    function bbp_get_closed_status_id() { 
    441448/**
    442449 * Return the spam post status ID
    443450 *
    444  * @since bbPress (r3504)
     451 * @since 2.0.0 bbPress (r3504)
    445452 *
    446453 * @return string
    447454 */
    function bbp_get_spam_status_id() { 
    452459/**
    453460 * Return the trash post status ID
    454461 *
    455  * @since bbPress (r3504)
     462 * @since 2.0.0 bbPress (r3504)
    456463 *
    457464 * @return string
    458465 */
    function bbp_get_trash_status_id() { 
    463470/**
    464471 * Return the orphan post status ID
    465472 *
    466  * @since bbPress (r3504)
     473 * @since 2.0.0 bbPress (r3504)
    467474 *
    468475 * @return string
    469476 */
    function bbp_get_orphan_status_id() { 
    476483/**
    477484 * Return the unique ID for user profile rewrite rules
    478485 *
    479  * @since bbPress (r3762)
     486 * @since 2.1.0 bbPress (r3762)
     487 *
    480488 * @return string
    481489 */
    482490function bbp_get_user_rewrite_id() {
    function bbp_get_user_rewrite_id() { 
    486494/**
    487495 * Return the unique ID for all edit rewrite rules (forum|topic|reply|tag|user)
    488496 *
    489  * @since bbPress (r3762)
     497 * @since 2.1.0 bbPress (r3762)
     498 *
    490499 * @return string
    491500 */
    492501function bbp_get_edit_rewrite_id() {
    function bbp_get_edit_rewrite_id() { 
    496505/**
    497506 * Return the unique ID for all search rewrite rules
    498507 *
    499  * @since bbPress (r4579)
     508 * @since 2.3.0 bbPress (r4579)
    500509 *
    501510 * @return string
    502511 */
    function bbp_get_search_rewrite_id() { 
    507516/**
    508517 * Return the unique ID for user topics rewrite rules
    509518 *
    510  * @since bbPress (r4321)
     519 * @since 2.2.0 bbPress (r4321)
     520 *
    511521 * @return string
    512522 */
    513523function bbp_get_user_topics_rewrite_id() {
    function bbp_get_user_topics_rewrite_id() { 
    517527/**
    518528 * Return the unique ID for user replies rewrite rules
    519529 *
    520  * @since bbPress (r4321)
     530 * @since 2.2.0 bbPress (r4321)
     531 *
    521532 * @return string
    522533 */
    523534function bbp_get_user_replies_rewrite_id() {
    function bbp_get_user_replies_rewrite_id() { 
    527538/**
    528539 * Return the unique ID for user caps rewrite rules
    529540 *
    530  * @since bbPress (r4181)
     541 * @since 2.2.0 bbPress (r4181)
     542 *
    531543 * @return string
    532544 */
    533545function bbp_get_user_favorites_rewrite_id() {
    function bbp_get_user_favorites_rewrite_id() { 
    537549/**
    538550 * Return the unique ID for user caps rewrite rules
    539551 *
    540  * @since bbPress (r4181)
     552 * @since 2.2.0 bbPress (r4181)
     553 *
    541554 * @return string
    542555 */
    543556function bbp_get_user_subscriptions_rewrite_id() {
    function bbp_get_user_subscriptions_rewrite_id() { 
    547560/**
    548561 * Return the unique ID for topic view rewrite rules
    549562 *
    550  * @since bbPress (r3762)
     563 * @since 2.1.0 bbPress (r3762)
     564 *
    551565 * @return string
    552566 */
    553567function bbp_get_view_rewrite_id() {
    function bbp_get_view_rewrite_id() { 
    559573/**
    560574 * Get the id used for paginated requests
    561575 *
    562  * @since bbPress (r4926)
     576 * @since 2.4.0 bbPress (r4926)
     577 *
    563578 * @return string
    564579 */
    565580function bbp_get_paged_rewrite_id() {
    function bbp_get_paged_rewrite_id() { 
    570585 * Delete a blogs rewrite rules, so that they are automatically rebuilt on
    571586 * the subsequent page load.
    572587 *
    573  * @since bbPress (r4198)
     588 * @since 2.2.0 bbPress (r4198)
    574589 */
    575590function bbp_delete_rewrite_rules() {
    576591        delete_option( 'rewrite_rules' );
    function bbp_delete_rewrite_rules() { 
    581596/**
    582597 * Return true|false if this is a POST request
    583598 *
    584  * @since bbPress (r4790)
     599 * @since 2.3.0 bbPress (r4790)
     600 *
    585601 * @return bool
    586602 */
    587603function bbp_is_post_request() {
    function bbp_is_post_request() { 
    591607/**
    592608 * Return true|false if this is a GET request
    593609 *
    594  * @since bbPress (r4790)
     610 * @since 2.3.0 bbPress (r4790)
     611 *
    595612 * @return bool
    596613 */
    597614function bbp_is_get_request() {
    function bbp_is_get_request() { 
    608625 * is empty, we can safely redirect back to the forum root. This might change
    609626 * in a future version, possibly to the site root.
    610627 *
    611  * @since bbPress (r5658)
     628 * @since 2.6.0 bbPress (r5658)
    612629 *
    613630 * @uses wp_safe_redirect()
    614631 * @uses bbp_get_forums_url()
  • src/includes/core/options.php

    diff --git src/includes/core/options.php src/includes/core/options.php
    index 9cb9a0c..01c6562 100644
    defined( 'ABSPATH' ) || exit; 
    1515 *
    1616 * These option
    1717 *
    18  * @since bbPress (r3421)
     18 * @since 2.0.0 bbPress (r3421)
     19 *
    1920 * @return array Filtered option names and values
    2021 */
    2122function bbp_get_default_options() {
    function bbp_get_default_options() { 
    117118 * Hooked to bbp_activate, it is only called once when bbPress is activated.
    118119 * This is non-destructive, so existing settings will not be overridden.
    119120 *
    120  * @since bbPress (r3421)
     121 * @since 2.0.0 bbPress (r3421)
     122 *
    121123 * @uses bbp_get_default_options() To get default options
    122124 * @uses add_option() Adds default options
    123125 * @uses do_action() Calls 'bbp_add_options'
    function bbp_add_options() { 
    139141 * Hooked to bbp_uninstall, it is only called once when bbPress is uninstalled.
    140142 * This is destructive, so existing settings will be destroyed.
    141143 *
    142  * @since bbPress (r3421)
     144 * @since 2.0.0 bbPress (r3421)
     145 *
    143146 * @uses bbp_get_default_options() To get default options
    144147 * @uses delete_option() Removes default options
    145148 * @uses do_action() Calls 'bbp_delete_options'
    function bbp_delete_options() { 
    159162 * Add filters to each bbPress option and allow them to be overloaded from
    160163 * inside the $bbp->options array.
    161164 *
    162  * @since bbPress (r3451)
     165 * @since 2.0.0 bbPress (r3451)
     166 *
    163167 * @uses bbp_get_default_options() To get default options
    164168 * @uses add_filter() To add filters to 'pre_option_{$key}'
    165169 * @uses do_action() Calls 'bbp_add_option_filters'
    function bbp_setup_option_filters() { 
    179183 * Filter default options and allow them to be overloaded from inside the
    180184 * $bbp->options array.
    181185 *
    182  * @since bbPress (r3451)
     186 * @since 2.0.0 bbPress (r3451)
     187 *
    183188 * @param bool $value Optional. Default value false
    184189 * @return mixed false if not overloaded, mixed if set
    185190 */
    function bbp_pre_get_option( $value = '' ) { 
    202207/**
    203208 * Checks if favorites feature is enabled.
    204209 *
    205  * @since bbPress (r2658)
     210 * @since 2.0.0 bbPress (r2658)
     211 *
    206212 * @param $default bool Optional.Default value true
    207213 * @uses get_option() To get the favorites option
    208214 * @return bool Is favorites enabled or not
    function bbp_is_favorites_active( $default = 1 ) { 
    214220/**
    215221 * Checks if subscription feature is enabled.
    216222 *
    217  * @since bbPress (r2658)
     223 * @since 2.0.0 bbPress (r2658)
     224 *
    218225 * @param $default bool Optional.Default value true
    219226 * @uses get_option() To get the subscriptions option
    220227 * @return bool Is subscription enabled or not
    function bbp_is_subscriptions_active( $default = 1 ) { 
    226233/**
    227234 * Are topic tags allowed
    228235 *
    229  * @since bbPress (r4097)
     236 * @since 2.2.0 bbPress (r4097)
     237 *
    230238 * @param $default bool Optional. Default value true
    231239 * @uses get_option() To get the allow tags
    232240 * @return bool Are tags allowed?
    function bbp_allow_topic_tags( $default = 1 ) { 
    238246/**
    239247 * Are per-forum moderators allowed
    240248 *
    241  * @since bbPress (r5834)
     249 * @since 2.6.0 bbPress (r5834)
    242250 *
    243251 * @param bool $default Optional. Default value true.
    244252 * @uses get_option() To get the allow per-forum moderators
    function bbp_allow_forum_mods( $default = 1 ) { 
    252260/**
    253261 * Is forum-wide searching allowed
    254262 *
    255  * @since bbPress (r4970)
     263 * @since 2.4.0 bbPress (r4970)
     264 *
    256265 * @param $default bool Optional. Default value true
    257266 * @uses get_option() To get the forum-wide search setting
    258267 * @return bool Is forum-wide searching allowed?
    function bbp_allow_search( $default = 1 ) { 
    264273/**
    265274 * Are replies threaded
    266275 *
    267  * @since bbPress (r4944)
     276 * @since 2.4.0 bbPress (r4944)
    268277 *
    269278 * @param bool $default Optional. Default value true
    270279 * @uses apply_filters() Calls 'bbp_thread_replies' with the calculated value and
    function bbp_thread_replies() { 
    283292/**
    284293 * Are threaded replies allowed
    285294 *
    286  * @since bbPress (r4964)
     295 * @since 2.4.0 bbPress (r4964)
     296 *
    287297 * @param $default bool Optional. Default value false
    288298 * @uses get_option() To get the threaded replies setting
    289299 * @return bool Are threaded replies allowed?
    function bbp_allow_threaded_replies( $default = 0 ) { 
    295305/**
    296306 * Maximum reply thread depth
    297307 *
    298  * @since bbPress (r4944)
     308 * @since 2.4.0 bbPress (r4944)
    299309 *
    300310 * @param int $default Thread replies depth
    301311 * @uses apply_filters() Calls 'bbp_thread_replies_depth' with the option value and
    function bbp_thread_replies_depth( $default = 2 ) { 
    310320/**
    311321 * Are topic and reply revisions allowed
    312322 *
    313  * @since bbPress (r3412)
     323 * @since 2.0.0 bbPress (r3412)
     324 *
    314325 * @param $default bool Optional. Default value true
    315326 * @uses get_option() To get the allow revisions
    316327 * @return bool Are revisions allowed?
    function bbp_allow_revisions( $default = 1 ) { 
    322333/**
    323334 * Is the anonymous posting allowed?
    324335 *
    325  * @since bbPress (r2659)
     336 * @since 2.0.0 bbPress (r2659)
     337 *
    326338 * @param $default bool Optional. Default value
    327339 * @uses get_option() To get the allow anonymous option
    328340 * @return bool Is anonymous posting allowed?
    function bbp_allow_anonymous( $default = 0 ) { 
    334346/**
    335347 * Is this forum available to all users on all sites in this installation?
    336348 *
    337  * @since bbPress (r3378)
     349 * @since 2.0.0 bbPress (r3378)
     350 *
    338351 * @param $default bool Optional. Default value false
    339352 * @uses get_option() To get the global access option
    340353 * @return bool Is global access allowed?
    function bbp_allow_global_access( $default = 1 ) { 
    346359/**
    347360 * Is this forum available to all users on all sites in this installation?
    348361 *
    349  * @since bbPress (r4294)
     362 * @since 2.2.0 bbPress (r4294)
     363 *
    350364 * @param $default string Optional. Default value empty
    351365 * @uses get_option() To get the default forums role option
    352366 * @return string The default forums user role
    function bbp_get_default_role( $default = 'bbp_participant' ) { 
    358372/**
    359373 * Use the WordPress editor if available
    360374 *
    361  * @since bbPress (r3386)
     375 * @since 2.0.0 bbPress (r3386)
     376 *
    362377 * @param $default bool Optional. Default value true
    363378 * @uses get_option() To get the WP editor option
    364379 * @return bool Use WP editor?
    function bbp_use_wp_editor( $default = 1 ) { 
    370385/**
    371386 * Use WordPress's oEmbed API
    372387 *
    373  * @since bbPress (r3752)
     388 * @since 2.1.0 bbPress (r3752)
     389 *
    374390 * @param $default bool Optional. Default value true
    375391 * @uses get_option() To get the oEmbed option
    376392 * @return bool Use oEmbed?
    function bbp_use_autoembed( $default = 1 ) { 
    382398/**
    383399 * Get the current theme package ID
    384400 *
    385  * @since bbPress (r3829)
     401 * @since 2.1.0 bbPress (r3829)
     402 *
    386403 * @param $default string Optional. Default value 'default'
    387404 * @uses get_option() To get the subtheme option
    388405 * @return string ID of the subtheme
    function bbp_get_theme_package_id( $default = 'default' ) { 
    394411/**
    395412 * Output the maximum length of a title
    396413 *
    397  * @since bbPress (r3246)
     414 * @since 2.0.0 bbPress (r3246)
     415 *
    398416 * @param $default bool Optional. Default value 80
    399417 */
    400418function bbp_title_max_length( $default = 80 ) {
    function bbp_title_max_length( $default = 80 ) { 
    403421        /**
    404422         * Return the maximum length of a title
    405423         *
    406          * @since bbPress (r3246)
     424         * @since 2.0.0 bbPress (r3246)
     425         *
    407426         * @param $default bool Optional. Default value 80
    408427         * @uses get_option() To get the maximum title length
    409428         * @return int Is anonymous posting allowed?
    function bbp_title_max_length( $default = 80 ) { 
    415434/**
    416435 * Output the grop forums root parent forum id
    417436 *
    418  * @since bbPress (r3575)
     437 * @since 2.1.0 bbPress (r3575)
     438 *
    419439 * @param $default int Optional. Default value
    420440 */
    421441function bbp_group_forums_root_id( $default = 0 ) {
    function bbp_group_forums_root_id( $default = 0 ) { 
    424444        /**
    425445         * Return the grop forums root parent forum id
    426446         *
    427          * @since bbPress (r3575)
     447         * @since 2.1.0 bbPress (r3575)
     448         *
    428449         * @param $default bool Optional. Default value 0
    429450         * @uses get_option() To get the root group forum ID
    430451         * @return int The post ID for the root forum
    function bbp_group_forums_root_id( $default = 0 ) { 
    436457/**
    437458 * Checks if BuddyPress Group Forums are enabled
    438459 *
    439  * @since bbPress (r3575)
     460 * @since 2.1.0 bbPress (r3575)
     461 *
    440462 * @param $default bool Optional. Default value true
    441463 * @uses get_option() To get the group forums option
    442464 * @return bool Is group forums enabled or not
    function bbp_is_group_forums_active( $default = 1 ) { 
    448470/**
    449471 * Checks if Akismet is enabled
    450472 *
    451  * @since bbPress (r3575)
     473 * @since 2.1.0 bbPress (r3575)
     474 *
    452475 * @param $default bool Optional. Default value true
    453476 * @uses get_option() To get the Akismet option
    454477 * @return bool Is Akismet enabled or not
    function bbp_is_akismet_active( $default = 1 ) { 
    460483/**
    461484 * Integrate settings into existing WordPress pages
    462485 *
    463  * @since bbPress (r4932)
     486 * @since 2.4.0 bbPress (r4932)
     487 *
    464488 * @param $default bool Optional. Default value false
    465489 * @uses get_option() To get the admin integration setting
    466490 * @return bool To deeply integrate settings, or not
    function bbp_settings_integration( $default = 0 ) { 
    474498/**
    475499 * Return the root slug
    476500 *
    477  * @since bbPress (r3759)
     501 * @since 2.1.0 bbPress (r3759)
     502 *
    478503 * @return string
    479504 */
    480505function bbp_get_root_slug( $default = 'forums' ) {
    function bbp_get_root_slug( $default = 'forums' ) { 
    484509/**
    485510 * Are we including the root slug in front of forum pages?
    486511 *
    487  * @since bbPress (r3759)
     512 * @since 2.1.0 bbPress (r3759)
     513 *
    488514 * @return bool
    489515 */
    490516function bbp_include_root_slug( $default = 1 ) {
    function bbp_include_root_slug( $default = 1 ) { 
    494520/**
    495521 * Return the search slug
    496522 *
    497  * @since bbPress (r4932)
     523 * @since 2.4.0 bbPress (r4932)
    498524 *
    499525 * @return string
    500526 */
    function bbp_show_on_root( $default = 'forums' ) { 
    505531/**
    506532 * Maybe return the root slug, based on whether or not it's included in the url
    507533 *
    508  * @since bbPress (r3759)
     534 * @since 2.1.0 bbPress (r3759)
     535 *
    509536 * @return string
    510537 */
    511538function bbp_maybe_get_root_slug() {
    function bbp_maybe_get_root_slug() { 
    521548/**
    522549 * Return the single forum slug
    523550 *
    524  * @since bbPress (r3759)
     551 * @since 2.1.0 bbPress (r3759)
     552 *
    525553 * @return string
    526554 */
    527555function bbp_get_forum_slug( $default = 'forum' ) {
    function bbp_get_forum_slug( $default = 'forum' ) { 
    531559/**
    532560 * Return the topic archive slug
    533561 *
    534  * @since bbPress (r3759)
     562 * @since 2.1.0 bbPress (r3759)
     563 *
    535564 * @return string
    536565 */
    537566function bbp_get_topic_archive_slug( $default = 'topics' ) {
    function bbp_get_topic_archive_slug( $default = 'topics' ) { 
    541570/**
    542571 * Return the reply archive slug
    543572 *
    544  * @since bbPress (r4925)
     573 * @since 2.4.0 bbPress (r4925)
     574 *
    545575 * @return string
    546576 */
    547577function bbp_get_reply_archive_slug( $default = 'replies' ) {
    function bbp_get_reply_archive_slug( $default = 'replies' ) { 
    551581/**
    552582 * Return the single topic slug
    553583 *
    554  * @since bbPress (r3759)
     584 * @since 2.1.0 bbPress (r3759)
     585 *
    555586 * @return string
    556587 */
    557588function bbp_get_topic_slug( $default = 'topic' ) {
    function bbp_get_topic_slug( $default = 'topic' ) { 
    561592/**
    562593 * Return the topic-tag taxonomy slug
    563594 *
    564  * @since bbPress (r3759)
     595 * @since 2.1.0 bbPress (r3759)
     596 *
    565597 * @return string
    566598 */
    567599function bbp_get_topic_tag_tax_slug( $default = 'topic-tag' ) {
    function bbp_get_topic_tag_tax_slug( $default = 'topic-tag' ) { 
    571603/**
    572604 * Return the single reply slug (used mostly for editing)
    573605 *
    574  * @since bbPress (r3759)
     606 * @since 2.1.0 bbPress (r3759)
     607 *
    575608 * @return string
    576609 */
    577610function bbp_get_reply_slug( $default = 'reply' ) {
    function bbp_get_reply_slug( $default = 'reply' ) { 
    581614/**
    582615 * Return the single user slug
    583616 *
    584  * @since bbPress (r3759)
     617 * @since 2.1.0 bbPress (r3759)
     618 *
    585619 * @return string
    586620 */
    587621function bbp_get_user_slug( $default = 'user' ) {
    function bbp_get_user_slug( $default = 'user' ) { 
    591625/**
    592626 * Return the single user favorites slug
    593627 *
    594  * @since bbPress (r4187)
     628 * @since 2.2.0 bbPress (r4187)
     629 *
    595630 * @return string
    596631 */
    597632function bbp_get_user_favorites_slug( $default = 'favorites' ) {
    function bbp_get_user_favorites_slug( $default = 'favorites' ) { 
    601636/**
    602637 * Return the single user subscriptions slug
    603638 *
    604  * @since bbPress (r4187)
     639 * @since 2.2.0 bbPress (r4187)
     640 *
    605641 * @return string
    606642 */
    607643function bbp_get_user_subscriptions_slug( $default = 'subscriptions' ) {
    function bbp_get_user_subscriptions_slug( $default = 'subscriptions' ) { 
    611647/**
    612648 * Return the topic view slug
    613649 *
    614  * @since bbPress (r3759)
     650 * @since 2.1.0 bbPress (r3759)
     651 *
    615652 * @return string
    616653 */
    617654function bbp_get_view_slug( $default = 'view' ) {
    function bbp_get_view_slug( $default = 'view' ) { 
    621658/**
    622659 * Return the search slug
    623660 *
    624  * @since bbPress (r4579)
     661 * @since 2.3.0 bbPress (r4579)
    625662 *
    626663 * @return string
    627664 */
    function bbp_get_search_slug( $default = 'search' ) { 
    634671/**
    635672 * Checks if there is a previous BuddyPress Forum configuration
    636673 *
    637  * @since bbPress (r3790)
     674 * @since 2.1.0 bbPress (r3790)
     675 *
    638676 * @param $default string Optional. Default empty string
    639677 * @uses get_option() To get the old bb-config.php location
    640678 * @return string The location of the bb-config.php file, if any
  • src/includes/core/sub-actions.php

    diff --git src/includes/core/sub-actions.php src/includes/core/sub-actions.php
    index f87bdb5..a50d70a 100644
     
    2525/**
    2626 * Runs on bbPress activation
    2727 *
    28  * @since bbPress (r2509)
     28 * @since 2.0.0 bbPress (r2509)
     29 *
    2930 * @uses register_uninstall_hook() To register our own uninstall hook
    3031 * @uses do_action() Calls 'bbp_activation' hook
    3132 */
    function bbp_activation() { 
    3637/**
    3738 * Runs on bbPress deactivation
    3839 *
    39  * @since bbPress (r2509)
     40 * @since 2.0.0 bbPress (r2509)
     41 *
    4042 * @uses do_action() Calls 'bbp_deactivation' hook
    4143 */
    4244function bbp_deactivation() {
    function bbp_deactivation() { 
    4648/**
    4749 * Runs when uninstalling bbPress
    4850 *
    49  * @since bbPress (r2509)
     51 * @since 2.0.0 bbPress (r2509)
     52 *
    5053 * @uses do_action() Calls 'bbp_uninstall' hook
    5154 */
    5255function bbp_uninstall() {
    function bbp_uninstall() { 
    5861/**
    5962 * Main action responsible for constants, globals, and includes
    6063 *
    61  * @since bbPress (r2599)
     64 * @since 2.0.0 bbPress (r2599)
     65 *
    6266 * @uses do_action() Calls 'bbp_loaded'
    6367 */
    6468function bbp_loaded() {
    function bbp_loaded() { 
    6872/**
    6973 * Setup constants
    7074 *
    71  * @since bbPress (r2599)
     75 * @since 2.0.0 bbPress (r2599)
     76 *
    7277 * @uses do_action() Calls 'bbp_constants'
    7378 */
    7479function bbp_constants() {
    function bbp_constants() { 
    7883/**
    7984 * Setup globals BEFORE includes
    8085 *
    81  * @since bbPress (r2599)
     86 * @since 2.0.0 bbPress (r2599)
     87 *
    8288 * @uses do_action() Calls 'bbp_boot_strap_globals'
    8389 */
    8490function bbp_boot_strap_globals() {
    function bbp_boot_strap_globals() { 
    8894/**
    8995 * Include files
    9096 *
    91  * @since bbPress (r2599)
     97 * @since 2.0.0 bbPress (r2599)
     98 *
    9299 * @uses do_action() Calls 'bbp_includes'
    93100 */
    94101function bbp_includes() {
    function bbp_includes() { 
    98105/**
    99106 * Setup globals AFTER includes
    100107 *
    101  * @since bbPress (r2599)
     108 * @since 2.0.0 bbPress (r2599)
     109 *
    102110 * @uses do_action() Calls 'bbp_setup_globals'
    103111 */
    104112function bbp_setup_globals() {
    function bbp_setup_globals() { 
    108116/**
    109117 * Register any objects before anything is initialized
    110118 *
    111  * @since bbPress (r4180)
     119 * @since 2.2.0 bbPress (r4180)
     120 *
    112121 * @uses do_action() Calls 'bbp_register'
    113122 */
    114123function bbp_register() {
    function bbp_register() { 
    118127/**
    119128 * Initialize any code after everything has been loaded
    120129 *
    121  * @since bbPress (r2599)
     130 * @since 2.0.0 bbPress (r2599)
     131 *
    122132 * @uses do_action() Calls 'bbp_init'
    123133 */
    124134function bbp_init() {
    function bbp_init() { 
    128138/**
    129139 * Initialize widgets
    130140 *
    131  * @since bbPress (r3389)
     141 * @since 2.0.0 bbPress (r3389)
     142 *
    132143 * @uses do_action() Calls 'bbp_widgets_init'
    133144 */
    134145function bbp_widgets_init() {
    function bbp_widgets_init() { 
    143154 * @link https://bbpress.trac.wordpress.org/ticket/2309
    144155 * @link https://core.trac.wordpress.org/ticket/24169
    145156 *
    146  * @since bbPress (r2695)
     157 * @since 2.0.0 bbPress (r2695)
     158 *
    147159 * @uses did_action() To make sure the user isn't loaded out of order
    148160 * @uses do_action() Calls 'bbp_setup_current_user'
    149161 */
    function bbp_setup_current_user() { 
    163175/**
    164176 * Load translations for current language
    165177 *
    166  * @since bbPress (r2599)
     178 * @since 2.0.0 bbPress (r2599)
     179 *
    167180 * @uses do_action() Calls 'bbp_load_textdomain'
    168181 */
    169182function bbp_load_textdomain() {
    function bbp_load_textdomain() { 
    173186/**
    174187 * Setup the post types
    175188 *
    176  * @since bbPress (r2464)
     189 * @since 2.0.0 bbPress (r2464)
     190 *
    177191 * @uses do_action() Calls 'bbp_register_post_type'
    178192 */
    179193function bbp_register_post_types() {
    function bbp_register_post_types() { 
    183197/**
    184198 * Setup the post statuses
    185199 *
    186  * @since bbPress (r2727)
     200 * @since 2.0.0 bbPress (r2727)
     201 *
    187202 * @uses do_action() Calls 'bbp_register_post_statuses'
    188203 */
    189204function bbp_register_post_statuses() {
    function bbp_register_post_statuses() { 
    193208/**
    194209 * Register the built in bbPress taxonomies
    195210 *
    196  * @since bbPress (r2464)
     211 * @since 2.0.0 bbPress (r2464)
     212 *
    197213 * @uses do_action() Calls 'bbp_register_taxonomies'
    198214 */
    199215function bbp_register_taxonomies() {
    function bbp_register_taxonomies() { 
    203219/**
    204220 * Register the default bbPress views
    205221 *
    206  * @since bbPress (r2789)
     222 * @since 2.0.0 bbPress (r2789)
     223 *
    207224 * @uses do_action() Calls 'bbp_register_views'
    208225 */
    209226function bbp_register_views() {
    function bbp_register_views() { 
    213230/**
    214231 * Register the default bbPress shortcodes
    215232 *
    216  * @since bbPress (r4211)
     233 * @since 2.2.0 bbPress (r4211)
     234 *
    217235 * @uses do_action() Calls 'bbp_register_shortcodes'
    218236 */
    219237function bbp_register_shortcodes() {
    function bbp_register_shortcodes() { 
    223241/**
    224242 * Enqueue bbPress specific CSS and JS
    225243 *
    226  * @since bbPress (r3373)
     244 * @since 2.0.0 bbPress (r3373)
     245 *
    227246 * @uses do_action() Calls 'bbp_enqueue_scripts'
    228247 */
    229248function bbp_enqueue_scripts() {
    function bbp_enqueue_scripts() { 
    233252/**
    234253 * Add the bbPress-specific rewrite tags
    235254 *
    236  * @since bbPress (r2753)
     255 * @since 2.0.0 bbPress (r2753)
     256 *
    237257 * @uses do_action() Calls 'bbp_add_rewrite_tags'
    238258 */
    239259function bbp_add_rewrite_tags() {
    function bbp_add_rewrite_tags() { 
    243263/**
    244264 * Add the bbPress-specific rewrite rules
    245265 *
    246  * @since bbPress (r4918)
     266 * @since 2.4.0 bbPress (r4918)
     267 *
    247268 * @uses do_action() Calls 'bbp_add_rewrite_rules'
    248269 */
    249270function bbp_add_rewrite_rules() {
    function bbp_add_rewrite_rules() { 
    253274/**
    254275 * Add the bbPress-specific permalink structures
    255276 *
    256  * @since bbPress (r4918)
     277 * @since 2.4.0 bbPress (r4918)
     278 *
    257279 * @uses do_action() Calls 'bbp_add_permastructs'
    258280 */
    259281function bbp_add_permastructs() {
    function bbp_add_permastructs() { 
    263285/**
    264286 * Add the bbPress-specific login forum action
    265287 *
    266  * @since bbPress (r2753)
     288 * @since 2.0.0 bbPress (r2753)
     289 *
    267290 * @uses do_action() Calls 'bbp_login_form_login'
    268291 */
    269292function bbp_login_form_login() {
    function bbp_login_form_login() { 
    275298/**
    276299 * The main action for hooking into when a user account is updated
    277300 *
    278  * @since bbPress (r4304)
     301 * @since 2.2.0 bbPress (r4304)
    279302 *
    280303 * @param int $user_id ID of user being edited
    281304 * @param array $old_user_data The old, unmodified user data
    function bbp_profile_update( $user_id = 0, $old_user_data = array() ) { 
    288311/**
    289312 * The main action for hooking into a user being registered
    290313 *
    291  * @since bbPress (r4304)
     314 * @since 2.2.0 bbPress (r4304)
     315 *
    292316 * @param int $user_id ID of user being edited
    293317 * @uses do_action() Calls 'bbp_user_register'
    294318 */
    function bbp_user_register( $user_id = 0 ) { 
    301325/**
    302326 * bbPress has loaded and initialized everything, and is okay to go
    303327 *
    304  * @since bbPress (r2618)
     328 * @since 2.0.0 bbPress (r2618)
     329 *
    305330 * @uses do_action() Calls 'bbp_ready'
    306331 */
    307332function bbp_ready() {
    function bbp_ready() { 
    314339 * The main action used for redirecting bbPress theme actions that are not
    315340 * permitted by the current_user
    316341 *
    317  * @since bbPress (r3605)
     342 * @since 2.1.0 bbPress (r3605)
     343 *
    318344 * @uses do_action()
    319345 */
    320346function bbp_template_redirect() {
    function bbp_template_redirect() { 
    326352/**
    327353 * The main action used for executing code before the theme has been setup
    328354 *
    329  * @since bbPress (r3829)
     355 * @since 2.1.0 bbPress (r3829)
     356 *
    330357 * @uses do_action()
    331358 */
    332359function bbp_register_theme_packages() {
    function bbp_register_theme_packages() { 
    336363/**
    337364 * The main action used for executing code before the theme has been setup
    338365 *
    339  * @since bbPress (r3732)
     366 * @since 2.1.0 bbPress (r3732)
     367 *
    340368 * @uses do_action()
    341369 */
    342370function bbp_setup_theme() {
    function bbp_setup_theme() { 
    346374/**
    347375 * The main action used for executing code after the theme has been setup
    348376 *
    349  * @since bbPress (r3732)
     377 * @since 2.1.0 bbPress (r3732)
     378 *
    350379 * @uses do_action()
    351380 */
    352381function bbp_after_setup_theme() {
    function bbp_after_setup_theme() { 
    356385/**
    357386 * The main action used for handling theme-side POST requests
    358387 *
    359  * @since bbPress (r4550)
     388 * @since 2.3.0 bbPress (r4550)
     389 *
    360390 * @uses do_action()
    361391 */
    362392function bbp_post_request() {
    function bbp_post_request() { 
    385415/**
    386416 * The main action used for handling theme-side GET requests
    387417 *
    388  * @since bbPress (r4550)
     418 * @since 2.3.0 bbPress (r4550)
     419 *
    389420 * @uses do_action()
    390421 */
    391422function bbp_get_request() {
    function bbp_get_request() { 
    416447/**
    417448 * Filter the plugin locale and domain.
    418449 *
    419  * @since bbPress (r4213)
     450 * @since 2.2.0 bbPress (r4213)
    420451 *
    421452 * @param string $locale
    422453 * @param string $domain
    function bbp_plugin_locale( $locale = '', $domain = '' ) { 
    428459/**
    429460 * Piggy back filter for WordPress's 'request' filter
    430461 *
    431  * @since bbPress (r3758)
     462 * @since 2.1.0 bbPress (r3758)
     463 *
    432464 * @param array $query_vars
    433465 * @return array
    434466 */
    function bbp_request( $query_vars = array() ) { 
    440472 * The main filter used for theme compatibility and displaying custom bbPress
    441473 * theme files.
    442474 *
    443  * @since bbPress (r3311)
     475 * @since 2.0.0 bbPress (r3311)
     476 *
    444477 * @uses apply_filters()
    445478 * @param string $template
    446479 * @return string Template file to use
    function bbp_template_include( $template = '' ) { 
    452485/**
    453486 * Generate bbPress-specific rewrite rules
    454487 *
    455  * @since bbPress (r2688)
    456  * @deprecated since bbPress (r4918)
     488 * @since 2.0.0 bbPress (r2688)
     489 *
     490 * @deprecated 2.4.0 bbPress (r4918)
     491 *
    457492 * @param WP_Rewrite $wp_rewrite
    458493 * @uses do_action() Calls 'bbp_generate_rewrite_rules' with {@link WP_Rewrite}
    459494 */
    function bbp_generate_rewrite_rules( $wp_rewrite ) { 
    464499/**
    465500 * Filter the allowed themes list for bbPress specific themes
    466501 *
    467  * @since bbPress (r2944)
     502 * @since 2.0.0 bbPress (r2944)
     503 *
    468504 * @uses apply_filters() Calls 'bbp_allowed_themes' with the allowed themes list
    469505 */
    470506function bbp_allowed_themes( $themes ) {
    function bbp_allowed_themes( $themes ) { 
    474510/**
    475511 * Maps forum/topic/reply caps to built in WordPress caps
    476512 *
    477  * @since bbPress (r2593)
     513 * @since 2.0.0 bbPress (r2593)
    478514 *
    479515 * @param array $caps Capabilities for meta capability
    480516 * @param string $cap Capability name
  • src/includes/core/template-functions.php

    diff --git src/includes/core/template-functions.php src/includes/core/template-functions.php
    index f295f67..1b46c40 100644
    defined( 'ABSPATH' ) || exit; 
    1717/**
    1818 * Adds bbPress theme support to any active WordPress theme
    1919 *
    20  * @since bbPress (r3032)
     20 * @since 2.0.0 bbPress (r3032)
    2121 *
    2222 * @param string $slug
    2323 * @param string $name Optional. Default null
    function bbp_get_template_part( $slug, $name = null ) { 
    5151 * inherit from a parent theme can just overload one file. If the template is
    5252 * not found in either of those, it looks in the theme-compat folder last.
    5353 *
    54  * @since bbPress (r3618)
     54 * @since 2.1.0 bbPress (r3618)
    5555 *
    5656 * @param string|array $template_names Template file(s) to search for, in order.
    5757 * @param bool $load If true the template file will be loaded if it is found.
    function bbp_locate_template( $template_names, $load = false, $require_once = tr 
    114114 *
    115115 * Registers the style if file provided (does NOT overwrite) and enqueues.
    116116 *
    117  * @since bbPress (r5180)
     117 * @since 2.5.0 bbPress (r5180)
    118118 *
    119119 * @param string      $handle Name of the stylesheet.
    120120 * @param string|bool $file   Relative path to stylesheet. Example: '/css/mystyle.css'.
    function bbp_enqueue_style( $handle = '', $file = '', $deps = array(), $ver = fa 
    183183 *
    184184 * Registers the style if file provided (does NOT overwrite) and enqueues.
    185185 *
    186  * @since bbPress (r5180)
     186 * @since 2.5.0 bbPress (r5180)
    187187 *
    188188 * @param string      $handle    Name of the script.
    189189 * @param string|bool $file      Relative path to the script. Example: '/js/myscript.js'.
    function bbp_enqueue_script( $handle = '', $file = '', $deps = array(), $ver = f 
    254254 * relationship, to allow for custom template locations. Used in conjunction
    255255 * with bbp_locate_template(), this allows for easy template overrides.
    256256 *
    257  * @since bbPress (r4323)
     257 * @since 2.2.0 bbPress (r4323)
    258258 *
    259259 * @param string $location_callback Callback function that returns the
    260260 * @param int $priority
    function bbp_register_template_stack( $location_callback = '', $priority = 10 ) 
    273273/**
    274274 * Deregisters a previously registered template stack location.
    275275 *
    276  * @since bbPress (r4652)
     276 * @since 2.3.0 bbPress (r4652)
    277277 *
    278278 * @param string $location_callback Callback function that returns the
    279279 * @param int $priority
    function bbp_deregister_template_stack( $location_callback = '', $priority = 10 
    296296 *
    297297 * @see bbp_register_template_stack()
    298298 *
    299  * @since bbPress (r4323)
     299 * @since 2.2.0 bbPress (r4323)
    300300 *
    301301 * @global array $wp_filter Stores all of the filters
    302302 * @global array $merged_filters Merges the filter hooks using this function.
    function bbp_get_template_stack() { 
    350350/**
    351351 * Get a template part in an output buffer, and return it
    352352 *
    353  * @since bbPress (r5043)
     353 * @since 2.4.0 bbPress (r5043)
    354354 *
    355355 * @param string $slug
    356356 * @param string $name
    function bbp_buffer_template_part( $slug, $name = null, $echo = true ) { 
    380380 * the use of {@link bbp_locate_template()}. Allows for more generic template
    381381 * locations without the use of the other get_*_template() functions.
    382382 *
    383  * @since bbPress (r3629)
     383 * @since 2.1.0 bbPress (r3629)
    384384 *
    385385 * @param string $type Filename without extension.
    386386 * @param array $templates An optional list of template candidates
    function bbp_get_query_template( $type, $templates = array() ) { 
    409409/**
    410410 * Get the possible subdirectories to check for templates in
    411411 *
    412  * @since bbPress (r3738)
     412 * @since 2.1.0 bbPress (r3738)
     413 *
    413414 * @param array $templates Templates we are looking for
    414415 * @return array Possible subfolders to look in
    415416 */
    function bbp_get_template_locations( $templates = array() ) { 
    425426/**
    426427 * Add template locations to template files being searched for
    427428 *
    428  * @since bbPress (r3738)
     429 * @since 2.1.0 bbPress (r3738)
    429430 *
    430431 * @param array $stacks
    431432 * @return array()
    function bbp_add_template_stack_locations( $stacks = array() ) { 
    463464 * If it's a view page, WP_Query::bbp_is_view is set to true
    464465 * If it's a search page, WP_Query::bbp_is_search is set to true
    465466 *
    466  * @since bbPress (r2688)
     467 * @since 2.0.0 bbPress (r2688)
    467468 *
    468469 * @param WP_Query $posts_query
    469470 *
  • src/includes/core/template-loader.php

    diff --git src/includes/core/template-loader.php src/includes/core/template-loader.php
    index 12b8ce6..7dedb2e 100644
    defined( 'ABSPATH' ) || exit; 
    2020 * Note that the _edit() checks are ahead of their counterparts, to prevent them
    2121 * from being stomped on accident.
    2222 *
    23  * @since bbPress (r3032)
     23 * @since 2.0.0 bbPress (r3032)
    2424 *
    2525 * @param string $template
    2626 *
    function bbp_template_include_theme_supports( $template = '' ) { 
    120120/**
    121121 * Set the included template
    122122 *
    123  * @since bbPress (r4975)
     123 * @since 2.4.0 bbPress (r4975)
     124 *
    124125 * @param mixed $template Default false
    125126 * @return mixed False if empty. Template name if template included
    126127 */
    function bbp_set_template_included( $template = false ) { 
    133134/**
    134135 * Is a bbPress template being included?
    135136 *
    136  * @since bbPress (r4975)
     137 * @since 2.4.0 bbPress (r4975)
     138 *
    137139 * @return bool True if yes, false if no
    138140 */
    139141function bbp_is_template_included() {
    function bbp_is_template_included() { 
    146148 * Attempt to load a custom bbPress functions file, similar to each themes
    147149 * functions.php file.
    148150 *
    149  * @since bbPress (r3732)
     151 * @since 2.1.0 bbPress (r3732)
    150152 *
    151153 * @global string $pagenow
    152154 * @uses bbp_locate_template()
    function bbp_load_theme_functions() { 
    169171/**
    170172 * Get the user profile template
    171173 *
    172  * @since bbPress (r3311)
     174 * @since 2.0.0 bbPress (r3311)
    173175 *
    174176 * @uses bbp_get_displayed_user_id()
    175177 * @uses bbp_get_query_template()
    function bbp_get_single_user_template() { 
    190192/**
    191193 * Get the user profile edit template
    192194 *
    193  * @since bbPress (r3311)
     195 * @since 2.0.0 bbPress (r3311)
    194196 *
    195197 * @uses bbp_get_displayed_user_id()
    196198 * @uses bbp_get_query_template()
    function bbp_get_single_user_edit_template() { 
    212214/**
    213215 * Get the user favorites template
    214216 *
    215  * @since bbPress (r4225)
     217 * @since 2.2.0 bbPress (r4225)
    216218 *
    217219 * @uses bbp_get_displayed_user_id()
    218220 * @uses bbp_get_query_template()
    function bbp_get_favorites_template() { 
    235237/**
    236238 * Get the user subscriptions template
    237239 *
    238  * @since bbPress (r4225)
     240 * @since 2.2.0 bbPress (r4225)
    239241 *
    240242 * @uses bbp_get_displayed_user_id()
    241243 * @uses bbp_get_query_template()
    function bbp_get_subscriptions_template() { 
    258260/**
    259261 * Get the view template
    260262 *
    261  * @since bbPress (r3311)
     263 * @since 2.0.0 bbPress (r3311)
    262264 *
    263265 * @uses bbp_get_view_id()
    264266 * @uses bbp_get_query_template()
    function bbp_get_single_view_template() { 
    278280/**
    279281 * Get the search template
    280282 *
    281  * @since bbPress (r4579)
     283 * @since 2.3.0 bbPress (r4579)
    282284 *
    283285 * @uses bbp_get_query_template()
    284286 * @return string Path to template file
    function bbp_get_search_template() { 
    294296/**
    295297 * Get the single forum template
    296298 *
    297  * @since bbPress (r3922)
     299 * @since 2.1.0 bbPress (r3922)
    298300 *
    299301 * @uses bbp_get_forum_post_type()
    300302 * @uses bbp_get_query_template()
    function bbp_get_single_forum_template() { 
    310312/**
    311313 * Get the forum archive template
    312314 *
    313  * @since bbPress (r3922)
     315 * @since 2.1.0 bbPress (r3922)
    314316 *
    315317 * @uses bbp_get_forum_post_type()
    316318 * @uses bbp_get_query_template()
    function bbp_get_forum_archive_template() { 
    326328/**
    327329 * Get the forum edit template
    328330 *
    329  * @since bbPress (r3566)
     331 * @since 2.1.0 bbPress (r3566)
    330332 *
    331333 * @uses bbp_get_topic_post_type()
    332334 * @uses bbp_get_query_template()
    function bbp_get_forum_edit_template() { 
    342344/**
    343345 * Get the single topic template
    344346 *
    345  * @since bbPress (r3922)
     347 * @since 2.1.0 bbPress (r3922)
    346348 *
    347349 * @uses bbp_get_topic_post_type()
    348350 * @uses bbp_get_query_template()
    function bbp_get_single_topic_template() { 
    358360/**
    359361 * Get the topic archive template
    360362 *
    361  * @since bbPress (r3922)
     363 * @since 2.1.0 bbPress (r3922)
    362364 *
    363365 * @uses bbp_get_topic_post_type()
    364366 * @uses bbp_get_query_template()
    function bbp_get_topic_archive_template() { 
    374376/**
    375377 * Get the topic edit template
    376378 *
    377  * @since bbPress (r3311)
     379 * @since 2.0.0 bbPress (r3311)
    378380 *
    379381 * @uses bbp_get_topic_post_type()
    380382 * @uses bbp_get_query_template()
    function bbp_get_topic_edit_template() { 
    390392/**
    391393 * Get the topic split template
    392394 *
    393  * @since bbPress (r3311)
     395 * @since 2.0.0 bbPress (r3311)
    394396 *
    395397 * @uses bbp_get_topic_post_type()
    396398 * @uses bbp_get_query_template()
    function bbp_get_topic_split_template() { 
    406408/**
    407409 * Get the topic merge template
    408410 *
    409  * @since bbPress (r3311)
     411 * @since 2.0.0 bbPress (r3311)
    410412 *
    411413 * @uses bbp_get_topic_post_type()
    412414 * @uses bbp_get_query_template()
    function bbp_get_topic_merge_template() { 
    422424/**
    423425 * Get the single reply template
    424426 *
    425  * @since bbPress (r3922)
     427 * @since 2.1.0 bbPress (r3922)
    426428 *
    427429 * @uses bbp_get_reply_post_type()
    428430 * @uses bbp_get_query_template()
    function bbp_get_single_reply_template() { 
    438440/**
    439441 * Get the reply edit template
    440442 *
    441  * @since bbPress (r3311)
     443 * @since 2.0.0 bbPress (r3311)
    442444 *
    443445 * @uses bbp_get_reply_post_type()
    444446 * @uses bbp_get_query_template()
    function bbp_get_reply_edit_template() { 
    454456/**
    455457 * Get the reply move template
    456458 *
    457  * @since bbPress (r4521)
     459 * @since 2.3.0 bbPress (r4521)
    458460 *
    459461 * @uses bbp_get_reply_post_type()
    460462 * @uses bbp_get_query_template()
    function bbp_get_reply_move_template() { 
    470472/**
    471473 * Get the topic template
    472474 *
    473  * @since bbPress (r3311)
     475 * @since 2.0.0 bbPress (r3311)
    474476 *
    475477 * @uses bbp_get_topic_tag_tax_id()
    476478 * @uses bbp_get_query_template()
    function bbp_get_topic_tag_template() { 
    489491/**
    490492 * Get the topic edit template
    491493 *
    492  * @since bbPress (r3311)
     494 * @since 2.0.0 bbPress (r3311)
    493495 *
    494496 * @uses bbp_get_topic_tag_tax_id()
    495497 * @uses bbp_get_query_template()
    function bbp_get_topic_tag_edit_template() { 
    508510/**
    509511 * Get the templates to use as the endpoint for bbPress template parts
    510512 *
    511  * @since bbPress (r3311)
     513 * @since 2.0.0 bbPress (r3311)
    512514 *
    513515 * @uses apply_filters()
    514516 * @uses bbp_set_theme_compat_templates()
  • src/includes/core/theme-compat.php

    diff --git src/includes/core/theme-compat.php src/includes/core/theme-compat.php
    index fdeca34..e5ee3ae 100644
    defined( 'ABSPATH' ) || exit; 
    3131 * for future Theme Packs to use. @link BBP_Twenty_Ten is a good example of
    3232 * extending this class, as is @link bbp_setup_theme_compat()
    3333 *
    34  * @since bbPress (r3506)
     34 * @since 2.0.0 bbPress (r3506)
    3535 */
    3636class BBP_Theme_Compat {
    3737
    class BBP_Theme_Compat { 
    5252        /**
    5353         * Pass the $properties to the object on creation.
    5454         *
    55          * @since bbPress (r3926)
     55         * @since 2.1.0 bbPress (r3926)
     56         *
    5657         * @param array $properties
    5758         */
    5859    public function __construct( Array $properties = array() ) {
    class BBP_Theme_Compat { 
    6263        /**
    6364         * Set a theme's property.
    6465         *
    65          * @since bbPress (r3926)
     66         * @since 2.1.0 bbPress (r3926)
     67         *
    6668         * @param string $property
    6769         * @param mixed $value
    6870         * @return mixed
    class BBP_Theme_Compat { 
    7476        /**
    7577         * Get a theme's property.
    7678         *
    77          * @since bbPress (r3926)
     79         * @since 2.1.0 bbPress (r3926)
     80         *
    7881         * @param string $property
    7982         * @param mixed $value
    8083         * @return mixed
    class BBP_Theme_Compat { 
    9194/**
    9295 * Setup the default theme compat theme
    9396 *
    94  * @since bbPress (r3311)
     97 * @since 2.0.0 bbPress (r3311)
     98 *
    9599 * @param BBP_Theme_Compat $theme
    96100 */
    97101function bbp_setup_theme_compat( $theme = '' ) {
    function bbp_setup_theme_compat( $theme = '' ) { 
    115119 * This can be filtered or set manually. Tricky theme authors can override the
    116120 * default and include their own bbPress compatibility layers for their themes.
    117121 *
    118  * @since bbPress (r3506)
     122 * @since 2.0.0 bbPress (r3506)
     123 *
    119124 * @uses apply_filters()
    120125 * @return string
    121126 */
    function bbp_get_theme_compat_id() { 
    129134 * This can be filtered or set manually. Tricky theme authors can override the
    130135 * default and include their own bbPress compatibility layers for their themes.
    131136 *
    132  * @since bbPress (r3506)
     137 * @since 2.0.0 bbPress (r3506)
     138 *
    133139 * @uses apply_filters()
    134140 * @return string
    135141 */
    function bbp_get_theme_compat_name() { 
    143149 * This can be filtered or set manually. Tricky theme authors can override the
    144150 * default and include their own bbPress compatibility layers for their themes.
    145151 *
    146  * @since bbPress (r3506)
     152 * @since 2.0.0 bbPress (r3506)
     153 *
    147154 * @uses apply_filters()
    148155 * @return string
    149156 */
    function bbp_get_theme_compat_version() { 
    157164 * or set manually. Tricky theme authors can override the default and include
    158165 * their own bbPress compatibility layers for their themes.
    159166 *
    160  * @since bbPress (r3032)
     167 * @since 2.0.0 bbPress (r3032)
     168 *
    161169 * @uses apply_filters()
    162170 * @return string
    163171 */
    function bbp_get_theme_compat_dir() { 
    171179 * or set manually. Tricky theme authors can override the default and include
    172180 * their own bbPress compatibility layers for their themes.
    173181 *
    174  * @since bbPress (r3032)
     182 * @since 2.0.0 bbPress (r3032)
     183 *
    175184 * @uses apply_filters()
    176185 * @return string
    177186 */
    function bbp_get_theme_compat_url() { 
    182191/**
    183192 * Gets true/false if page is currently inside theme compatibility
    184193 *
    185  * @since bbPress (r3265)
     194 * @since 2.0.0 bbPress (r3265)
     195 *
    186196 * @return bool
    187197 */
    188198function bbp_is_theme_compat_active() {
    function bbp_is_theme_compat_active() { 
    198208/**
    199209 * Sets true/false if page is currently inside theme compatibility
    200210 *
    201  * @since bbPress (r3265)
     211 * @since 2.0.0 bbPress (r3265)
     212 *
    202213 * @param bool $set
    203214 * @return bool
    204215 */
    function bbp_set_theme_compat_active( $set = true ) { 
    214225 * Stash possible template files for the current query. Useful if plugins want
    215226 * to override them, or see what files are being scanned for inclusion.
    216227 *
    217  * @since bbPress (r3311)
     228 * @since 2.0.0 bbPress (r3311)
    218229 */
    219230function bbp_set_theme_compat_templates( $templates = array() ) {
    220231        bbpress()->theme_compat->templates = $templates;
    function bbp_set_theme_compat_templates( $templates = array() ) { 
    228239 * Stash the template file for the current query. Useful if plugins want
    229240 * to override it, or see what file is being included.
    230241 *
    231  * @since bbPress (r3311)
     242 * @since 2.0.0 bbPress (r3311)
    232243 */
    233244function bbp_set_theme_compat_template( $template = '' ) {
    234245        bbpress()->theme_compat->template = $template;
    function bbp_set_theme_compat_template( $template = '' ) { 
    242253 * Stash the original template file for the current query. Useful for checking
    243254 * if bbPress was able to find a more appropriate template.
    244255 *
    245  * @since bbPress (r3926)
     256 * @since 2.1.0 bbPress (r3926)
    246257 */
    247258function bbp_set_theme_compat_original_template( $template = '' ) {
    248259        bbpress()->theme_compat->original_template = $template;
    function bbp_set_theme_compat_original_template( $template = '' ) { 
    256267 * Stash the original template file for the current query. Useful for checking
    257268 * if bbPress was able to find a more appropriate template.
    258269 *
    259  * @since bbPress (r3926)
     270 * @since 2.1.0 bbPress (r3926)
    260271 */
    261272function bbp_is_theme_compat_original_template( $template = '' ) {
    262273        $bbp = bbpress();
    function bbp_is_theme_compat_original_template( $template = '' ) { 
    271282/**
    272283 * Register a new bbPress theme package to the active theme packages array
    273284 *
    274  * @since bbPress (r3829)
     285 * @since 2.1.0 bbPress (r3829)
     286 *
    275287 * @param array $theme
    276288 */
    277289function bbp_register_theme_package( $theme = array(), $override = true ) {
    function bbp_register_theme_package( $theme = array(), $override = true ) { 
    298310 * This fun little function fills up some WordPress globals with dummy data to
    299311 * stop your average page template from complaining about it missing.
    300312 *
    301  * @since bbPress (r3108)
     313 * @since 2.0.0 bbPress (r3108)
     314 *
    302315 * @global WP_Query $wp_query
    303316 * @global object $post
    304317 * @param array $args
    function bbp_theme_compat_reset_post( $args = array() ) { 
    419432 * Reset main query vars and filter 'the_content' to output a bbPress
    420433 * template part as needed.
    421434 *
    422  * @since bbPress (r3032)
     435 * @since 2.0.0 bbPress (r3032)
     436 *
    423437 * @param string $template
    424438 * @uses bbp_is_single_user() To check if page is single user
    425439 * @uses bbp_get_single_user_template() To get user template
    function bbp_template_include_theme_compat( $template = '' ) { 
    804818/**
    805819 * Remove the canonical redirect to allow pretty pagination
    806820 *
    807  * @since bbPress (r2628)
     821 * @since 2.0.0 bbPress (r2628)
    808822 *
    809823 * @param string $redirect_url Redirect url
    810824 * @uses bbp_use_pretty_urls() To check if the blog is using permalinks
    function bbp_redirect_canonical( $redirect_url ) { 
    862876 * Removes all filters from a WordPress filter, and stashes them in the $bbp
    863877 * global in the event they need to be restored later.
    864878 *
    865  * @since bbPress (r3251)
     879 * @since 2.0.0 bbPress (r3251)
     880 *
    866881 * @global WP_filter $wp_filter
    867882 * @global array $merged_filters
    868883 * @param string $tag
    function bbp_remove_all_filters( $tag, $priority = false ) { 
    914929 * Restores filters from the $bbp global that were removed using
    915930 * bbp_remove_all_filters()
    916931 *
    917  * @since bbPress (r3251)
     932 * @since 2.0.0 bbPress (r3251)
     933 *
    918934 * @global WP_filter $wp_filter
    919935 * @global array $merged_filters
    920936 * @param string $tag
    function bbp_restore_all_filters( $tag, $priority = false ) { 
    965981/**
    966982 * Force comments_status to 'closed' for bbPress post types
    967983 *
    968  * @since bbPress (r3589)
     984 * @since 2.1.0 bbPress (r3589)
     985 *
    969986 * @param bool $open True if open, false if closed
    970987 * @param int $post_id ID of the post to check
    971988 * @return bool True if open, false if closed
  • src/includes/core/update.php

    diff --git src/includes/core/update.php src/includes/core/update.php
    index 37ee580..efd274a 100644
    defined( 'ABSPATH' ) || exit; 
    1313/**
    1414 * If there is no raw DB version, this is the first installation
    1515 *
    16  * @since bbPress (r3764)
     16 * @since 2.1.0 bbPress (r3764)
    1717 *
    1818 * @uses get_option()
    1919 * @uses bbp_get_db_version() To get bbPress's database version
    function bbp_is_install() { 
    2626/**
    2727 * Compare the bbPress version to the DB version to determine if updating
    2828 *
    29  * @since bbPress (r3421)
     29 * @since 2.0.0 bbPress (r3421)
    3030 *
    3131 * @uses get_option()
    3232 * @uses bbp_get_db_version() To get bbPress's database version
    function bbp_is_update() { 
    4545 * Note that this function currently is not used in bbPress core and is here
    4646 * for third party plugins to use to check for bbPress activation.
    4747 *
    48  * @since bbPress (r3421)
     48 * @since 2.0.0 bbPress (r3421)
    4949 *
    5050 * @return bool True if activating bbPress, false if not
    5151 */
    function bbp_is_activation( $basename = '' ) { 
    9595/**
    9696 * Determine if bbPress is being deactivated
    9797 *
    98  * @since bbPress (r3421)
     98 * @since 2.0.0 bbPress (r3421)
     99 *
    99100 * @return bool True if deactivating bbPress, false if not
    100101 */
    101102function bbp_is_deactivation( $basename = '' ) {
    function bbp_is_deactivation( $basename = '' ) { 
    144145/**
    145146 * Update the DB to the latest version
    146147 *
    147  * @since bbPress (r3421)
     148 * @since 2.0.0 bbPress (r3421)
     149 *
    148150 * @uses update_option()
    149151 * @uses bbp_get_db_version() To get bbPress's database version
    150152 */
    function bbp_version_bump() { 
    155157/**
    156158 * Setup the bbPress updater
    157159 *
    158  * @since bbPress (r3419)
     160 * @since 2.0.0 bbPress (r3419)
    159161 *
    160162 * @uses bbp_version_updater()
    161163 * @uses bbp_version_bump()
    function bbp_setup_updater() { 
    175177/**
    176178 * Create a default forum, topic, and reply
    177179 *
    178  * @since bbPress (r3767)
     180 * @since 2.1.0 bbPress (r3767)
     181 *
    179182 * @param array $args Array of arguments to override default values
    180183 */
    181184function bbp_create_initial_content( $args = array() ) {
    function bbp_create_initial_content( $args = array() ) { 
    246249 * This is most-often used when the data schema changes, but should also be used
    247250 * to correct issues with bbPress meta-data silently on software update.
    248251 *
    249  * @since bbPress (r4104)
     252 * @since 2.2.0 bbPress (r4104)
    250253 */
    251254function bbp_version_updater() {
    252255
    function bbp_version_updater() { 
    308311/**
    309312 * Redirect user to bbPress's What's New page on activation
    310313 *
    311  * @since bbPress (r4389)
     314 * @since 2.2.0 bbPress (r4389)
    312315 *
    313316 * @internal Used internally to redirect bbPress to the about page on activation
    314317 *
    function bbp_add_activation_redirect() { 
    333336 * the current user a Key Master in the forums if they just activated bbPress,
    334337 * regardless of the bbp_allow_global_access() setting.
    335338 *
    336  * @since bbPress (r4910)
     339 * @since 2.4.0 bbPress (r4910)
    337340 *
    338341 * @internal Used to internally make the current user a keymaster on activation
    339342 *
  • src/includes/extend/akismet.php

    diff --git src/includes/extend/akismet.php src/includes/extend/akismet.php
    index b284918..5192e23 100644
    if ( !class_exists( 'BBP_Akismet' ) ) : 
    1414/**
    1515 * Loads Akismet extension
    1616 *
    17  * @since bbPress (r3277)
     17 * @since 2.0.0 bbPress (r3277)
    1818 *
    1919 * @package bbPress
    2020 * @subpackage Akismet
    class BBP_Akismet { 
    2424        /**
    2525         * The main bbPress Akismet loader
    2626         *
    27          * @since bbPress (r3277)
     27         * @since 2.0.0 bbPress (r3277)
    2828         *
    2929         * @uses add_filter()
    3030         */
    class BBP_Akismet { 
    3535        /**
    3636         * Setup the admin hooks
    3737         *
    38          * @since bbPress (r3277)
     38         * @since 2.0.0 bbPress (r3277)
     39         *
    3940         * @access private
    4041         *
    4142         * @uses add_filter() To add various filters
    class BBP_Akismet { 
    8182        /**
    8283         * Converts topic/reply data into Akismet comment checking format
    8384         *
    84          * @since bbPress (r3277)
     85         * @since 2.0.0 bbPress (r3277)
    8586         *
    8687         * @param string $post_data
    8788         *
    class BBP_Akismet { 
    220221        /**
    221222         * Submit a post for spamming or hamming
    222223         *
    223          * @since bbPress (r3277)
     224         * @since 2.0.0 bbPress (r3277)
    224225         *
    225226         * @param int $post_id
    226227         *
    class BBP_Akismet { 
    362363        /**
    363364         * Ping Akismet service and check for spam/ham response
    364365         *
    365          * @since bbPress (r3277)
     366         * @since 2.0.0 bbPress (r3277)
    366367         *
    367368         * @param array $post_data
    368369         * @param string $check Accepts check|submit
    class BBP_Akismet { 
    441442        /**
    442443         * Update post meta after a spam check
    443444         *
    444          * @since bbPress (r3308)
     445         * @since 2.0.0 bbPress (r3308)
    445446         *
    446447         * @param int $post_id
    447448         * @param object $_post
    class BBP_Akismet { 
    531532        /**
    532533         * Update a post's Akismet history
    533534         *
    534          * @since bbPress (r3308)
     535         * @since 2.0.0 bbPress (r3308)
    535536         *
    536537         * @param int $post_id
    537538         * @param string $message
    class BBP_Akismet { 
    572573        /**
    573574         * Get a post's Akismet history
    574575         *
    575          * @since bbPress (r3308)
     576         * @since 2.0.0 bbPress (r3308)
    576577         *
    577578         * @param int $post_id
    578579         *
    class BBP_Akismet { 
    595596        /**
    596597         * Handle any terms submitted with a post flagged as spam
    597598         *
    598          * @since bbPress (r3308)
     599         * @since 2.0.0 bbPress (r3308)
    599600         *
    600601         * @param string $terms Comma-separated list of terms
    601602         * @param int $topic_id
    class BBP_Akismet { 
    632633         * This code is directly taken from the akismet_http_post() function and
    633634         * documented to bbPress 2.0 standard.
    634635         *
    635          * @since bbPress (r3466)
     636         * @since 2.0.0 bbPress (r3466)
    636637         *
    637638         * @param string $request The request we are sending
    638639         * @param string $host The host to send our request to
    class BBP_Akismet { 
    689690        /**
    690691         * Return a user's roles on this site (including super_admin)
    691692         *
    692          * @since bbPress (r4812)
     693         * @since 2.3.0 bbPress (r4812)
    693694         *
    694695         * @param type $user_id
    695696         * @return boolean
    class BBP_Akismet { 
    723724        /**
    724725         * Add Aksimet History metaboxes to topics and replies
    725726         *
    726          * @since bbPress (r5049)
     727         * @since 2.4.0 bbPress (r5049)
    727728         */
    728729        public function add_metaboxes() {
    729730
    class BBP_Akismet { 
    751752        /**
    752753         * Output for Akismet History metabox
    753754         *
    754          * @since bbPress (r5049)
     755         * @since 2.4.0 bbPress (r5049)
    755756         *
    756757         * @uses get_post_history() To get the Akismet history for the post
    757758         * @uses get_the_ID() To get the post ID
  • src/includes/extend/buddypress/activity.php

    diff --git src/includes/extend/buddypress/activity.php src/includes/extend/buddypress/activity.php
    index 9366f30..20bff29 100644
    if ( !class_exists( 'BBP_BuddyPress_Activity' ) ) : 
    1414/**
    1515 * Loads BuddyPress Activity extension
    1616 *
    17  * @since bbPress (r3395)
     17 * @since 2.0.0 bbPress (r3395)
    1818 *
    1919 * @package bbPress
    2020 * @subpackage BuddyPress
    class BBP_BuddyPress_Activity { 
    8484        /**
    8585         * The bbPress BuddyPress Activity loader
    8686         *
    87          * @since bbPress (r3395)
     87         * @since 2.0.0 bbPress (r3395)
    8888         */
    8989        public function __construct() {
    9090                $this->setup_globals();
    class BBP_BuddyPress_Activity { 
    9696        /**
    9797         * Extension variables
    9898         *
    99          * @since bbPress (r3395)
     99         * @since 2.0.0 bbPress (r3395)
     100         *
    100101         * @access private
    101102         * @uses apply_filters() Calls various filters
    102103         */
    class BBP_BuddyPress_Activity { 
    122123        /**
    123124         * Setup the actions
    124125         *
    125          * @since bbPress (r3395)
     126         * @since 2.0.0 bbPress (r3395)
     127         *
    126128         * @access private
    127129         * @uses add_filter() To add various filters
    128130         * @uses add_action() To add various actions
    class BBP_BuddyPress_Activity { 
    157159        /**
    158160         * Setup the filters
    159161         *
    160          * @since bbPress (r3395)
     162         * @since 2.0.0 bbPress (r3395)
     163         *
    161164         * @access private
    162165         * @uses add_filter() To add various filters
    163166         * @uses add_action() To add various actions
    class BBP_BuddyPress_Activity { 
    175178         * Allow the variables, actions, and filters to be modified by third party
    176179         * plugins and themes.
    177180         *
    178          * @since bbPress (r3902)
     181         * @since 2.1.0 bbPress (r3902)
    179182         */
    180183        private function fully_loaded() {
    181184                do_action_ref_array( 'bbp_buddypress_activity_loaded', array( $this ) );
    class BBP_BuddyPress_Activity { 
    186189        /**
    187190         * Register our activity actions with BuddyPress
    188191         *
    189          * @since bbPress (r3395)
     192         * @since 2.0.0 bbPress (r3395)
     193         *
    190194         * @uses bp_activity_set_action()
    191195         */
    192196        public function register_activity_actions() {
    class BBP_BuddyPress_Activity { 
    199203        /**
    200204         * Wrapper for recoding bbPress actions to the BuddyPress activity stream
    201205         *
    202          * @since bbPress (r3395)
     206         * @since 2.0.0 bbPress (r3395)
     207         *
    203208         * @param type $args Array of arguments for bp_activity_add()
    204209         * @uses bbp_get_current_user_id()
    205210         * @uses bp_core_current_time()
    class BBP_BuddyPress_Activity { 
    232237        /**
    233238         * Wrapper for deleting bbPress actions from BuddyPress activity stream
    234239         *
    235          * @since bbPress (r3395)
     240         * @since 2.0.0 bbPress (r3395)
     241         *
    236242         * @param type $args Array of arguments for bp_activity_add()
    237243         * @uses bbp_get_current_user_id()
    238244         * @uses bp_core_current_time()
    class BBP_BuddyPress_Activity { 
    287293        /**
    288294         * Maybe disable activity stream comments on select actions
    289295         *
    290          * @since bbPress (r3399)
     296         * @since 2.0.0 bbPress (r3399)
     297         *
    291298         * @global BP_Activity_Template $activities_template
    292299         * @param boolean $can_comment
    293300         * @uses bp_get_activity_action_name()
    class BBP_BuddyPress_Activity { 
    325332        /**
    326333         * Maybe link directly to topics and replies in activity stream entries
    327334         *
    328          * @since bbPress (r3399)
     335         * @since 2.0.0 bbPress (r3399)
     336         *
    329337         * @param string $link
    330338         * @param mixed $activity_object
    331339         * @return string The link to the activity stream item
    class BBP_BuddyPress_Activity { 
    349357        /**
    350358         * Append forum options to activity filter select box
    351359         *
    352          * @since bbPress (r3653)
     360         * @since 2.1.0 bbPress (r3653)
    353361         */
    354362        function activity_filter_options() {
    355363        ?>
    class BBP_BuddyPress_Activity { 
    365373        /**
    366374         * Record an activity stream entry when a topic is created or updated
    367375         *
    368          * @since bbPress (r3395)
     376         * @since 2.0.0 bbPress (r3395)
     377         *
    369378         * @param int $topic_id
    370379         * @param int $forum_id
    371380         * @param array $anonymous_data
    class BBP_BuddyPress_Activity { 
    512521        /**
    513522         * Record an activity stream entry when a reply is created
    514523         *
    515          * @since bbPress (r3395)
     524         * @since 2.0.0 bbPress (r3395)
     525         *
    516526         * @param int $topic_id
    517527         * @param int $forum_id
    518528         * @param array $anonymous_data
  • src/includes/extend/buddypress/functions.php

    diff --git src/includes/extend/buddypress/functions.php src/includes/extend/buddypress/functions.php
    index 14c0fec..07a2979 100644
    defined( 'ABSPATH' ) || exit; 
    1818 *
    1919 * This is used primarily for Notifications integration.
    2020 *
    21  * @since bbPress (r5232)
     21 * @since 2.6.0 bbPress (r5232)
     22 *
    2223 * @return string
    2324 */
    2425function bbp_get_component_name() {
    function bbp_get_component_name() { 
    3839/**
    3940 * Filter the current bbPress user ID with the current BuddyPress user ID
    4041 *
    41  * @since bbPress (r3552)
     42 * @since 2.1.0 bbPress (r3552)
    4243 *
    4344 * @param int $user_id
    4445 * @param bool $displayed_user_fallback
    add_filter( 'bbp_get_user_id', 'bbp_filter_user_id', 10, 3 ); 
    7778/**
    7879 * Filter the bbPress is_single_user function with BuddyPress eqivalent
    7980 *
    80  * @since bbPress (r3552)
     81 * @since 2.1.0 bbPress (r3552)
    8182 *
    8283 * @param bool $is Optional. Default false
    8384 * @return bool True if viewing single user, false if not
    add_filter( 'bbp_is_single_user', 'bbp_filter_is_single_user', 10, 1 ); 
    9495/**
    9596 * Filter the bbPress is_user_home function with BuddyPress eqivalent
    9697 *
    97  * @since bbPress (r3552)
     98 * @since 2.1.0 bbPress (r3552)
    9899 *
    99100 * @param bool $is Optional. Default false
    100101 * @return bool True if viewing single user, false if not
    add_filter( 'bbp_is_user_home', 'bbp_filter_is_user_home', 10, 1 ); 
    111112/**
    112113 * Add the topic title to the <title> if viewing a single group forum topic
    113114 *
    114  * @since bbPress (r5161)
     115 * @since 2.5.0 bbPress (r5161)
    115116 *
    116117 * @param string $new_title The title to filter
    117118 * @param string $old_title (Not used)
    add_action( 'bp_modify_page_title', 'bbp_filter_modify_page_title', 10, 3 ); 
    149150/**
    150151 * Hook bbPress topics template into plugins template
    151152 *
    152  * @since bbPress (r3552)
     153 * @since 2.1.0 bbPress (r3552)
    153154 *
    154155 * @uses add_action() To add the content hook
    155156 * @uses bp_core_load_template() To load the plugins template
    function bbp_member_forums_screen_topics() { 
    162163/**
    163164 * Hook bbPress replies template into plugins template
    164165 *
    165  * @since bbPress (r3552)
     166 * @since 2.1.0 bbPress (r3552)
    166167 *
    167168 * @uses add_action() To add the content hook
    168169 * @uses bp_core_load_template() To load the plugins template
    function bbp_member_forums_screen_replies() { 
    175176/**
    176177 * Hook bbPress favorites template into plugins template
    177178 *
    178  * @since bbPress (r3552)
     179 * @since 2.1.0 bbPress (r3552)
    179180 *
    180181 * @uses add_action() To add the content hook
    181182 * @uses bp_core_load_template() To load the plugins template
    function bbp_member_forums_screen_favorites() { 
    188189/**
    189190 * Hook bbPress subscriptions template into plugins template
    190191 *
    191  * @since bbPress (r3552)
     192 * @since 2.1.0 bbPress (r3552)
    192193 *
    193194 * @uses add_action() To add the content hook
    194195 * @uses bp_core_load_template() To load the plugins template
    function bbp_member_forums_screen_subscriptions() { 
    203204/**
    204205 * Get the topics created template part
    205206 *
    206  * @since bbPress (r3552)
     207 * @since 2.1.0 bbPress (r3552)
    207208 *
    208209 * @uses bbp_get_template_part()s
    209210 */
    function bbp_member_forums_topics_content() { 
    222223/**
    223224 * Get the topics replied to template part
    224225 *
    225  * @since bbPress (r3552)
     226 * @since 2.1.0 bbPress (r3552)
    226227 *
    227228 * @uses bbp_get_template_part()
    228229 */
    function bbp_member_forums_replies_content() { 
    241242/**
    242243 * Get the topics favorited template part
    243244 *
    244  * @since bbPress (r3552)
     245 * @since 2.1.0 bbPress (r3552)
    245246 *
    246247 * @uses bbp_get_template_part()
    247248 */
    function bbp_member_forums_favorites_content() { 
    260261/**
    261262 * Get the topics subscribed template part
    262263 *
    263  * @since bbPress (r3552)
     264 * @since 2.1.0 bbPress (r3552)
    264265 *
    265266 * @uses bbp_get_template_part()
    266267 */
    function bbp_member_forums_subscriptions_content() { 
    289290 * Get forum ID's for a group
    290291 *
    291292 * @param type $group_id
    292  * @since bbPress (r3653)
     293 * @since 2.1.0 bbPress (r3653)
    293294 */
    294295function bbp_get_group_forum_ids( $group_id = 0 ) {
    295296
    function bbp_get_group_forum_ids( $group_id = 0 ) { 
    321322 * Get group ID's for a forum
    322323 *
    323324 * @param type $forum_id
    324  * @since bbPress (r3653)
     325 * @since 2.1.0 bbPress (r3653)
    325326 */
    326327function bbp_get_forum_group_ids( $forum_id = 0 ) {
    327328
    function bbp_get_forum_group_ids( $forum_id = 0 ) { 
    353354 * Get forum ID's for a group
    354355 *
    355356 * @param type $group_id
    356  * @since bbPress (r3653)
     357 * @since 2.1.0 bbPress (r3653)
    357358 */
    358359function bbp_update_group_forum_ids( $group_id = 0, $forum_ids = array() ) {
    359360
    function bbp_update_group_forum_ids( $group_id = 0, $forum_ids = array() ) { 
    373374 * Update group ID's for a forum
    374375 *
    375376 * @param type $forum_id
    376  * @since bbPress (r3653)
     377 * @since 2.1.0 bbPress (r3653)
    377378 */
    378379function bbp_update_forum_group_ids( $forum_id = 0, $group_ids = array() ) {
    379380        $forum_id = bbp_get_forum_id( $forum_id );
    function bbp_update_forum_group_ids( $forum_id = 0, $group_ids = array() ) { 
    389390 * Add a group to a forum
    390391 *
    391392 * @param type $group_id
    392  * @since bbPress (r3653)
     393 * @since 2.1.0 bbPress (r3653)
    393394 */
    394395function bbp_add_group_id_to_forum( $forum_id = 0, $group_id = 0 ) {
    395396
    function bbp_add_group_id_to_forum( $forum_id = 0, $group_id = 0 ) { 
    415416 * Remove a forum from a group
    416417 *
    417418 * @param type $group_id
    418  * @since bbPress (r3653)
     419 * @since 2.1.0 bbPress (r3653)
    419420 */
    420421function bbp_add_forum_id_to_group( $group_id = 0, $forum_id = 0 ) {
    421422
    function bbp_add_forum_id_to_group( $group_id = 0, $forum_id = 0 ) { 
    441442 * Remove a group from a forum
    442443 *
    443444 * @param type $group_id
    444  * @since bbPress (r3653)
     445 * @since 2.1.0 bbPress (r3653)
    445446 */
    446447function bbp_remove_group_id_from_forum( $forum_id = 0, $group_id = 0 ) {
    447448
    function bbp_remove_group_id_from_forum( $forum_id = 0, $group_id = 0 ) { 
    467468 * Remove a forum from a group
    468469 *
    469470 * @param type $group_id
    470  * @since bbPress (r3653)
     471 * @since 2.1.0 bbPress (r3653)
    471472 */
    472473function bbp_remove_forum_id_from_group( $group_id = 0, $forum_id = 0 ) {
    473474
    function bbp_remove_forum_id_from_group( $group_id = 0, $forum_id = 0 ) { 
    493494 * Remove a group from aall forums
    494495 *
    495496 * @param type $group_id
    496  * @since bbPress (r3653)
     497 * @since 2.1.0 bbPress (r3653)
    497498 */
    498499function bbp_remove_group_id_from_all_forums( $group_id = 0 ) {
    499500
    function bbp_remove_group_id_from_all_forums( $group_id = 0 ) { 
    515516 * Remove a forum from all groups
    516517 *
    517518 * @param type $forum_id
    518  * @since bbPress (r3653)
     519 * @since 2.1.0 bbPress (r3653)
    519520 */
    520521function bbp_remove_forum_id_from_all_groups( $forum_id = 0 ) {
    521522
    function bbp_remove_forum_id_from_all_groups( $forum_id = 0 ) { 
    532533/**
    533534 * Return true if a forum is a group forum
    534535 *
    535  * @since bbPress (r4571)
     536 * @since 2.3.0 bbPress (r4571)
    536537 *
    537538 * @param int $forum_id
    538539 * @uses bbp_get_forum_id() To get the forum id
    function bbp_is_forum_group_forum( $forum_id = 0 ) { 
    559560/**
    560561 * Is the current user an admin of the current group
    561562 *
    562  * @since bbPress (r4632)
     563 * @since 2.3.0 bbPress (r4632)
    563564 *
    564565 * @uses is_user_logged_in()
    565566 * @uses bp_is_group()
    function bbp_group_is_admin() { 
    590591/**
    591592 * Is the current user a moderator of the current group
    592593 *
    593  * @since bbPress (r4632)
     594 * @since 2.3.0 bbPress (r4632)
    594595 *
    595596 * @uses is_user_logged_in()
    596597 * @uses bp_is_group()
    function bbp_group_is_mod() { 
    621622/**
    622623 * Is the current user a member of the current group
    623624 *
    624  * @since bbPress (r4632)
     625 * @since 2.3.0 bbPress (r4632)
    625626 *
    626627 * @uses is_user_logged_in()
    627628 * @uses bp_is_group()
    function bbp_group_is_member() { 
    652653/**
    653654 * Is the current user banned from the current group
    654655 *
    655  * @since bbPress (r4632)
     656 * @since 2.3.0 bbPress (r4632)
    656657 *
    657658 * @uses is_user_logged_in()
    658659 * @uses bp_is_group()
    function bbp_group_is_banned() { 
    683684/**
    684685 * Is the current user the creator of the current group
    685686 *
    686  * @since bbPress (r4632)
     687 * @since 2.3.0 bbPress (r4632)
    687688 *
    688689 * @uses is_user_logged_in()
    689690 * @uses bp_is_group()
  • src/includes/extend/buddypress/groups.php

    diff --git src/includes/extend/buddypress/groups.php src/includes/extend/buddypress/groups.php
    index c7b5167..408bf1e 100644
    if ( !class_exists( 'BBP_Forums_Group_Extension' ) && class_exists( 'BP_Group_Ex 
    1818/**
    1919 * Loads Group Extension for Forums Component
    2020 *
    21  * @since bbPress (r3552)
     21 * @since 2.1.0 bbPress (r3552)
    2222 *
    2323 * @package bbPress
    2424 * @subpackage BuddyPress
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    3030        /**
    3131         * Setup bbPress group extension variables
    3232         *
    33          * @since bbPress (r3552)
     33         * @since 2.1.0 bbPress (r3552)
    3434         */
    3535        public function __construct() {
    3636                $this->setup_variables();
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    4242        /**
    4343         * Setup the group forums class variables
    4444         *
    45          * @since bbPress (r3552)
     45         * @since 2.1.0 bbPress (r3552)
    4646         */
    4747        private function setup_variables() {
    4848
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    7575        /**
    7676         * Setup the group forums class actions
    7777         *
    78          * @since bbPress (r4552)
     78         * @since 2.3.0 bbPress (r4552)
    7979         */
    8080        private function setup_actions() {
    8181
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    104104        /**
    105105         * Setup the group forums class filters
    106106         *
    107          * @since bbPress (r4552)
     107         * @since 2.3.0 bbPress (r4552)
    108108         */
    109109        private function setup_filters() {
    110110
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    149149        /**
    150150         * The primary display function for group forums
    151151         *
    152          * @since bbPress (r3746)
     152         * @since 2.1.0 bbPress (r3746)
    153153         *
    154154         * @param int $group_id ID of the current group. Available only on BP 2.2+.
    155155         */
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    174174        /**
    175175         * Maybe unset the group forum nav item if group does not have a forum
    176176         *
    177          * @since bbPress (r4552)
     177         * @since 2.3.0 bbPress (r4552)
    178178         *
    179179         * @return If not viewing a single group
    180180         */
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    195195        /**
    196196         * Allow group members to have advanced priviledges in group forum topics.
    197197         *
    198          * @since bbPress (r4434)
     198         * @since 2.2.0 bbPress (r4434)
    199199         *
    200200         * @param array $caps
    201201         * @param string $cap
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    245245        /**
    246246         * Remove the topic meta cap map, so it doesn't interfere with sidebars.
    247247         *
    248          * @since bbPress (r4434)
     248         * @since 2.2.0 bbPress (r4434)
    249249         */
    250250        public function remove_group_forum_meta_cap_map() {
    251251                remove_filter( 'bbp_map_meta_caps', array( $this, 'map_group_forum_meta_caps' ), 99, 4 );
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    256256        /**
    257257         * Show forums and new forum form when editing a group
    258258         *
    259          * @since bbPress (r3563)
     259         * @since 2.1.0 bbPress (r3563)
    260260         *
    261261         * @param object $group (the group to edit if in Group Admin UI)
    262262         * @uses is_admin() To check if we're in the Group Admin UI
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    322322        /**
    323323         * Save the Group Forum data on edit
    324324         *
    325          * @since bbPress (r3465)
     325         * @since 2.0.0 bbPress (r3465)
    326326         *
    327327         * @param int $group_id (to handle Group Admin UI hook bp_group_admin_edit_after )
    328328         * @uses bbp_new_forum_handler() To check for forum creation
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    433433        /**
    434434         * Adds a metabox to BuddyPress Group Admin UI
    435435         *
    436          * @since bbPress (r4814)
     436         * @since 2.3.0 bbPress (r4814)
    437437         *
    438438         * @uses add_meta_box
    439439         * @uses BBP_Forums_Group_Extension::group_admin_ui_display_metabox() To display the edit screen
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    452452        /**
    453453         * Displays the bbPress metabox in BuddyPress Group Admin UI
    454454         *
    455          * @since bbPress (r4814)
     455         * @since 2.3.0 bbPress (r4814)
    456456         *
    457457         * @param object $item (group object)
    458458         * @uses add_meta_box
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    467467        /**
    468468         * Show forums and new forum form when creating a group
    469469         *
    470          * @since bbPress (r3465)
     470         * @since 2.0.0 bbPress (r3465)
    471471         */
    472472        public function create_screen( $group_id = 0 ) {
    473473
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    497497        /**
    498498         * Save the Group Forum data on create
    499499         *
    500          * @since bbPress (r3465)
     500         * @since 2.0.0 bbPress (r3465)
    501501         */
    502502        public function create_screen_save( $group_id = 0 ) {
    503503
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    584584        /**
    585585         * Used to start an output buffer
    586586         *
    587          * @since bbPress (r3746)
     587         * @since 2.1.0 bbPress (r3746)
    588588         */
    589589        public function ob_start() {
    590590                ob_start();
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    593593        /**
    594594         * Used to end an output buffer
    595595         *
    596          * @since bbPress (r3746)
     596         * @since 2.1.0 bbPress (r3746)
    597597         */
    598598        public function ob_end_clean() {
    599599                ob_end_clean();
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    602602        /**
    603603         * Creating a group forum or category (including root for group)
    604604         *
    605          * @since bbPress (r3653)
     605         * @since 2.1.0 bbPress (r3653)
    606606         *
    607607         * @param type $forum_args
    608608         * @uses bbp_get_forum_id()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    629629        /**
    630630         * Removing a group forum or category (including root for group)
    631631         *
    632          * @since bbPress (r3653)
     632         * @since 2.1.0 bbPress (r3653)
    633633         *
    634634         * @param type $forum_args
    635635         * @uses bbp_get_forum_id()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    656656        /**
    657657         * Listening to BuddyPress Group deletion to remove the forum
    658658         *
    659          * @since bbPress (r4815)
     659         * @since 2.3.0 bbPress (r4815)
    660660         *
    661661         * @param int $group_id The group ID
    662662         * @uses bbp_get_group_forum_ids()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    735735        /**
    736736         * Toggle the enable_forum group setting on or off
    737737         *
    738          * @since bbPress (r4612)
     738         * @since 2.3.0 bbPress (r4612)
    739739         *
    740740         * @param int $group_id The group to toggle
    741741         * @param bool $enabled True for on, false for off
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    778778         * As of right now, bbPress only supports 1-to-1 group forum relationships.
    779779         * In the future, many-to-many should be allowed.
    780780         *
    781          * @since bbPress (r3653)
     781         * @since 2.1.0 bbPress (r3653)
    782782         *
    783783         * @uses bp_get_current_group_id()
    784784         * @uses bbp_get_group_forum_ids()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    977977        /**
    978978         * Strip super stickies from the topic query
    979979         *
    980          * @since bbPress (r4810)
     980         * @since 2.3.0 bbPress (r4810)
    981981         *
    982982         * @access private
    983983         * @param array $super the super sticky post ID's
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    991991        /**
    992992         * Unset the type super sticky from topic type
    993993         *
    994          * @since bbPress (r4810)
     994         * @since 2.3.0 bbPress (r4810)
    995995         *
    996996         * @access private
    997997         * @param array $args
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    10071007        /**
    10081008         * Ugly preg_replace to hide the to front admin link
    10091009         *
    1010          * @since bbPress (r4810)
     1010         * @since 2.3.0 bbPress (r4810)
    10111011         *
    10121012         * @access private
    10131013         * @param string $retval
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    10271027        /**
    10281028         * Redirect to the group forum screen
    10291029         *
    1030          * @since bbPress (r3653)
     1030         * @since 2.1.0 bbPress (r3653)
    10311031         *
    10321032         * @param str $redirect_url
    10331033         * @param str $redirect_to
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    10451045        /**
    10461046         * Redirect to the group forum screen
    10471047         *
    1048          * @since bbPress (r3653)
     1048         * @since 2.1.0 bbPress (r3653)
    10491049         */
    10501050        public function new_reply_redirect_to( $redirect_url = '', $redirect_to = '', $reply_id = 0 ) {
    10511051
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    10781078        /**
    10791079         * Redirect to the group admin forum edit screen
    10801080         *
    1081          * @since bbPress (r3653)
     1081         * @since 2.1.0 bbPress (r3653)
    10821082         *
    10831083         * @uses groups_get_current_group()
    10841084         * @uses bp_is_group_admin_screen()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    11041104        /**
    11051105         * Prevent Forum Parent from appearing
    11061106         *
    1107          * @since bbPress (r3746)
     1107         * @since 2.1.0 bbPress (r3746)
    11081108         */
    11091109
    11101110        public function forum_parent() {
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    11181118        /**
    11191119         * Prevent Topic Parent from appearing
    11201120         *
    1121          * @since bbPress (r3746)
     1121         * @since 2.1.0 bbPress (r3746)
    11221122         *
    11231123         * @uses bbp_get_group_forum_ids() to get BuddyPress group forums
    11241124         * @uses bbp_dropdown() To show a dropdown of the forums for forum parent
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    11391139        /**
    11401140         * Permissions to view the 'New Topic'/'Reply To' form in a BuddyPress group.
    11411141         *
    1142          * @since bbPress (r4608)
     1142         * @since 2.3.0 bbPress (r4608)
    11431143         *
    11441144         * @param bool $retval Are we allowed to view the reply form?
    11451145         * @uses bp_is_group() To determine if we're on a group page
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    11841184         * Due to the way BuddyPress' group admin settings page saves its settings,
    11851185         * we need to let BP know that bbPress added a forum.
    11861186         *
    1187          * @since bbPress (r5026)
     1187         * @since 2.4.0 bbPress (r5026)
    11881188         *
    11891189         * @link https://bbpress.trac.wordpress.org/ticket/2339/
    11901190         * @see groups_screen_group_admin_settings()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    12061206        /**
    12071207         * Maybe map a bbPress forum/topic/reply permalink to the corresponding group
    12081208         *
    1209          * @since bbPress (r4266)
     1209         * @since 2.2.0 bbPress (r4266)
    12101210         *
    12111211         * @param int $post_id
    12121212         * @uses get_post()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    12771277        /**
    12781278         * Map a forum permalink to its corresponding group
    12791279         *
    1280          * @since bbPress (r3802)
     1280         * @since 2.1.0 bbPress (r3802)
    12811281         *
    12821282         * @param string $url
    12831283         * @param int $forum_id
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    12911291        /**
    12921292         * Map a topic permalink to its group forum
    12931293         *
    1294          * @since bbPress (r3802)
     1294         * @since 2.1.0 bbPress (r3802)
    12951295         *
    12961296         * @param string $url
    12971297         * @param int $topic_id
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    13051305        /**
    13061306         * Map a reply permalink to its group forum
    13071307         *
    1308          * @since bbPress (r3802)
     1308         * @since 2.1.0 bbPress (r3802)
    13091309         *
    13101310         * @param string $url
    13111311         * @param int $reply_id
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    13191319        /**
    13201320         * Map a reply edit link to its group forum
    13211321         *
    1322          * @since bbPress (r4266)
     1322         * @since 2.2.0 bbPress (r4266)
    13231323         *
    13241324         * @param string $url
    13251325         * @param int $reply_id
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    13391339        /**
    13401340         * Map a post link to its group forum
    13411341         *
    1342          * @since bbPress (r4266)
     1342         * @since 2.2.0 bbPress (r4266)
    13431343         *
    13441344         * @param string $url
    13451345         * @param obj $post
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    13541354        /**
    13551355         * Map a page link to its group forum
    13561356         *
    1357          * @since bbPress (r4266)
     1357         * @since 2.2.0 bbPress (r4266)
    13581358         *
    13591359         * @param string $url
    13601360         * @param int $post_id
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    13691369        /**
    13701370         * Map a custom post type link to its group forum
    13711371         *
    1372          * @since bbPress (r4266)
     1372         * @since 2.2.0 bbPress (r4266)
    13731373         *
    13741374         * @param string $url
    13751375         * @param obj $post
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    13851385        /**
    13861386         * Fix pagination of topics on forum view
    13871387         *
    1388          * @since bbPress (r4266)
     1388         * @since 2.2.0 bbPress (r4266)
    13891389         *
    13901390         * @param array $args
    13911391         * @uses bbp_get_forum_id()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    14071407        /**
    14081408         * Fix pagination of replies on topic view
    14091409         *
    1410          * @since bbPress (r4266)
     1410         * @since 2.2.0 bbPress (r4266)
    14111411         *
    14121412         * @param array $args
    14131413         * @uses bbp_get_topic_id()
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    14291429         * Ensure that forum content associated with a BuddyPress group can only be
    14301430         * viewed via the group URL.
    14311431         *
    1432          * @since bbPress (r3802)
     1432         * @since 2.1.0 bbPress (r3802)
    14331433         */
    14341434        public function redirect_canonical() {
    14351435
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    14741474        /**
    14751475         * Map a forum post to its corresponding group in the group activity stream.
    14761476         *
    1477          * @since bbPress (r4396)
     1477         * @since 2.2.0 bbPress (r4396)
    14781478         *
    14791479         * @param array $args Arguments from BBP_BuddyPress_Activity::record_activity()
    14801480         * @uses groups_get_current_group() To see if we're posting from a BP group
  • src/includes/extend/buddypress/loader.php

    diff --git src/includes/extend/buddypress/loader.php src/includes/extend/buddypress/loader.php
    index 01f4b5c..5dde500 100644
    if ( !class_exists( 'BBP_Forums_Component' ) ) : 
    2424/**
    2525 * Loads Forums Component
    2626 *
    27  * @since bbPress (r3552)
     27 * @since 2.1.0 bbPress (r3552)
    2828 *
    2929 * @package bbPress
    3030 * @subpackage BuddyPress
    class BBP_Forums_Component extends BP_Component { 
    3434        /**
    3535         * Start the forums component creation process
    3636         *
    37          * @since bbPress (r3552)
     37         * @since 2.1.0 bbPress (r3552)
    3838         */
    3939        public function __construct() {
    4040                parent::start(
    class BBP_Forums_Component extends BP_Component { 
    8383         * The BP_FORUMS_SLUG constant is deprecated, and only used here for
    8484         * backwards compatibility.
    8585         *
    86          * @since bbPress (r3552)
     86         * @since 2.1.0 bbPress (r3552)
    8787         */
    8888        public function setup_globals( $args = array() ) {
    8989                $bp = buddypress();
    class BBP_Forums_Component extends BP_Component { 
    113113        /**
    114114         * Setup the actions
    115115         *
    116          * @since bbPress (r3395)
     116         * @since 2.0.0 bbPress (r3395)
     117         *
    117118         * @access private
    118119         * @uses add_filter() To add various filters
    119120         * @uses add_action() To add various actions
    class BBP_Forums_Component extends BP_Component { 
    130131        /**
    131132         * Instantiate classes for BuddyPress integration
    132133         *
    133          * @since bbPress (r3395)
     134         * @since 2.0.0 bbPress (r3395)
    134135         */
    135136        public function setup_components() {
    136137
    class BBP_Forums_Component extends BP_Component { 
    152153         * Allow the variables, actions, and filters to be modified by third party
    153154         * plugins and themes.
    154155         *
    155          * @since bbPress (r3902)
     156         * @since 2.1.0 bbPress (r3902)
    156157         */
    157158        private function fully_loaded() {
    158159                do_action_ref_array( 'bbp_buddypress_loaded', array( $this ) );
    class BBP_Forums_Component extends BP_Component { 
    161162        /**
    162163         * Setup BuddyBar navigation
    163164         *
    164          * @since bbPress (r3552)
     165         * @since 2.1.0 bbPress (r3552)
    165166         */
    166167        public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    167168
    class BBP_Forums_Component extends BP_Component { 
    249250        /**
    250251         * Set up the admin bar
    251252         *
    252          * @since bbPress (r3552)
     253         * @since 2.1.0 bbPress (r3552)
    253254         */
    254255        public function setup_admin_bar( $wp_admin_nav = array() ) {
    255256
    class BBP_Forums_Component extends BP_Component { 
    325326        /**
    326327         * Sets up the title for pages and <title>
    327328         *
    328          * @since bbPress (r3552)
     329         * @since 2.1.0 bbPress (r3552)
    329330         */
    330331        public function setup_title() {
    331332                $bp = buddypress();
  • src/includes/extend/buddypress/members.php

    diff --git src/includes/extend/buddypress/members.php src/includes/extend/buddypress/members.php
    index 054c630..26d90ec 100644
    if ( !class_exists( 'BBP_Forums_Members' ) ) : 
    1414/**
    1515 * Member profile modifications
    1616 *
    17  * @since bbPress (r4395)
     17 * @since 2.2.0 bbPress (r4395)
    1818 *
    1919 * @package bbPress
    2020 * @subpackage BuddyPress
    class BBP_BuddyPress_Members { 
    2424        /**
    2525         * Main constructor for modifying bbPress profile links
    2626         *
    27          * @since bbPress (r4395)
     27         * @since 2.2.0 bbPress (r4395)
    2828         */
    2929        public function __construct() {
    3030                $this->setup_actions();
    class BBP_BuddyPress_Members { 
    3434        /**
    3535         * Setup the actions
    3636         *
    37          * @since bbPress (r4395)
     37         * @since 2.2.0 bbPress (r4395)
    3838         *
    3939         * @access private
    4040         * @uses add_filter() To add various filters
    class BBP_BuddyPress_Members { 
    6161        /**
    6262         * Setup the filters
    6363         *
    64          * @since bbPress (r4395)
     64         * @since 2.2.0 bbPress (r4395)
    6565         *
    6666         * @access private
    6767         * @uses add_filter() To add various filters
    class BBP_BuddyPress_Members { 
    7878        /**
    7979         * Override bbPress profile URL with BuddyPress profile URL
    8080         *
    81          * @since bbPress (r3401)
     81         * @since 2.0.0 bbPress (r3401)
     82         *
    8283         * @param string $url
    8384         * @param int $user_id
    8485         * @param string $user_nicename
    class BBP_BuddyPress_Members { 
    126127        /**
    127128         * Override bbPress favorites URL with BuddyPress profile URL
    128129         *
    129          * @since bbPress (r3721)
     130         * @since 2.1.0 bbPress (r3721)
     131         *
    130132         * @param string $url
    131133         * @param int $user_id
    132134         * @return string
    class BBP_BuddyPress_Members { 
    146148        /**
    147149         * Override bbPress subscriptions URL with BuddyPress profile URL
    148150         *
    149          * @since bbPress (r3721)
     151         * @since 2.1.0 bbPress (r3721)
     152         *
    150153         * @param string $url
    151154         * @param int $user_id
    152155         * @return string
    class BBP_BuddyPress_Members { 
    167170         * Set favorites and subscriptions query variables if viewing member profile
    168171         * pages.
    169172         *
    170          * @since bbPress (r4615)
     173         * @since 2.3.0 bbPress (r4615)
    171174         *
    172175         * @global WP_Query $wp_query
    173176         * @return If not viewing your own profile
  • src/includes/extend/buddypress/notifications.php

    diff --git src/includes/extend/buddypress/notifications.php src/includes/extend/buddypress/notifications.php
    index d15b83d..42c3ef6 100644
     
    44 * Filter registered notifications components, and add 'forums' to the queried
    55 * 'component_name' array.
    66 *
    7  * @since bbPress (r5232)
     7 * @since 2.6.0 bbPress (r5232)
    88 *
    99 * @see BP_Notifications_Notification::get()
    1010 * @param array $component_names
    add_filter( 'bp_notifications_get_registered_components', 'bbp_filter_notificati 
    2828/**
    2929 * Format the BuddyBar/Toolbar notifications
    3030 *
    31  * @since bbPress (r5155)
     31 * @since 2.5.0 bbPress (r5155)
    3232 *
    3333 * @package bbPress
    3434 *
    add_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypres 
    8585 * Hooked into the new reply function, this notification action is responsible
    8686 * for notifying topic and hierarchical reply authors of topic replies.
    8787 *
    88  * @since bbPress (r5156)
     88 * @since 2.5.0 bbPress (r5156)
    8989 *
    9090 * @param int $reply_id
    9191 * @param int $topic_id
    add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 ); 
    139139/**
    140140 * Mark notifications as read when reading a topic
    141141 *
    142  * @since bbPress (r5155)
     142 * @since 2.5.0 bbPress (r5155)
    143143 *
    144144 * @return If not trying to mark a notification as read
    145145 */
  • src/includes/forums/capabilities.php

    diff --git src/includes/forums/capabilities.php src/includes/forums/capabilities.php
    index aa57030..972316c 100644
     
    1212/**
    1313 * Return forum capabilities
    1414 *
    15  * @since bbPress (r2593)
     15 * @since 2.0.0 bbPress (r2593)
    1616 *
    1717 * @uses apply_filters() Calls 'bbp_get_forum_caps' with the capabilities
    1818 * @return array Forum capabilities
    function bbp_get_forum_caps() { 
    3232/**
    3333 * Maps forum capabilities
    3434 *
    35  * @since bbPress (r4242)
     35 * @since 2.2.0 bbPress (r4242)
    3636 *
    3737 * @param array $caps Capabilities for meta capability
    3838 * @param string $cap Capability name
    function bbp_map_forum_meta_caps( $caps = array(), $cap = '', $user_id = 0, $arg 
    196196/**
    197197 * Return forum moderator capabilities
    198198 *
    199  * @since bbPress (r5834)
     199 * @since 2.6.0 bbPress (r5834)
    200200 *
    201201 * @uses apply_filters() Calls 'bbp_get_forum_mod_caps' with the capabilities
    202202 *
    function bbp_get_forum_mod_caps() { 
    214214/**
    215215 * Maps forum moderator capabilities
    216216 *
    217  * @since bbPress (r5834)
     217 * @since 2.6.0 bbPress (r5834)
    218218 *
    219219 * @param array  $caps Capabilities for meta capability.
    220220 * @param string $cap Capability name.
    function bbp_map_forum_mod_meta_caps( $caps, $cap, $user_id, $args ) { 
    246246/**
    247247 * Get moderators of a forum
    248248 *
    249  * @since bbPress (r5834)
     249 * @since 2.6.0 bbPress (r5834)
    250250 *
    251251 * @param int $forum_id Forum id.
    252252 * @uses bbp_get_forum_id() To get the forum id
    function bbp_get_forum_moderator_ids( $forum_id = 0 ) { 
    298298/**
    299299 * Get forums of a moderator
    300300 *
    301  * @since bbPress (r5834)
     301 * @since 2.6.0 bbPress (r5834)
    302302 *
    303303 * @param int $user_id User id.
    304304 * @uses get_userdata() To get the user object
    function bbp_get_moderator_forum_ids( $user_id = 0 ) { 
    355355/**
    356356 * Can a user moderate a forum?
    357357 *
    358  * @since bbPress (r5834)
     358 * @since 2.6.0 bbPress (r5834)
    359359 *
    360360 * @param int $user_id User id.
    361361 * @param int $forum_id Forum id.
  • src/includes/forums/functions.php

    diff --git src/includes/forums/functions.php src/includes/forums/functions.php
    index 517f0f9..f89788f 100644
    defined( 'ABSPATH' ) || exit; 
    1616 * A wrapper for wp_insert_post() that also includes the necessary meta values
    1717 * for the forum to function properly.
    1818 *
    19  * @since bbPress (r3349)
     19 * @since 2.0.0 bbPress (r3349)
    2020 *
    2121 * @uses bbp_parse_args()
    2222 * @uses bbp_get_forum_post_type()
    function bbp_edit_forum_handler( $action = '' ) { 
    642642/**
    643643 * Handle the saving of core forum metadata (Status, Visibility, and Type)
    644644 *
    645  * @since bbPress (r3678)
     645 * @since 2.1.0 bbPress (r3678)
     646 *
    646647 * @param int $forum_id
    647648 * @uses bbp_is_forum_closed() To check if forum is closed
    648649 * @uses bbp_close_forum() To close forum
    function bbp_save_forum_extras( $forum_id = 0 ) { 
    726727                /**
    727728                 * Allow custom forum visibility save actions
    728729                 *
    729                  * @since bbPress (r5855)
     730                 * @since 2.6.0 bbPress (r5855)
    730731                 *
    731732                 * @param int    $forum_id       The forum ID
    732733                 * @param string $old_visibility The current forum visibility
    function bbp_save_forum_extras( $forum_id = 0 ) { 
    741742/**
    742743 * Closes a forum
    743744 *
    744  * @since bbPress (r2746)
     745 * @since 2.0.0 bbPress (r2746)
    745746 *
    746747 * @param int $forum_id forum id
    747748 * @uses do_action() Calls 'bbp_close_forum' with the forum id
    function bbp_close_forum( $forum_id = 0 ) { 
    765766/**
    766767 * Opens a forum
    767768 *
    768  * @since bbPress (r2746)
     769 * @since 2.0.0 bbPress (r2746)
    769770 *
    770771 * @param int $forum_id forum id
    771772 * @uses do_action() Calls 'bbp_open_forum' with the forum id
    function bbp_open_forum( $forum_id = 0 ) { 
    792793/**
    793794 * Make the forum a category
    794795 *
    795  * @since bbPress (r2746)
     796 * @since 2.0.0 bbPress (r2746)
    796797 *
    797798 * @param int $forum_id Optional. Forum id
    798799 * @uses update_post_meta() To update the forum category meta
    function bbp_categorize_forum( $forum_id = 0 ) { 
    814815/**
    815816 * Remove the category status from a forum
    816817 *
    817  * @since bbPress (r2746)
     818 * @since 2.0.0 bbPress (r2746)
    818819 *
    819820 * @param int $forum_id Optional. Forum id
    820821 * @uses delete_post_meta() To delete the forum category meta
    function bbp_normalize_forum( $forum_id = 0 ) { 
    838839/**
    839840 * Mark the forum as public
    840841 *
    841  * @since bbPress (r2746)
     842 * @since 2.0.0 bbPress (r2746)
    842843 *
    843844 * @param int $forum_id Optional. Forum id
    844845 * @uses update_post_meta() To update the forum private meta
    function bbp_publicize_forum( $forum_id = 0, $current_visibility = '' ) { 
    896897/**
    897898 * Mark the forum as private
    898899 *
    899  * @since bbPress (r2746)
     900 * @since 2.0.0 bbPress (r2746)
    900901 *
    901902 * @param int $forum_id Optional. Forum id
    902903 * @uses update_post_meta() To update the forum private meta
    function bbp_privatize_forum( $forum_id = 0, $current_visibility = '' ) { 
    946947/**
    947948 * Mark the forum as hidden
    948949 *
    949  * @since bbPress (r2996)
     950 * @since 2.0.0 bbPress (r2996)
    950951 *
    951952 * @param int $forum_id Optional. Forum id
    952953 * @uses update_post_meta() To update the forum private meta
    function bbp_hide_forum( $forum_id = 0, $current_visibility = '' ) { 
    996997/**
    997998 * Recaches the private and hidden forums
    998999 *
    999  * @since bbPress (r5017)
     1000 * @since 2.4.0 bbPress (r5017)
    10001001 *
    10011002 * @uses delete_option() to delete private and hidden forum pointers
    10021003 * @uses WP_Query() To query post IDs
    function bbp_repair_forum_visibility() { 
    10591060/**
    10601061 * Remove a deleted forum from all users' subscriptions
    10611062 *
    1062  * @since bbPress (r5156)
     1063 * @since 2.5.0 bbPress (r5156)
    10631064 *
    10641065 * @param int $forum_id Get the forum ID to remove
    10651066 * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    function bbp_remove_forum_from_all_subscriptions( $forum_id = 0 ) { 
    11011102/**
    11021103 * Bump the total topic count of a forum
    11031104 *
    1104  * @since bbPress (r3825)
     1105 * @since 2.1.0 bbPress (r3825)
    11051106 *
    11061107 * @param int $forum_id Optional. Forum id.
    11071108 * @param int $difference Optional. Default 1
    function bbp_bump_forum_topic_count( $forum_id = 0, $difference = 1, $update_anc 
    11591160/**
    11601161 * Bump the total hidden topic count of a forum
    11611162 *
    1162  * @since bbPress (r3825)
     1163 * @since 2.1.0 bbPress (r3825)
    11631164 *
    11641165 * @param int $forum_id Optional. Forum id.
    11651166 * @param int $difference Optional. Default 1
    function bbp_bump_forum_topic_count_hidden( $forum_id = 0, $difference = 1 ) { 
    11921193/**
    11931194 * Bump the total topic count of a forum
    11941195 *
    1195  * @since bbPress (r3825)
     1196 * @since 2.1.0 bbPress (r3825)
    11961197 *
    11971198 * @param int $forum_id Optional. Forum id.
    11981199 * @param int $difference Optional. Default 1
    function bbp_update_forum_last_active_time( $forum_id = 0, $new_time = '' ) { 
    14851486/**
    14861487 * Update the forum sub-forum count
    14871488 *
    1488  * @since bbPress (r2625)
     1489 * @since 2.0.0 bbPress (r2625)
    14891490 *
    14901491 * @param int $forum_id Optional. Forum id
    14911492 * @uses bbp_get_forum_id() To get the forum id
    function bbp_update_forum_subforum_count( $forum_id = 0, $subforums = 0 ) { 
    15081509/**
    15091510 * Adjust the total topic count of a forum
    15101511 *
    1511  * @since bbPress (r2464)
     1512 * @since 2.0.0 bbPress (r2464)
    15121513 *
    15131514 * @param int $forum_id Optional. Forum id or topic id. It is checked whether it
    15141515 *                       is a topic or a forum. If it's a topic, its parent,
    function bbp_update_forum_topic_count( $forum_id = 0 ) { 
    15531554 * Adjust the total hidden topic count of a forum (hidden includes trashed,
    15541555 * spammed and pending topics)
    15551556 *
    1556  * @since bbPress (r2888)
     1557 * @since 2.0.0 bbPress (r2888)
    15571558 *
    15581559 * @param int $forum_id Optional. Topic id to update
    15591560 * @param int $topic_count Optional. Set the topic count manually
    function bbp_update_forum_topic_count_hidden( $forum_id = 0, $topic_count = 0 ) 
    16061607/**
    16071608 * Adjust the total reply count of a forum
    16081609 *
    1609  * @since bbPress (r2464)
     1610 * @since 2.0.0 bbPress (r2464)
    16101611 *
    16111612 * @param int $forum_id Optional. Forum id or topic id. It is checked whether it
    16121613 *                       is a topic or a forum. If it's a topic, its parent,
    function bbp_update_forum_reply_count( $forum_id = 0 ) { 
    16631664 * database to get their results. As such, this function can be costly to run
    16641665 * but is necessary to keep everything accurate.
    16651666 *
    1666  * @since bbPress (r2908)
     1667 * @since 2.0.0 bbPress (r2908)
    16671668 *
    16681669 * @param array $args Supports these arguments:
    16691670 *  - forum_id: Forum id
    function bbp_update_forum( $args = array() ) { 
    17301731/**
    17311732 * Get forum mods for a specific forum ID
    17321733 *
    1733  * @since bbPress (r5836)
     1734 * @since 2.6.0 bbPress (r5836)
    17341735 *
    17351736 * @param int $forum_id
    17361737 *
    function bbp_get_forum_mods( $forum_id = 0 ) { 
    17471748/**
    17481749 * Get forum mods for a specific forum ID
    17491750 *
    1750  * @since bbPress (r4165)
     1751 * @since 2.2.0 bbPress (r4165)
    17511752 *
    17521753 * @param int    $forum_id
    17531754 * @param string $sep
    function bbp_get_forum_mod_names( $forum_id = 0, $sep = ', ' ) { 
    17671768/**
    17681769 * Return an associative array of available topic statuses
    17691770 *
    1770  * @since bbPress (r5059)
     1771 * @since 2.4.0 bbPress (r5059)
    17711772 *
    17721773 * @return array
    17731774 */
    function bbp_get_forum_statuses() { 
    17811782/**
    17821783 * Return an associative array of forum types
    17831784 *
    1784  * @since bbPress (r5059)
     1785 * @since 2.4.0 bbPress (r5059)
    17851786 *
    17861787 * @return array
    17871788 */
    function bbp_get_forum_types() { 
    17951796/**
    17961797 * Return an associative array of forum visibility
    17971798 *
    1798  * @since bbPress (r5059)
     1799 * @since 2.4.0 bbPress (r5059)
    17991800 *
    18001801 * @return array
    18011802 */
    function bbp_get_forum_visibilities() { 
    18141815 *
    18151816 * Only hidden forum ids are returned. Public and private ids are not.
    18161817 *
    1817  * @since bbPress (r3007)
     1818 * @since 2.0.0 bbPress (r3007)
    18181819 *
    18191820 * @uses get_option() Returns the unserialized array of hidden forum ids
    18201821 * @uses apply_filters() Calls 'bbp_forum_query_topic_ids' with the topic ids
    function bbp_get_hidden_forum_ids() { 
    18311832 *
    18321833 * Only private forum ids are returned. Public and hidden ids are not.
    18331834 *
    1834  * @since bbPress (r3007)
     1835 * @since 2.0.0 bbPress (r3007)
    18351836 *
    18361837 * @uses get_option() Returns the unserialized array of private forum ids
    18371838 * @uses apply_filters() Calls 'bbp_forum_query_topic_ids' with the topic ids
    function bbp_get_private_forum_ids() { 
    18471848 * Returns a meta_query that either includes or excludes hidden forum IDs
    18481849 * from a query.
    18491850 *
    1850  * @since bbPress (r3291)
     1851 * @since 2.0.0 bbPress (r3291)
    18511852 *
    18521853 * @param string Optional. The type of value to return. (string|array|meta_query)
    18531854 *
    function bbp_exclude_forum_ids( $type = 'string' ) { 
    19331934 * to hardcode this logic into each query. It also protects forum content for
    19341935 * plugins that might be doing their own queries.
    19351936 *
    1936  * @since bbPress (r3291)
     1937 * @since 2.0.0 bbPress (r3291)
    19371938 *
    19381939 * @param WP_Query $posts_query
    19391940 *
    function bbp_pre_get_posts_normalize_forum_visibility( $posts_query = null ) { 
    20382039 *
    20392040 * Only topics with published and closed statuses are returned
    20402041 *
    2041  * @since bbPress (r2908)
     2042 * @since 2.0.0 bbPress (r2908)
    20422043 *
    20432044 * @param int $forum_id Forum id
    20442045 * @uses bbp_get_topic_post_type() To get the topic post type
    function bbp_forum_query_topic_ids( $forum_id ) { 
    20572058 *
    20582059 * Only forums with published status are returned
    20592060 *
    2060  * @since bbPress (r2908)
     2061 * @since 2.0.0 bbPress (r2908)
    20612062 *
    20622063 * @param int $forum_id Forum id
    20632064 * @uses bbp_get_forum_post_type() To get the forum post type
    function bbp_forum_query_subforum_ids( $forum_id ) { 
    20752076/**
    20762077 * Callback to sort forum ID's based on last active time
    20772078 *
    2078  * @since bbPress (r3789)
     2079 * @since 2.1.0 bbPress (r3789)
     2080 *
    20792081 * @param int $a First forum ID to compare
    20802082 * @param int $b Second forum ID to compare
    20812083 * @return Position change based on sort
    function _bbp_forum_query_usort_subforum_ids( $a = 0, $b = 0 ) { 
    20892091/**
    20902092 * Returns the forum's last reply id
    20912093 *
    2092  * @since bbPress (r2908)
     2094 * @since 2.0.0 bbPress (r2908)
    20932095 *
    20942096 * @param int $forum_id Forum id
    20952097 * @param int $topic_ids Optional. Topic ids
    function bbp_forum_query_last_reply_id( $forum_id, $topic_ids = 0 ) { 
    21352137 * Check if it's a hidden forum or a topic or reply of a hidden forum and if
    21362138 * the user can't view it, then sets a 404
    21372139 *
    2138  * @since bbPress (r2996)
     2140 * @since 2.0.0 bbPress (r2996)
    21392141 *
    21402142 * @uses current_user_can() To check if the current user can read private forums
    21412143 * @uses is_singular() To check if it's a singular page
    function bbp_forum_enforce_hidden() { 
    21902192 * Check if it's a private forum or a topic or reply of a private forum and if
    21912193 * the user can't view it, then sets a 404
    21922194 *
    2193  * @since bbPress (r2996)
     2195 * @since 2.0.0 bbPress (r2996)
    21942196 *
    21952197 * @uses current_user_can() To check if the current user can read private forums
    21962198 * @uses is_singular() To check if it's a singular page
    function bbp_forum_enforce_private() { 
    22462248/**
    22472249 * Redirect if unathorized user is attempting to edit a forum
    22482250 *
    2249  * @since bbPress (r3607)
     2251 * @since 2.1.0 bbPress (r3607)
    22502252 *
    22512253 * @uses bbp_is_forum_edit()
    22522254 * @uses current_user_can()
    function bbp_check_forum_edit() { 
    22702272/**
    22712273 * Delete all topics (and their replies) for a specific forum ID
    22722274 *
    2273  * @since bbPress (r3668)
     2275 * @since 2.1.0 bbPress (r3668)
    22742276 *
    22752277 * @param int $forum_id
    22762278 * @uses bbp_get_forum_id() To validate the forum ID
    function bbp_delete_forum_topics( $forum_id = 0 ) { 
    23192321/**
    23202322 * Trash all topics inside a forum
    23212323 *
    2322  * @since bbPress (r3668)
     2324 * @since 2.1.0 bbPress (r3668)
    23232325 *
    23242326 * @param int $forum_id
    23252327 * @uses bbp_get_forum_id() To validate the forum ID
    function bbp_trash_forum_topics( $forum_id = 0 ) { 
    23872389/**
    23882390 * Trash all topics inside a forum
    23892391 *
    2390  * @since bbPress (r3668)
     2392 * @since 2.1.0 bbPress (r3668)
    23912393 *
    23922394 * @param int $forum_id
    23932395 * @uses bbp_get_forum_id() To validate the forum ID
    function bbp_untrash_forum_topics( $forum_id = 0 ) { 
    24322434 * handled by WordPress core API functions. It is used to clean up after
    24332435 * a forum that is being deleted.
    24342436 *
    2435  * @since bbPress (r3668)
     2437 * @since 2.1.0 bbPress (r3668)
     2438 *
    24362439 * @uses bbp_get_forum_id() To get the forum id
    24372440 * @uses bbp_is_forum() To check if the passed id is a forum
    24382441 * @uses do_action() Calls 'bbp_delete_forum' with the forum id
    function bbp_delete_forum( $forum_id = 0 ) { 
    24542457 * handled by WordPress core API functions. It is used to clean up after
    24552458 * a forum that is being trashed.
    24562459 *
    2457  * @since bbPress (r3668)
     2460 * @since 2.1.0 bbPress (r3668)
     2461 *
    24582462 * @uses bbp_get_forum_id() To get the forum id
    24592463 * @uses bbp_is_forum() To check if the passed id is a forum
    24602464 * @uses do_action() Calls 'bbp_trash_forum' with the forum id
    function bbp_trash_forum( $forum_id = 0 ) { 
    24722476/**
    24732477 * Called before untrashing a forum
    24742478 *
    2475  * @since bbPress (r3668)
     2479 * @since 2.1.0 bbPress (r3668)
     2480 *
    24762481 * @uses bbp_get_forum_id() To get the forum id
    24772482 * @uses bbp_is_forum() To check if the passed id is a forum
    24782483 * @uses do_action() Calls 'bbp_untrash_forum' with the forum id
    function bbp_untrash_forum( $forum_id = 0 ) { 
    24922497/**
    24932498 * Called after deleting a forum
    24942499 *
    2495  * @since bbPress (r3668)
     2500 * @since 2.1.0 bbPress (r3668)
     2501 *
    24962502 * @uses bbp_get_forum_id() To get the forum id
    24972503 * @uses bbp_is_forum() To check if the passed id is a forum
    24982504 * @uses do_action() Calls 'bbp_deleted_forum' with the forum id
    function bbp_deleted_forum( $forum_id = 0 ) { 
    25102516/**
    25112517 * Called after trashing a forum
    25122518 *
    2513  * @since bbPress (r3668)
     2519 * @since 2.1.0 bbPress (r3668)
     2520 *
    25142521 * @uses bbp_get_forum_id() To get the forum id
    25152522 * @uses bbp_is_forum() To check if the passed id is a forum
    25162523 * @uses do_action() Calls 'bbp_trashed_forum' with the forum id
    function bbp_trashed_forum( $forum_id = 0 ) { 
    25282535/**
    25292536 * Called after untrashing a forum
    25302537 *
    2531  * @since bbPress (r3668)
     2538 * @since 2.1.0 bbPress (r3668)
     2539 *
    25322540 * @uses bbp_get_forum_id() To get the forum id
    25332541 * @uses bbp_is_forum() To check if the passed id is a forum
    25342542 * @uses do_action() Calls 'bbp_untrashed_forum' with the forum id
  • src/includes/forums/template.php

    diff --git src/includes/forums/template.php src/includes/forums/template.php
    index 6b8ab3d..aed3bab 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Output the unique id of the custom post type for forums
    1717 *
    18  * @since bbPress (r2857)
     18 * @since 2.0.0 bbPress (r2857)
    1919 *
    2020 * @uses bbp_get_forum_post_type() To get the forum post type
    2121 */
    function bbp_forum_post_type() { 
    2525        /**
    2626         * Return the unique id of the custom post type for forums
    2727         *
    28          * @since bbPress (r2857)
     28         * @since 2.0.0 bbPress (r2857)
    2929         *
    3030         * @uses apply_filters() Calls 'bbp_get_forum_post_type' with the forum
    3131         *                        post type id
    function bbp_forum_post_type() { 
    3939/**
    4040 * Return array of labels used by the forum post type
    4141 *
    42  * @since bbPress (r5129)
     42 * @since 2.5.0 bbPress (r5129)
    4343 *
    4444 * @return array
    4545 */
    function bbp_get_forum_post_type_labels() { 
    6666/**
    6767 * Return array of forum post type rewrite settings
    6868 *
    69  * @since bbPress (r5129)
     69 * @since 2.5.0 bbPress (r5129)
    7070 *
    7171 * @return array
    7272 */
    function bbp_get_forum_post_type_rewrite() { 
    8080/**
    8181 * Return array of features the forum post type supports
    8282 *
    83  * @since bbPress (r5129)
     83 * @since 2.5.0 bbPress (r5129)
    8484 *
    8585 * @return array
    8686 */
    function bbp_get_forum_post_type_supports() { 
    9999 *
    100100 * WordPress makes this easy for us.
    101101 *
    102  * @since bbPress (r2464)
     102 * @since 2.0.0 bbPress (r2464)
    103103 *
    104104 * @param array $args All the arguments supported by {@link WP_Query}
    105105 * @uses WP_Query To make query and get the forums
    function bbp_has_forums( $args = array() ) { 
    149149/**
    150150 * Whether there are more forums available in the loop
    151151 *
    152  * @since bbPress (r2464)
     152 * @since 2.0.0 bbPress (r2464)
    153153 *
    154154 * @uses bbPress:forum_query::have_posts() To check if there are more forums
    155155 *                                          available
    function bbp_forums() { 
    171171/**
    172172 * Loads up the current forum in the loop
    173173 *
    174  * @since bbPress (r2464)
     174 * @since 2.0.0 bbPress (r2464)
    175175 *
    176176 * @uses bbPress:forum_query::the_post() To get the current forum
    177177 * @return object Forum information
    function bbp_the_forum() { 
    185185/**
    186186 * Output forum id
    187187 *
    188  * @since bbPress (r2464)
     188 * @since 2.0.0 bbPress (r2464)
    189189 *
    190190 * @param $forum_id Optional. Used to check emptiness
    191191 * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_id( $forum_id = 0 ) { 
    196196        /**
    197197         * Return the forum id
    198198         *
    199          * @since bbPress (r2464)
     199         * @since 2.0.0 bbPress (r2464)
    200200         *
    201201         * @param $forum_id Optional. Used to check emptiness
    202202         * @uses bbPress::forum_query::in_the_loop To check if we're in the loop
    function bbp_forum_id( $forum_id = 0 ) { 
    251251/**
    252252 * Gets a forum
    253253 *
    254  * @since bbPress (r2787)
     254 * @since 2.0.0 bbPress (r2787)
    255255 *
    256256 * @param int|object $forum forum id or forum object
    257257 * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT
    function bbp_get_forum( $forum, $output = OBJECT, $filter = 'raw' ) { 
    299299/**
    300300 * Output the link to the forum
    301301 *
    302  * @since bbPress (r2464)
     302 * @since 2.0.0 bbPress (r2464)
    303303 *
    304304 * @param int $forum_id Optional. Forum id
    305305 * @param string $redirect_to Optional. Pass a redirect value for use with
    function bbp_forum_permalink( $forum_id = 0, $redirect_to = '' ) { 
    312312        /**
    313313         * Return the link to the forum
    314314         *
    315          * @since bbPress (r2464)
     315         * @since 2.0.0 bbPress (r2464)
    316316         *
    317317         * @param int $forum_id Optional. Forum id
    318318         * @param string $redirect_to Optional. Pass a redirect value for use with
    function bbp_forum_permalink( $forum_id = 0, $redirect_to = '' ) { 
    341341/**
    342342 * Output the title of the forum
    343343 *
    344  * @since bbPress (r2464)
     344 * @since 2.0.0 bbPress (r2464)
    345345 *
    346346 * @param int $forum_id Optional. Forum id
    347347 * @uses bbp_get_forum_title() To get the forum title
    function bbp_forum_title( $forum_id = 0 ) { 
    352352        /**
    353353         * Return the title of the forum
    354354         *
    355          * @since bbPress (r2464)
     355         * @since 2.0.0 bbPress (r2464)
    356356         *
    357357         * @param int $forum_id Optional. Forum id
    358358         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_title( $forum_id = 0 ) { 
    370370/**
    371371 * Output the forum archive title
    372372 *
    373  * @since bbPress (r3249)
     373 * @since 2.0.0 bbPress (r3249)
    374374 *
    375375 * @param string $title Default text to use as title
    376376 */
    function bbp_forum_archive_title( $title = '' ) { 
    380380        /**
    381381         * Return the forum archive title
    382382         *
    383          * @since bbPress (r3249)
     383         * @since 2.0.0 bbPress (r3249)
    384384         *
    385385         * @param string $title Default text to use as title
    386386         *
    function bbp_forum_archive_title( $title = '' ) { 
    416416/**
    417417 * Output the content of the forum
    418418 *
    419  * @since bbPress (r2780)
     419 * @since 2.0.0 bbPress (r2780)
    420420 *
    421421 * @param int $forum_id Optional. Topic id
    422422 * @uses bbp_get_forum_content() To get the forum content
    function bbp_forum_content( $forum_id = 0 ) { 
    427427        /**
    428428         * Return the content of the forum
    429429         *
    430          * @since bbPress (r2780)
     430         * @since 2.0.0 bbPress (r2780)
    431431         *
    432432         * @param int $forum_id Optional. Topic id
    433433         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_content( $forum_id = 0 ) { 
    454454/**
    455455 * Allow forum rows to have adminstrative actions
    456456 *
    457  * @since bbPress (r3653)
     457 * @since 2.1.0 bbPress (r3653)
    458458 *
    459459 * @uses do_action()
    460460 * @todo Links and filter
    function bbp_forum_row_actions() { 
    466466/**
    467467 * Output value of forum mods field
    468468 *
    469  * @since bbPress (r5837)
     469 * @since 2.6.0 bbPress (r5837)
     470 *
    470471 * @uses bbp_get_form_forum_mods() To get the value of forum mods field
    471472 */
    472473function bbp_form_forum_mods() {
    function bbp_form_forum_mods() { 
    475476        /**
    476477         * Return value of forum mods field
    477478         *
    478          * @since bbPress (r5837)
     479         * @since 2.6.0 bbPress (r5837)
    479480         *
    480481         * @uses bbp_is_forum_edit() To check if it's the forum edit page
    481482         * @uses apply_filters() Calls 'bbp_get_form_forum_mods' with the mods
    function bbp_form_forum_mods() { 
    510511/**
    511512 * Output the forums last active ID
    512513 *
    513  * @since bbPress (r2860)
     514 * @since 2.0.0 bbPress (r2860)
    514515 *
    515516 * @uses bbp_get_forum_last_active_id() To get the forum's last active id
    516517 * @param int $forum_id Optional. Forum id
    function bbp_forum_last_active_id( $forum_id = 0 ) { 
    521522        /**
    522523         * Return the forums last active ID
    523524         *
    524          * @since bbPress (r2860)
     525         * @since 2.0.0 bbPress (r2860)
    525526         *
    526527         * @param int $forum_id Optional. Forum id
    527528         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_active_id( $forum_id = 0 ) { 
    540541/**
    541542 * Output the forums last update date/time (aka freshness)
    542543 *
    543  * @since bbPress (r2464)
     544 * @since 2.0.0 bbPress (r2464)
    544545 *
    545546 * @uses bbp_get_forum_last_active_time() To get the forum freshness
    546547 * @param int $forum_id Optional. Forum id
    function bbp_forum_last_active_time( $forum_id = 0 ) { 
    551552        /**
    552553         * Return the forums last update date/time (aka freshness)
    553554         *
    554          * @since bbPress (r2464)
     555         * @since 2.0.0 bbPress (r2464)
    555556         *
    556557         * @param int $forum_id Optional. Forum id
    557558         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_active_time( $forum_id = 0 ) { 
    595596 *
    596597 * Outputs a complete link with attributes and content.
    597598 *
    598  * @since bbPress (r2625)
     599 * @since 2.0.0 bbPress (r2625)
    599600 *
    600601 * @param int $forum_id Optional. Forum id
    601602 * @uses bbp_get_forum_freshness_link() To get the forum freshness link
    function bbp_forum_freshness_link( $forum_id = 0) { 
    608609         *
    609610         * Returns a complete link with attributes and content.
    610611         *
    611          * @since bbPress (r2625)
     612         * @since 2.0.0 bbPress (r2625)
    612613         *
    613614         * @param int $forum_id Optional. Forum id
    614615         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_freshness_link( $forum_id = 0) { 
    662663/**
    663664 * Output parent ID of a forum, if exists
    664665 *
    665  * @since bbPress (r3675)
     666 * @since 2.1.0 bbPress (r3675)
    666667 *
    667668 * @param int $forum_id Forum ID
    668669 * @uses bbp_get_forum_parent_id() To get the forum's parent ID
    function bbp_forum_parent_id( $forum_id = 0 ) { 
    673674        /**
    674675         * Return ID of forum parent, if exists
    675676         *
    676          * @since bbPress (r3675)
     677         * @since 2.1.0 bbPress (r3675)
    677678         *
    678679         * @param int $forum_id Optional. Forum id
    679680         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_parent_id( $forum_id = 0 ) { 
    691692/**
    692693 * Return array of parent forums
    693694 *
    694  * @since bbPress (r2625)
     695 * @since 2.0.0 bbPress (r2625)
    695696 *
    696697 * @param int $forum_id Optional. Forum id
    697698 * @uses bbp_get_forum_id() To get the forum id
    function bbp_get_forum_ancestors( $forum_id = 0 ) { 
    718719/**
    719720 * Return subforums of given forum
    720721 *
    721  * @since bbPress (r2747)
     722 * @since 2.0.0 bbPress (r2747)
    722723 *
    723724 * @param array $args All the arguments supported by {@link WP_Query}
    724725 * @uses bbp_get_forum_id() To get the forum id
    function bbp_list_forums( $args = array() ) { 
    864865/**
    865866 * Output the forum subscription link
    866867 *
    867  * @since bbPress (r5156)
     868 * @since 2.5.0 bbPress (r5156)
    868869 *
    869870 * @uses bbp_get_forum_subscription_link()
    870871 */
    function bbp_forum_subscription_link( $args = array() ) { 
    877878         *
    878879         * A custom wrapper for bbp_get_user_subscribe_link()
    879880         *
    880          * @since bbPress (r5156)
     881         * @since 2.5.0 bbPress (r5156)
    881882         *
    882883         * @uses bbp_parse_args()
    883884         * @uses bbp_get_user_subscribe_link()
    function bbp_forum_subscription_link( $args = array() ) { 
    912913/**
    913914 * Output the forum's last topic id
    914915 *
    915  * @since bbPress (r2464)
     916 * @since 2.0.0 bbPress (r2464)
    916917 *
    917918 * @uses bbp_get_forum_last_topic_id() To get the forum's last topic id
    918919 * @param int $forum_id Optional. Forum id
    function bbp_forum_last_topic_id( $forum_id = 0 ) { 
    923924        /**
    924925         * Return the forum's last topic id
    925926         *
    926          * @since bbPress (r2464)
     927         * @since 2.0.0 bbPress (r2464)
    927928         *
    928929         * @param int $forum_id Optional. Forum id
    929930         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_topic_id( $forum_id = 0 ) { 
    942943/**
    943944 * Output the title of the last topic inside a forum
    944945 *
    945  * @since bbPress (r2625)
     946 * @since 2.0.0 bbPress (r2625)
    946947 *
    947948 * @param int $forum_id Optional. Forum id
    948949 * @uses bbp_get_forum_last_topic_title() To get the forum's last topic's title
    function bbp_forum_last_topic_title( $forum_id = 0 ) { 
    953954        /**
    954955         * Return the title of the last topic inside a forum
    955956         *
    956          * @since bbPress (r2625)
     957         * @since 2.0.0 bbPress (r2625)
    957958         *
    958959         * @param int $forum_id Optional. Forum id
    959960         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_topic_title( $forum_id = 0 ) { 
    974975/**
    975976 * Output the link to the last topic in a forum
    976977 *
    977  * @since bbPress (r2464)
     978 * @since 2.0.0 bbPress (r2464)
    978979 *
    979980 * @param int $forum_id Optional. Forum id
    980981 * @uses bbp_get_forum_last_topic_permalink() To get the forum's last topic's
    function bbp_forum_last_topic_permalink( $forum_id = 0 ) { 
    986987        /**
    987988         * Return the link to the last topic in a forum
    988989         *
    989          * @since bbPress (r2464)
     990         * @since 2.0.0 bbPress (r2464)
    990991         *
    991992         * @param int $forum_id Optional. Forum id
    992993         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_topic_permalink( $forum_id = 0 ) { 
    10071008/**
    10081009 * Return the author ID of the last topic of a forum
    10091010 *
    1010  * @since bbPress (r2625)
     1011 * @since 2.0.0 bbPress (r2625)
    10111012 *
    10121013 * @param int $forum_id Optional. Forum id
    10131014 * @uses bbp_get_forum_id() To get the forum id
    function bbp_get_forum_last_topic_author_id( $forum_id = 0 ) { 
    10281029/**
    10291030 * Output link to author of last topic of forum
    10301031 *
    1031  * @since bbPress (r2625)
     1032 * @since 2.0.0 bbPress (r2625)
    10321033 *
    10331034 * @param int $forum_id Optional. Forum id
    10341035 * @uses bbp_get_forum_last_topic_author_link() To get the forum's last topic's
    function bbp_forum_last_topic_author_link( $forum_id = 0 ) { 
    10401041        /**
    10411042         * Return link to author of last topic of forum
    10421043         *
    1043          * @since bbPress (r2625)
     1044         * @since 2.0.0 bbPress (r2625)
    10441045         *
    10451046         * @param int $forum_id Optional. Forum id
    10461047         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_topic_author_link( $forum_id = 0 ) { 
    10641065/**
    10651066 * Output the forums last reply id
    10661067 *
    1067  * @since bbPress (r2464)
     1068 * @since 2.0.0 bbPress (r2464)
    10681069 *
    10691070 * @uses bbp_get_forum_last_reply_id() To get the forum's last reply id
    10701071 * @param int $forum_id Optional. Forum id
    function bbp_forum_last_reply_id( $forum_id = 0 ) { 
    10751076        /**
    10761077         * Return the forums last reply id
    10771078         *
    1078          * @since bbPress (r2464)
     1079         * @since 2.0.0 bbPress (r2464)
    10791080         *
    10801081         * @param int $forum_id Optional. Forum id
    10811082         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_reply_title( $forum_id = 0 ) { 
    11231124/**
    11241125 * Output the link to the last reply in a forum
    11251126 *
    1126  * @since bbPress (r2464)
     1127 * @since 2.0.0 bbPress (r2464)
    11271128 *
    11281129 * @param int $forum_id Optional. Forum id
    11291130 * @uses bbp_get_forum_last_reply_permalink() To get the forum last reply link
    function bbp_forum_last_reply_permalink( $forum_id = 0 ) { 
    11341135        /**
    11351136         * Return the link to the last reply in a forum
    11361137         *
    1137          * @since bbPress (r2464)
     1138         * @since 2.0.0 bbPress (r2464)
    11381139         *
    11391140         * @param int $forum_id Optional. Forum id
    11401141         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_reply_permalink( $forum_id = 0 ) { 
    11551156/**
    11561157 * Output the url to the last reply in a forum
    11571158 *
    1158  * @since bbPress (r2683)
     1159 * @since 2.0.0 bbPress (r2683)
    11591160 *
    11601161 * @param int $forum_id Optional. Forum id
    11611162 * @uses bbp_get_forum_last_reply_url() To get the forum last reply url
    function bbp_forum_last_reply_url( $forum_id = 0 ) { 
    11661167        /**
    11671168         * Return the url to the last reply in a forum
    11681169         *
    1169          * @since bbPress (r2683)
     1170         * @since 2.0.0 bbPress (r2683)
    11701171         *
    11711172         * @param int $forum_id Optional. Forum id
    11721173         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_reply_url( $forum_id = 0 ) { 
    12031204/**
    12041205 * Output author ID of last reply of forum
    12051206 *
    1206  * @since bbPress (r2625)
     1207 * @since 2.0.0 bbPress (r2625)
    12071208 *
    12081209 * @param int $forum_id Optional. Forum id
    12091210 * @uses bbp_get_forum_last_reply_author_id() To get the forum's last reply
    function bbp_forum_last_reply_author_id( $forum_id = 0 ) { 
    12151216        /**
    12161217         * Return author ID of last reply of forum
    12171218         *
    1218          * @since bbPress (r2625)
     1219         * @since 2.0.0 bbPress (r2625)
    12191220         *
    12201221         * @param int $forum_id Optional. Forum id
    12211222         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_reply_author_id( $forum_id = 0 ) { 
    12371238/**
    12381239 * Output link to author of last reply of forum
    12391240 *
    1240  * @since bbPress (r2625)
     1241 * @since 2.0.0 bbPress (r2625)
    12411242 *
    12421243 * @param int $forum_id Optional. Forum id
    12431244 * @uses bbp_get_forum_last_reply_author_link() To get the forum's last reply's
    function bbp_forum_last_reply_author_link( $forum_id = 0 ) { 
    12491250        /**
    12501251         * Return link to author of last reply of forum
    12511252         *
    1252          * @since bbPress (r2625)
     1253         * @since 2.0.0 bbPress (r2625)
    12531254         *
    12541255         * @param int $forum_id Optional. Forum id
    12551256         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_last_reply_author_link( $forum_id = 0 ) { 
    12741275/**
    12751276 * Output the topics link of the forum
    12761277 *
    1277  * @since bbPress (r2883)
     1278 * @since 2.0.0 bbPress (r2883)
    12781279 *
    12791280 * @param int $forum_id Optional. Topic id
    12801281 * @uses bbp_get_forum_topics_link() To get the forum topics link
    function bbp_forum_topics_link( $forum_id = 0 ) { 
    12861287        /**
    12871288         * Return the topics link of the forum
    12881289         *
    1289          * @since bbPress (r2883)
     1290         * @since 2.0.0 bbPress (r2883)
    12901291         *
    12911292         * @param int $forum_id Optional. Topic id
    12921293         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_topics_link( $forum_id = 0 ) { 
    13381339/**
    13391340 * Output total sub-forum count of a forum
    13401341 *
    1341  * @since bbPress (r2464)
     1342 * @since 2.0.0 bbPress (r2464)
    13421343 *
    13431344 * @param int $forum_id Optional. Forum id to check
    13441345 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_forum_subforum_count( $forum_id = 0, $integer = false ) { 
    13501351        /**
    13511352         * Return total subforum count of a forum
    13521353         *
    1353          * @since bbPress (r2464)
     1354         * @since 2.0.0 bbPress (r2464)
    13541355         *
    13551356         * @param int $forum_id Optional. Forum id
    13561357         * @param boolean $integer Optional. Whether or not to format the result
    function bbp_forum_subforum_count( $forum_id = 0, $integer = false ) { 
    13711372/**
    13721373 * Output total topic count of a forum
    13731374 *
    1374  * @since bbPress (r2464)
     1375 * @since 2.0.0 bbPress (r2464)
    13751376 *
    13761377 * @param int $forum_id Optional. Forum id
    13771378 * @param bool $total_count Optional. To get the total count or normal count?
    function bbp_forum_topic_count( $forum_id = 0, $total_count = true, $integer = f 
    13841385        /**
    13851386         * Return total topic count of a forum
    13861387         *
    1387          * @since bbPress (r2464)
     1388         * @since 2.0.0 bbPress (r2464)
    13881389         *
    13891390         * @param int $forum_id Optional. Forum id
    13901391         * @param bool $total_count Optional. To get the total count or normal
    function bbp_forum_topic_count( $forum_id = 0, $total_count = true, $integer = f 
    14081409/**
    14091410 * Output total reply count of a forum
    14101411 *
    1411  * @since bbPress (r2464)
     1412 * @since 2.0.0 bbPress (r2464)
    14121413 *
    14131414 * @param int $forum_id Optional. Forum id
    14141415 * @param bool $total_count Optional. To get the total count or normal count?
    function bbp_forum_reply_count( $forum_id = 0, $total_count = true, $integer = f 
    14211422        /**
    14221423         * Return total post count of a forum
    14231424         *
    1424          * @since bbPress (r2464)
     1425         * @since 2.0.0 bbPress (r2464)
    14251426         *
    14261427         * @param int $forum_id Optional. Forum id
    14271428         * @param bool $total_count Optional. To get the total count or normal
    function bbp_forum_reply_count( $forum_id = 0, $total_count = true, $integer = f 
    14451446/**
    14461447 * Output total post count of a forum
    14471448 *
    1448  * @since bbPress (r2954)
     1449 * @since 2.0.0 bbPress (r2954)
    14491450 *
    14501451 * @param int $forum_id Optional. Forum id
    14511452 * @param bool $total_count Optional. To get the total count or normal count?
    function bbp_forum_post_count( $forum_id = 0, $total_count = true, $integer = fa 
    14581459        /**
    14591460         * Return total post count of a forum
    14601461         *
    1461          * @since bbPress (r2954)
     1462         * @since 2.0.0 bbPress (r2954)
    14621463         *
    14631464         * @param int $forum_id Optional. Forum id
    14641465         * @param bool $total_count Optional. To get the total count or normal
    function bbp_forum_post_count( $forum_id = 0, $total_count = true, $integer = fa 
    14851486 * Output total hidden topic count of a forum (hidden includes trashed, spammed,
    14861487 * and pending topics)
    14871488 *
    1488  * @since bbPress (r2883)
     1489 * @since 2.0.0 bbPress (r2883)
    14891490 *
    14901491 * @param int $forum_id Optional. Topic id
    14911492 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_forum_topic_count_hidden( $forum_id = 0, $integer = false ) { 
    14981499         * Return total hidden topic count of a forum (hidden includes trashed,
    14991500         * spammed and pending topics)
    15001501         *
    1501          * @since bbPress (r2883)
     1502         * @since 2.0.0 bbPress (r2883)
    15021503         *
    15031504         * @param int $forum_id Optional. Topic id
    15041505         * @param boolean $integer Optional. Whether or not to format the result
    function bbp_forum_topic_count_hidden( $forum_id = 0, $integer = false ) { 
    15191520/**
    15201521 * Output the status of the forum
    15211522 *
    1522  * @since bbPress (r2667)
     1523 * @since 2.0.0 bbPress (r2667)
    15231524 *
    15241525 * @param int $forum_id Optional. Forum id
    15251526 * @uses bbp_get_forum_status() To get the forum status
    function bbp_forum_status( $forum_id = 0 ) { 
    15301531        /**
    15311532         * Return the status of the forum
    15321533         *
    1533          * @since bbPress (r2667)
     1534         * @since 2.0.0 bbPress (r2667)
    15341535         *
    15351536         * @param int $forum_id Optional. Forum id
    15361537         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_status( $forum_id = 0 ) { 
    15531554/**
    15541555 * Output the visibility of the forum
    15551556 *
    1556  * @since bbPress (r2997)
     1557 * @since 2.0.0 bbPress (r2997)
    15571558 *
    15581559 * @param int $forum_id Optional. Forum id
    15591560 * @uses bbp_get_forum_visibility() To get the forum visibility
    function bbp_forum_visibility( $forum_id = 0 ) { 
    15641565        /**
    15651566         * Return the visibility of the forum
    15661567         *
    1567          * @since bbPress (r2997)
     1568         * @since 2.0.0 bbPress (r2997)
    15681569         *
    15691570         * @param int $forum_id Optional. Forum id
    15701571         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_visibility( $forum_id = 0 ) { 
    15831584/**
    15841585 * Output the type of the forum
    15851586 *
    1586  * @since bbPress (r3563)
     1587 * @since 2.1.0 bbPress (r3563)
    15871588 *
    15881589 * @param int $forum_id Optional. Forum id
    15891590 * @uses bbp_get_forum_type() To get the forum type
    function bbp_forum_type( $forum_id = 0 ) { 
    15941595        /**
    15951596         * Return the type of forum (category/forum/etc...)
    15961597         *
    1597          * @since bbPress (r3563)
     1598         * @since 2.1.0 bbPress (r3563)
    15981599         *
    15991600         * @param int $forum_id Optional. Forum id
    16001601         * @uses get_post_meta() To get the forum category meta
    function bbp_forum_type( $forum_id = 0 ) { 
    16141615/**
    16151616 * Is the forum a category?
    16161617 *
    1617  * @since bbPress (r2746)
     1618 * @since 2.0.0 bbPress (r2746)
    16181619 *
    16191620 * @param int $forum_id Optional. Forum id
    16201621 * @uses bbp_get_forum_type() To get the forum type
    function bbp_is_forum_category( $forum_id = 0 ) { 
    16311632/**
    16321633 * Is the forum open?
    16331634 *
    1634  * @since bbPress (r2746)
     1635 * @since 2.0.0 bbPress (r2746)
    16351636 *
    16361637 * @param int $forum_id Optional. Forum id
    16371638 * @param bool $check_ancestors Check if the ancestors are open (only
    function bbp_is_forum_open( $forum_id = 0, $check_ancestors = true ) { 
    16461647/**
    16471648* Is the forum closed?
    16481649 *
    1649  * @since bbPress (r2746)
     1650 * @since 2.0.0 bbPress (r2746)
    16501651 *
    16511652 * @param int $forum_id Optional. Forum id
    16521653 * @param bool $check_ancestors Check if the ancestors are closed (only
    function bbp_is_forum_closed( $forum_id = 0, $check_ancestors = true ) { 
    16691670/**
    16701671 * Check if the forum status is a specific one, also maybe checking ancestors
    16711672 *
    1672  * @since bbPress (r5499)
     1673 * @since 2.6.0 bbPress (r5499)
    16731674 *
    16741675 * @param bool $status_name The forum status name to check
    16751676 * @param bool $check_ancestors Check the forum ancestors
    function bbp_is_forum_status( $forum_id, $status_name, $check_ancestors = true, 
    17431744/**
    17441745 * Is the forum public?
    17451746 *
    1746  * @since bbPress (r2997)
     1747 * @since 2.0.0 bbPress (r2997)
    17471748 *
    17481749 * @param int $forum_id Optional. Forum id
    17491750 * @param bool $check_ancestors Check if the ancestors are public
    function bbp_is_forum_public( $forum_id = 0, $check_ancestors = true ) { 
    17651766/**
    17661767 * Is the forum private?
    17671768 *
    1768  * @since bbPress (r2746)
     1769 * @since 2.0.0 bbPress (r2746)
    17691770 *
    17701771 * @param int $forum_id Optional. Forum id
    17711772 * @param bool $check_ancestors Check if the ancestors are private
    function bbp_is_forum_private( $forum_id = 0, $check_ancestors = true ) { 
    17871788/**
    17881789 * Is the forum hidden?
    17891790 *
    1790  * @since bbPress (r2997)
     1791 * @since 2.0.0 bbPress (r2997)
    17911792 *
    17921793 * @param int $forum_id Optional. Forum id
    17931794 * @param bool $check_ancestors Check if the ancestors are private (only if
    function bbp_is_forum_hidden( $forum_id = 0, $check_ancestors = true ) { 
    18101811/**
    18111812 * Check the forum visibility ID
    18121813 *
    1813  * @since bbPress (r5499)
     1814 * @since 2.6.0 bbPress (r5499)
    18141815 *
    18151816 * @param int $forum_id Optional. Forum id
    18161817 * @param bool $status_name The post status name to check
    function bbp_is_forum_visibility( $forum_id, $status_name, $check_ancestors = tr 
    18871888/**
    18881889 * Output the author ID of the forum
    18891890 *
    1890  * @since bbPress (r3675)
     1891 * @since 2.1.0 bbPress (r3675)
    18911892 *
    18921893 * @param int $forum_id Optional. Forum id
    18931894 * @uses bbp_get_forum_author_id() To get the forum author id
    function bbp_forum_author_id( $forum_id = 0 ) { 
    18981899        /**
    18991900         * Return the author ID of the forum
    19001901         *
    1901          * @since bbPress (r3675)
     1902         * @since 2.1.0 bbPress (r3675)
    19021903         *
    19031904         * @param int $forum_id Optional. Forum id
    19041905         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_author_id( $forum_id = 0 ) { 
    19171918/**
    19181919 * Output the author of the forum
    19191920 *
    1920  * @since bbPress (r3675)
     1921 * @since 2.1.0 bbPress (r3675)
    19211922 *
    19221923 * @param int $forum_id Optional. Forum id
    19231924 * @uses bbp_get_forum_author() To get the forum author
    function bbp_forum_author_display_name( $forum_id = 0 ) { 
    19281929        /**
    19291930         * Return the author of the forum
    19301931         *
    1931          * @since bbPress (r3675)
     1932         * @since 2.1.0 bbPress (r3675)
    19321933         *
    19331934         * @param int $forum_id Optional. Forum id
    19341935         * @uses bbp_get_forum_id() To get the forum id
    function bbp_forum_author_display_name( $forum_id = 0 ) { 
    19491950/**
    19501951 * Replace forum meta details for users that cannot view them.
    19511952 *
    1952  * @since bbPress (r3162)
     1953 * @since 2.0.0 bbPress (r3162)
    19531954 *
    19541955 * @param string $retval
    19551956 * @param int $forum_id
    function bbp_suppress_private_forum_meta( $retval, $forum_id ) { 
    19701971/**
    19711972 * Replace forum author details for users that cannot view them.
    19721973 *
    1973  * @since bbPress (r3162)
     1974 * @since 2.0.0 bbPress (r3162)
    19741975 *
    19751976 * @param string $author_link
    19761977 * @param array $args
    function bbp_suppress_private_author_link( $author_link = '', $args = array() ) 
    20302031/**
    20312032 * Output the row class of a forum
    20322033 *
    2033  * @since bbPress (r2667)
     2034 * @since 2.0.0 bbPress (r2667)
    20342035 *
    20352036 * @param int $forum_id Optional. Forum ID.
    20362037 * @param array Extra classes you can pass when calling this function
    function bbp_forum_class( $forum_id = 0, $classes = array() ) { 
    20422043        /**
    20432044         * Return the row class of a forum
    20442045         *
    2045          * @since bbPress (r2667)
     2046         * @since 2.0.0 bbPress (r2667)
    20462047         *
    20472048         * @param int $forum_id Optional. Forum ID
    20482049         * @param array Extra classes you can pass when calling this function
    function bbp_forum_class( $forum_id = 0, $classes = array() ) { 
    20872088 * Output a fancy description of the current forum, including total topics,
    20882089 * total replies, and last activity.
    20892090 *
    2090  * @since bbPress (r2860)
     2091 * @since 2.0.0 bbPress (r2860)
    20912092 *
    20922093 * @param array $args Arguments passed to alter output
    20932094 * @uses bbp_get_single_forum_description() Return the eventual output
    function bbp_single_forum_description( $args = array() ) { 
    20992100         * Return a fancy description of the current forum, including total
    21002101         * topics, total replies, and last activity.
    21012102         *
    2102          * @since bbPress (r2860)
     2103         * @since 2.0.0 bbPress (r2860)
    21032104         *
    21042105         * @param array $args This function supports these arguments:
    21052106         *  - forum_id: Forum id
    function bbp_single_forum_description( $args = array() ) { 
    22222223/**
    22232224 * Output the unique id of the forum moderators taxonomy
    22242225 *
    2225  * @since bbPress (r5834)
     2226 * @since 2.6.0 bbPress (r5834)
    22262227 *
    22272228 * @uses bbp_get_forum_mod_tax_id() To get the forum modorator taxonomy ID
    22282229 */
    function bbp_forum_mod_tax_id() { 
    22322233        /**
    22332234         * Return the unique id of the forum moderators taxonomy
    22342235         *
    2235          * @since bbPress (r5834)
     2236         * @since 2.6.0 bbPress (r5834)
    22362237         *
    22372238         * @uses apply_filters() Calls 'bbp_get_forum_mod_tax_id' with the forum
    22382239         *                        moderator taxonomy id
    function bbp_forum_mod_tax_id() { 
    22452246/**
    22462247 * Return array of labels used by the forum-mod taxonomy
    22472248 *
    2248  * @since bbPress (r5834)
     2249 * @since 2.6.0 bbPress (r5834)
    22492250 *
    22502251 * @uses apply_filters() Calls 'bbp_get_forum_mod_tax_id' with the forum
    22512252 *                        moderator taxonomy labels
    function bbp_get_forum_mod_tax_labels() { 
    22702271/**
    22712272 * Output a the moderators of a forum
    22722273 *
    2273  * @since bbPress (r5834)
     2274 * @since 2.6.0 bbPress (r5834)
    22742275 *
    22752276 * @param int   $forum_id Optional. Topic id
    22762277 * @param array $args     See {@link bbp_get_forum_mod_list()}
    function bbp_forum_mod_list( $forum_id = 0, $args = array() ) { 
    22822283        /**
    22832284         * Return the moderators of a forum
    22842285         *
    2285          * @since bbPress (r5834)
     2286         * @since 2.6.0 bbPress (r5834)
    22862287         *
    22872288         * @param int   $forum_id Optional. Forum id
    22882289         * @param array $args     This function supports these arguments:
    function bbp_forum_mod_list( $forum_id = 0, $args = array() ) { 
    23502351/**
    23512352 * Output the value of forum title field
    23522353 *
    2353  * @since bbPress (r3551)
     2354 * @since 2.1.0 bbPress (r3551)
    23542355 *
    23552356 * @uses bbp_get_form_forum_title() To get the value of forum title field
    23562357 */
    function bbp_form_forum_title() { 
    23602361        /**
    23612362         * Return the value of forum title field
    23622363         *
    2363          * @since bbPress (r3551)
     2364         * @since 2.1.0 bbPress (r3551)
    23642365         *
    23652366         * @uses bbp_is_forum_edit() To check if it's forum edit page
    23662367         * @uses apply_filters() Calls 'bbp_get_form_forum_title' with the title
    function bbp_form_forum_title() { 
    23872388/**
    23882389 * Output the value of forum content field
    23892390 *
    2390  * @since bbPress (r3551)
     2391 * @since 2.1.0 bbPress (r3551)
    23912392 *
    23922393 * @uses bbp_get_form_forum_content() To get value of forum content field
    23932394 */
    function bbp_form_forum_content() { 
    23972398        /**
    23982399         * Return the value of forum content field
    23992400         *
    2400          * @since bbPress (r3551)
     2401         * @since 2.1.0 bbPress (r3551)
    24012402         *
    24022403         * @uses bbp_is_forum_edit() To check if it's the forum edit page
    24032404         * @uses apply_filters() Calls 'bbp_get_form_forum_content' with the content
    function bbp_form_forum_content() { 
    24242425/**
    24252426 * Output value of forum parent
    24262427 *
    2427  * @since bbPress (r3551)
     2428 * @since 2.1.0 bbPress (r3551)
    24282429 *
    24292430 * @uses bbp_get_form_forum_parent() To get the topic's forum id
    24302431 */
    function bbp_form_forum_parent() { 
    24342435        /**
    24352436         * Return value of forum parent
    24362437         *
    2437          * @since bbPress (r3551)
     2438         * @since 2.1.0 bbPress (r3551)
    24382439         *
    24392440         * @uses bbp_is_topic_edit() To check if it's the topic edit page
    24402441         * @uses bbp_get_forum_parent_id() To get the topic forum id
    function bbp_form_forum_parent() { 
    24622463/**
    24632464 * Output value of forum type
    24642465 *
    2465  * @since bbPress (r3563)
     2466 * @since 2.1.0 bbPress (r3563)
    24662467 *
    24672468 * @uses bbp_get_form_forum_type() To get the topic's forum id
    24682469 */
    function bbp_form_forum_type() { 
    24722473        /**
    24732474         * Return value of forum type
    24742475         *
    2475          * @since bbPress (r3563)
     2476         * @since 2.1.0 bbPress (r3563)
    24762477         *
    24772478         * @uses bbp_is_topic_edit() To check if it's the topic edit page
    24782479         * @uses bbp_get_forum_type_id() To get the topic forum id
    function bbp_form_forum_type() { 
    25002501/**
    25012502 * Output value of forum visibility
    25022503 *
    2503  * @since bbPress (r3563)
     2504 * @since 2.1.0 bbPress (r3563)
    25042505 *
    25052506 * @uses bbp_get_form_forum_visibility() To get the topic's forum id
    25062507 */
    function bbp_form_forum_visibility() { 
    25102511        /**
    25112512         * Return value of forum visibility
    25122513         *
    2513          * @since bbPress (r3563)
     2514         * @since 2.1.0 bbPress (r3563)
    25142515         *
    25152516         * @uses bbp_is_topic_edit() To check if it's the topic edit page
    25162517         * @uses bbp_get_forum_visibility_id() To get the topic forum id
    function bbp_form_forum_visibility() { 
    25382539/**
    25392540 * Output checked value of forum subscription
    25402541 *
    2541  * @since bbPress (r5156)
     2542 * @since 2.5.0 bbPress (r5156)
    25422543 *
    25432544 * @uses bbp_get_form_forum_subscribed() To get the subscribed checkbox value
    25442545 */
    function bbp_form_forum_subscribed() { 
    25482549        /**
    25492550         * Return checked value of forum subscription
    25502551         *
    2551          * @since bbPress (r5156)
     2552         * @since 2.5.0 bbPress (r5156)
    25522553         *
    25532554         * @uses bbp_is_forum_edit() To check if it's the forum edit page
    25542555         * @uses bbp_get_global_post_field() To get current post author
    function bbp_form_forum_subscribed() { 
    26002601/**
    26012602 * Output value forum type dropdown
    26022603 *
    2603  * @since bbPress (r3563)
     2604 * @since 2.1.0 bbPress (r3563)
    26042605 *
    26052606 * @param $args This function supports these arguments:
    26062607 *  - select_id: Select id. Defaults to bbp_forum_type
    function bbp_form_forum_type_dropdown( $args = array() ) { 
    26152616        /**
    26162617         * Return the forum type dropdown
    26172618         *
    2618          * @since bbPress (r3563)
     2619         * @since 2.1.0 bbPress (r3563)
    26192620         *
    26202621         * @param $args This function supports these arguments:
    26212622         *  - select_id: Select id. Defaults to bbp_forum_type
    function bbp_form_forum_type_dropdown( $args = array() ) { 
    26922693/**
    26932694 * Output value forum status dropdown
    26942695 *
    2695  * @since bbPress (r3563)
     2696 * @since 2.1.0 bbPress (r3563)
    26962697 *
    26972698 * @param $args This function supports these arguments:
    26982699 *  - select_id: Select id. Defaults to bbp_forum_status
    function bbp_form_forum_status_dropdown( $args = array() ) { 
    27072708        /**
    27082709         * Return the forum status dropdown
    27092710         *
    2710          * @since bbPress (r3563)
     2711         * @since 2.1.0 bbPress (r3563)
    27112712         *
    27122713         * @param $args This function supports these arguments:
    27132714         *  - select_id: Select id. Defaults to bbp_forum_status
    function bbp_form_forum_status_dropdown( $args = array() ) { 
    27842785/**
    27852786 * Output value forum visibility dropdown
    27862787 *
    2787  * @since bbPress (r3563)
     2788 * @since 2.1.0 bbPress (r3563)
    27882789 *
    27892790 * @param $args This function supports these arguments:
    27902791 *  - select_id: Select id. Defaults to bbp_forum_visibility
    function bbp_form_forum_visibility_dropdown( $args = array() ) { 
    27992800        /**
    28002801         * Return the forum visibility dropdown
    28012802         *
    2802          * @since bbPress (r3563)
     2803         * @since 2.1.0 bbPress (r3563)
    28032804         *
    28042805         * @param $args This function supports these arguments:
    28052806         *  - select_id: Select id. Defaults to bbp_forum_visibility
    function bbp_form_forum_visibility_dropdown( $args = array() ) { 
    28812882 *
    28822883 * @see bbp_forum_form_fields()
    28832884 *
    2884  * @since bbPress (r5558)
     2885 * @since 2.6.0 bbPress (r5558)
     2886 *
    28852887 * @return boolean True if is a post request with valid nonce
    28862888 */
    28872889function bbp_is_forum_form_post_request() {
    function bbp_is_forum_form_post_request() { 
    29092911/**
    29102912 * Output the link for the forum feed
    29112913 *
    2912  * @since bbPress (r3172)
     2914 * @since 2.0.0 bbPress (r3172)
    29132915 *
    29142916 * @param type $forum_id Optional. Forum ID.
    29152917 *
    function bbp_forum_topics_feed_link( $forum_id = 0 ) { 
    29212923        /**
    29222924         * Retrieve the link for the forum feed
    29232925         *
    2924          * @since bbPress (r3172)
     2926         * @since 2.0.0 bbPress (r3172)
    29252927         *
    29262928         * @param int $forum_id Optional. Forum ID.
    29272929         *
    function bbp_forum_topics_feed_link( $forum_id = 0 ) { 
    29712973/**
    29722974 * Output the link for the forum replies feed
    29732975 *
    2974  * @since bbPress (r3172)
     2976 * @since 2.0.0 bbPress (r3172)
    29752977 *
    29762978 * @param type $forum_id Optional. Forum ID.
    29772979 *
    function bbp_forum_replies_feed_link( $forum_id = 0 ) { 
    29832985        /**
    29842986         * Retrieve the link for the forum replies feed
    29852987         *
    2986          * @since bbPress (r3172)
     2988         * @since 2.0.0 bbPress (r3172)
    29872989         *
    29882990         * @param int $forum_id Optional. Forum ID.
    29892991         *
  • src/includes/replies/capabilities.php

    diff --git src/includes/replies/capabilities.php src/includes/replies/capabilities.php
    index 1f1c3a9..ed22cbe 100644
     
    1212/**
    1313 * Return reply capabilities
    1414 *
    15  * @since bbPress (r2593)
     15 * @since 2.0.0 bbPress (r2593)
    1616 *
    1717 * @uses apply_filters() Calls 'bbp_get_reply_caps' with the capabilities
    1818 * @return array Reply capabilities
    function bbp_get_reply_caps() { 
    3131/**
    3232 * Maps topic capabilities
    3333 *
    34  * @since bbPress (r4242)
     34 * @since 2.2.0 bbPress (r4242)
    3535 *
    3636 * @param array $caps Capabilities for meta capability
    3737 * @param string $cap Capability name
  • src/includes/replies/functions.php

    diff --git src/includes/replies/functions.php src/includes/replies/functions.php
    index 36b49bf..a6ebae6 100644
    defined( 'ABSPATH' ) || exit; 
    1616 * A wrapper for wp_insert_post() that also includes the necessary meta values
    1717 * for the reply to function properly.
    1818 *
    19  * @since bbPress (r3349)
     19 * @since 2.0.0 bbPress (r3349)
    2020 *
    2121 * @uses bbp_parse_args()
    2222 * @uses bbp_get_reply_post_type()
    function bbp_insert_reply( $reply_data = array(), $reply_meta = array() ) { 
    7474/**
    7575 * Handles the front end reply submission
    7676 *
    77  * @since bbPress (r2574)
     77 * @since 2.0.0 bbPress (r2574)
    7878 *
    7979 * @param string $action The requested action to compare this function to
    8080 * @uses bbp_add_error() To add an error message
    function bbp_update_reply( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymo 
    884884/**
    885885 * Walk up the ancestor tree from the current reply, and update all the counts
    886886 *
    887  * @since bbPress (r2884)
     887 * @since 2.0.0 bbPress (r2884)
    888888 *
    889889 * @param int $reply_id Optional. Reply id
    890890 * @param string $last_active_time Optional. Last active time
    function bbp_update_reply_walker( $reply_id, $last_active_time = '', $forum_id = 
    10141014/**
    10151015 * Update the reply with its forum id it is in
    10161016 *
    1017  * @since bbPress (r2855)
     1017 * @since 2.0.0 bbPress (r2855)
    10181018 *
    10191019 * @param int $reply_id Optional. Reply id to update
    10201020 * @param int $forum_id Optional. Forum id
    function bbp_update_reply_forum_id( $reply_id = 0, $forum_id = 0 ) { 
    10631063/**
    10641064 * Update the reply with its topic id it is in
    10651065 *
    1066  * @since bbPress (r2855)
     1066 * @since 2.0.0 bbPress (r2855)
    10671067 *
    10681068 * @param int $reply_id Optional. Reply id to update
    10691069 * @param int $topic_id Optional. Topic id
    function bbp_update_reply_topic_id( $reply_id = 0, $topic_id = 0 ) { 
    11121112/*
    11131113 * Update the reply's meta data with its reply to id
    11141114 *
    1115  * @since bbPress (r4944)
     1115 * @since 2.4.0 bbPress (r4944)
    11161116 *
    11171117 * @param int $reply_id Reply id to update
    11181118 * @param int $reply_to Optional. Reply to id
    function bbp_update_reply_to( $reply_id = 0, $reply_to = 0 ) { 
    11501150 * Because settings can be changed, this function does not care if hierarchical
    11511151 * replies are active or to what depth.
    11521152 *
    1153  * @since bbPress (r5390)
     1153 * @since 2.6.0 bbPress (r5390)
    11541154 *
    11551155 * @param int $reply_id
    11561156 * @return array
    function bbp_get_reply_ancestors( $reply_id = 0 ) { 
    11961196/**
    11971197 * Update the revision log of the reply
    11981198 *
    1199  * @since bbPress (r2782)
     1199 * @since 2.0.0 bbPress (r2782)
    12001200 *
    12011201 * @param array $args Supports these args:
    12021202 *  - reply_id: reply id
    function bbp_update_reply_revision_log( $args = array() ) { 
    12401240 *
    12411241 * Handles the front end move reply submission
    12421242 *
    1243  * @since bbPress (r4521)
     1243 * @since 2.3.0 bbPress (r4521)
    12441244 *
    12451245 * @param string $action The requested action to compare this function to
    12461246 * @uses bbp_add_error() To add an error message
    function bbp_move_reply_handler( $action = '' ) { 
    14961496 * When a reply is moved, update the counts of source and destination topic
    14971497 * and their forums.
    14981498 *
    1499  * @since bbPress (r4521)
     1499 * @since 2.3.0 bbPress (r4521)
    15001500 *
    15011501 * @param int $move_reply_id Move reply id
    15021502 * @param int $source_topic_id Source topic id
    function bbp_move_reply_count( $move_reply_id, $source_topic_id, $destination_to 
    15391539 * Handles the front end spamming/unspamming and trashing/untrashing/deleting of
    15401540 * replies
    15411541 *
    1542  * @since bbPress (r2740)
     1542 * @since 2.0.0 bbPress (r2740)
    15431543 *
    15441544 * @param string $action The requested action to compare this function to
    15451545 * @uses bbp_get_reply() To get the reply
    function bbp_toggle_reply_handler( $action = '' ) { 
    16931693/**
    16941694 * Return an associative array of available reply statuses
    16951695 *
    1696  * @since bbPress (r5399)
     1696 * @since 2.6.0 bbPress (r5399)
    16971697 *
    16981698 * @return array
    16991699 */
    function bbp_get_reply_statuses() { 
    17111711/**
    17121712 * Marks a reply as spam
    17131713 *
    1714  * @since bbPress (r2740)
     1714 * @since 2.0.0 bbPress (r2740)
    17151715 *
    17161716 * @param int $reply_id Reply id
    17171717 * @uses bbp_get_reply() To get the reply
    function bbp_spam_reply( $reply_id = 0 ) { 
    17591759/**
    17601760 * Unspams a reply
    17611761 *
    1762  * @since bbPress (r2740)
     1762 * @since 2.0.0 bbPress (r2740)
    17631763 *
    17641764 * @param int $reply_id Reply id
    17651765 * @uses bbp_get_reply() To get the reply
    function bbp_unspam_reply( $reply_id = 0 ) { 
    18131813/**
    18141814 * Approves a reply
    18151815 *
    1816  * @since bbPress (r5506)
     1816 * @since 2.6.0 bbPress (r5506)
    18171817 *
    18181818 * @param int $reply_id Reply id
    18191819 * @uses bbp_get_reply() To get the reply
    function bbp_approve_reply( $reply_id = 0 ) { 
    18601860/**
    18611861 * Unapproves a reply
    18621862 *
    1863  * @since bbPress (r5506)
     1863 * @since 2.6.0 bbPress (r5506)
    18641864 *
    18651865 * @param int $reply_id Reply id
    18661866 * @uses bbp_get_reply() To get the reply
    function bbp_untrashed_reply( $reply_id = 0 ) { 
    20142014/**
    20152015 * Return the replies per page setting
    20162016 *
    2017  * @since bbPress (r3540)
     2017 * @since 2.0.0 bbPress (r3540)
    20182018 *
    20192019 * @param int $default Default replies per page (15)
    20202020 * @uses get_option() To get the setting
    function bbp_get_replies_per_page( $default = 15 ) { 
    20382038/**
    20392039 * Return the replies per RSS page setting
    20402040 *
    2041  * @since bbPress (r3540)
     2041 * @since 2.0.0 bbPress (r3540)
    20422042 *
    20432043 * @param int $default Default replies per page (25)
    20442044 * @uses get_option() To get the setting
    function bbp_get_replies_per_rss_page( $default = 25 ) { 
    20642064/**
    20652065 * Check if autoembeds are enabled and hook them in if so
    20662066 *
    2067  * @since bbPress (r3752)
     2067 * @since 2.1.0 bbPress (r3752)
     2068 *
    20682069 * @global WP_Embed $wp_embed
    20692070 */
    20702071function bbp_reply_content_autoembed() {
    function bbp_reply_content_autoembed() { 
    20832084 * This function filters the 'post_where' of the WP_Query, and changes the query
    20842085 * to include both the topic AND its children in the same loop.
    20852086 *
    2086  * @since bbPress (r4058)
     2087 * @since 2.1.0 bbPress (r4058)
    20872088 *
    20882089 * @param string $where
    20892090 * @return string
    function _bbp_has_replies_where( $where = '', $query = false ) { 
    21482149/**
    21492150 * Output an RSS2 feed of replies, based on the query passed.
    21502151 *
    2151  * @since bbPress (r3171)
     2152 * @since 2.0.0 bbPress (r3171)
    21522153 *
    21532154 * @uses bbp_version()
    21542155 * @uses bbp_is_single_topic()
    function bbp_display_replies_feed_rss2( $replies_query = array() ) { 
    22872288/**
    22882289 * Redirect if unathorized user is attempting to edit a reply
    22892290 *
    2290  * @since bbPress (r3605)
     2291 * @since 2.1.0 bbPress (r3605)
    22912292 *
    22922293 * @uses bbp_is_reply_edit()
    22932294 * @uses current_user_can()
    function bbp_check_reply_edit() { 
    23182319 * freshness order. By updating the menu_order accordingly, we're able to
    23192320 * leverage core WordPress query ordering much more effectively.
    23202321 *
    2321  * @since bbPress (r3933)
     2322 * @since 2.1.0 bbPress (r3933)
    23222323 *
    23232324 * @param int $reply_id
    23242325 * @param int $reply_position
    function bbp_update_reply_position( $reply_id = 0, $reply_position = 0 ) { 
    23632364 * Get the position of a reply by querying the DB directly for the replies
    23642365 * of a given topic.
    23652366 *
    2366  * @since bbPress (r3933)
     2367 * @since 2.1.0 bbPress (r3933)
    23672368 *
    23682369 * @param int $reply_id
    23692370 * @param int $topic_id
    function bbp_get_reply_position_raw( $reply_id = 0, $topic_id = 0 ) { 
    24042405/**
    24052406 * List replies
    24062407 *
    2407  * @since bbPress (r4944)
     2408 * @since 2.4.0 bbPress (r4944)
    24082409 */
    24092410function bbp_list_replies( $args = array() ) {
    24102411
    function bbp_list_replies( $args = array() ) { 
    24422443 * @see https://bbpress.trac.wordpress.org/ticket/2588
    24432444 * @see https://bbpress.trac.wordpress.org/ticket/2586
    24442445 *
    2445  * @since bbPress (r5377)
     2446 * @since 2.5.4 bbPress (r5377)
    24462447 *
    24472448 * @param int $reply_to
    24482449 * @param int $reply_id
  • src/includes/replies/template.php

    diff --git src/includes/replies/template.php src/includes/replies/template.php
    index 754706f..925ff91 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Return the unique id of the custom post type for replies
    1717 *
    18  * @since bbPress (r2857)
     18 * @since 2.0.0 bbPress (r2857)
    1919 *
    2020 * @uses bbp_get_reply_post_type() To get the reply post type
    2121 */
    function bbp_reply_post_type() { 
    2525        /**
    2626         * Return the unique id of the custom post type for replies
    2727         *
    28          * @since bbPress (r2857)
     28         * @since 2.0.0 bbPress (r2857)
    2929         *
    3030         * @uses apply_filters() Calls 'bbp_get_forum_post_type' with the forum
    3131         *                        post type id
    function bbp_reply_post_type() { 
    3838/**
    3939 * Return array of labels used by the reply post type
    4040 *
    41  * @since bbPress (r5129)
     41 * @since 2.5.0 bbPress (r5129)
    4242 *
    4343 * @return array
    4444 */
    function bbp_get_reply_post_type_labels() { 
    6565/**
    6666 * Return array of reply post type rewrite settings
    6767 *
    68  * @since bbPress (r5129)
     68 * @since 2.5.0 bbPress (r5129)
    6969 *
    7070 * @return array
    7171 */
    function bbp_get_reply_post_type_rewrite() { 
    7979/**
    8080 * Return array of features the reply post type supports
    8181 *
    82  * @since bbPress (rx5129)
     82 * @since 2.5.0 bbPress (r5129)
    8383 *
    8484 * @return array
    8585 */
    function bbp_get_reply_post_type_supports() { 
    9696/**
    9797 * The main reply loop. WordPress makes this easy for us
    9898 *
    99  * @since bbPress (r2553)
     99 * @since 2.0.0 bbPress (r2553)
    100100 *
    101101 * @param array $args All the arguments supported by {@link WP_Query}
    102102 * @uses bbp_show_lead_topic() Are we showing the topic as a lead?
    function bbp_has_replies( $args = array() ) { 
    285285/**
    286286 * Whether there are more replies available in the loop
    287287 *
    288  * @since bbPress (r2553)
     288 * @since 2.0.0 bbPress (r2553)
    289289 *
    290290 * @uses WP_Query bbPress::reply_query::have_posts() To check if there are more
    291291 *                                                    replies available
    function bbp_replies() { 
    307307/**
    308308 * Loads up the current reply in the loop
    309309 *
    310  * @since bbPress (r2553)
     310 * @since 2.0.0 bbPress (r2553)
    311311 *
    312312 * @uses WP_Query bbPress::reply_query::the_post() To get the current reply
    313313 * @return object Reply information
    function bbp_the_reply() { 
    319319/**
    320320 * Output reply id
    321321 *
    322  * @since bbPress (r2553)
     322 * @since 2.0.0 bbPress (r2553)
    323323 *
    324324 * @param $reply_id Optional. Used to check emptiness
    325325 * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_id( $reply_id = 0 ) { 
    330330        /**
    331331         * Return the id of the reply in a replies loop
    332332         *
    333          * @since bbPress (r2553)
     333         * @since 2.0.0 bbPress (r2553)
    334334         *
    335335         * @param $reply_id Optional. Used to check emptiness
    336336         * @uses bbPress::reply_query::post::ID To get the reply id
    function bbp_reply_id( $reply_id = 0 ) { 
    380380/**
    381381 * Gets a reply
    382382 *
    383  * @since bbPress (r2787)
     383 * @since 2.0.0 bbPress (r2787)
    384384 *
    385385 * @param int|object $reply reply id or reply object
    386386 * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT
    function bbp_get_reply( $reply, $output = OBJECT, $filter = 'raw' ) { 
    423423/**
    424424 * Output the link to the reply in the reply loop
    425425 *
    426  * @since bbPress (r2553)
     426 * @since 2.0.0 bbPress (r2553)
    427427 *
    428428 * @param int $reply_id Optional. Reply id
    429429 * @uses bbp_get_reply_permalink() To get the reply permalink
    function bbp_reply_permalink( $reply_id = 0 ) { 
    434434        /**
    435435         * Return the link to the reply
    436436         *
    437          * @since bbPress (r2553)
     437         * @since 2.0.0 bbPress (r2553)
    438438         *
    439439         * @param int $reply_id Optional. Reply id
    440440         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_permalink( $reply_id = 0 ) { 
    451451/**
    452452 * Output the paginated url to the reply in the reply loop
    453453 *
    454  * @since bbPress (r2679)
     454 * @since 2.0.0 bbPress (r2679)
    455455 *
    456456 * @param int $reply_id Optional. Reply id
    457457 * @uses bbp_get_reply_url() To get the reply url
    function bbp_reply_url( $reply_id = 0 ) { 
    462462        /**
    463463         * Return the paginated url to the reply in the reply loop
    464464         *
    465          * @since bbPress (r2679)
     465         * @since 2.0.0 bbPress (r2679)
    466466         *
    467467         * @param int $reply_id Optional. Reply id
    468468         * @param string $redirect_to Optional. Pass a redirect value for use with
    function bbp_reply_url( $reply_id = 0 ) { 
    525525/**
    526526 * Output the title of the reply
    527527 *
    528  * @since bbPress (r2553)
     528 * @since 2.0.0 bbPress (r2553)
    529529 *
    530530 * @param int $reply_id Optional. Reply id
    531531 * @uses bbp_get_reply_title() To get the reply title
    function bbp_reply_title( $reply_id = 0 ) { 
    537537        /**
    538538         * Return the title of the reply
    539539         *
    540          * @since bbPress (r2553)
     540         * @since 2.0.0 bbPress (r2553)
    541541         *
    542542         * @param int $reply_id Optional. Reply id
    543543         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_title( $reply_id = 0 ) { 
    555555        /**
    556556         * Get empty reply title fallback.
    557557         *
    558          * @since bbPress (r5177)
     558         * @since 2.5.0 bbPress (r5177)
    559559         *
    560560         * @param string $post_title Required. Reply Title
    561561         * @param int $post_id Required. Reply ID
    function bbp_reply_title( $reply_id = 0 ) { 
    582582/**
    583583 * Output the content of the reply
    584584 *
    585  * @since bbPress (r2553)
     585 * @since 2.0.0 bbPress (r2553)
    586586 *
    587587 * @param int $reply_id Optional. reply id
    588588 * @uses bbp_get_reply_content() To get the reply content
    function bbp_reply_content( $reply_id = 0 ) { 
    593593        /**
    594594         * Return the content of the reply
    595595         *
    596          * @since bbPress (r2780)
     596         * @since 2.0.0 bbPress (r2780)
    597597         *
    598598         * @param int $reply_id Optional. reply id
    599599         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_content( $reply_id = 0 ) { 
    620620/**
    621621 * Output the excerpt of the reply
    622622 *
    623  * @since bbPress (r2751)
     623 * @since 2.0.0 bbPress (r2751)
    624624 *
    625625 * @param int $reply_id Optional. Reply id
    626626 * @param int $length Optional. Length of the excerpt. Defaults to 100 letters
    function bbp_reply_excerpt( $reply_id = 0, $length = 100 ) { 
    632632        /**
    633633         * Return the excerpt of the reply
    634634         *
    635          * @since bbPress (r2751)
     635         * @since 2.0.0 bbPress (r2751)
    636636         *
    637637         * @param int $reply_id Optional. Reply id
    638638         * @param int $length Optional. Length of the excerpt. Defaults to 100
    function bbp_reply_excerpt( $reply_id = 0, $length = 100 ) { 
    673673/**
    674674 * Output the post date and time of a reply
    675675 *
    676  * @since bbPress (r4155)
     676 * @since 2.2.0 bbPress (r4155)
    677677 *
    678678 * @param int $reply_id Optional. Reply id.
    679679 * @param bool $humanize Optional. Humanize output using time_since
    function bbp_reply_post_date( $reply_id = 0, $humanize = false, $gmt = false ) { 
    686686        /**
    687687         * Return the post date and time of a reply
    688688         *
    689          * @since bbPress (r4155)
     689         * @since 2.2.0 bbPress (r4155)
    690690         *
    691691         * @param int $reply_id Optional. Reply id.
    692692         * @param bool $humanize Optional. Humanize output using time_since
    function bbp_reply_post_date( $reply_id = 0, $humanize = false, $gmt = false ) { 
    719719/**
    720720 * Append revisions to the reply content
    721721 *
    722  * @since bbPress (r2782)
     722 * @since 2.0.0 bbPress (r2782)
    723723 *
    724724 * @param string $content Optional. Content to which we need to append the revisions to
    725725 * @param int $reply_id Optional. Reply id
    function bbp_reply_content_append_revisions( $content = '', $reply_id = 0 ) { 
    744744/**
    745745 * Output the revision log of the reply
    746746 *
    747  * @since bbPress (r2782)
     747 * @since 2.0.0 bbPress (r2782)
    748748 *
    749749 * @param int $reply_id Optional. Reply id
    750750 * @uses bbp_get_reply_revision_log() To get the reply revision log
    function bbp_reply_revision_log( $reply_id = 0 ) { 
    755755        /**
    756756         * Return the formatted revision log of the reply
    757757         *
    758          * @since bbPress (r2782)
     758         * @since 2.0.0 bbPress (r2782)
    759759         *
    760760         * @param int $reply_id Optional. Reply id
    761761         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_revision_log( $reply_id = 0 ) { 
    826826                /**
    827827                 * Return the raw revision log of the reply
    828828                 *
    829                  * @since bbPress (r2782)
     829                 * @since 2.0.0 bbPress (r2782)
    830830                 *
    831831                 * @param int $reply_id Optional. Reply id
    832832                 * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_revision_log( $reply_id = 0 ) { 
    846846/**
    847847 * Return the revisions of the reply
    848848 *
    849  * @since bbPress (r2782)
     849 * @since 2.0.0 bbPress (r2782)
    850850 *
    851851 * @param int $reply_id Optional. Reply id
    852852 * @uses bbp_get_reply_id() To get the reply id
    function bbp_get_reply_revisions( $reply_id = 0 ) { 
    865865/**
    866866 * Return the revision count of the reply
    867867 *
    868  * @since bbPress (r2782)
     868 * @since 2.0.0 bbPress (r2782)
    869869 *
    870870 * @param int $reply_id Optional. Reply id
    871871 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_get_reply_revision_count( $reply_id = 0, $integer = false ) { 
    884884/**
    885885 * Output the status of the reply
    886886 *
    887  * @since bbPress (r2667)
     887 * @since 2.0.0 bbPress (r2667)
    888888 *
    889889 * @param int $reply_id Optional. Reply id
    890890 * @uses bbp_get_reply_status() To get the reply status
    function bbp_reply_status( $reply_id = 0 ) { 
    895895        /**
    896896         * Return the status of the reply
    897897         *
    898          * @since bbPress (r2667)
     898         * @since 2.0.0 bbPress (r2667)
    899899         *
    900900         * @param int $reply_id Optional. Reply id
    901901         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_status( $reply_id = 0 ) { 
    911911/**
    912912 * Is the reply not spam or deleted?
    913913 *
    914  * @since bbPress (r3496)
     914 * @since 2.0.0 bbPress (r3496)
    915915 *
    916916 * @param int $reply_id Optional. Topic id
    917917 * @uses bbp_get_reply_id() To get the reply id
    function bbp_is_reply_published( $reply_id = 0 ) { 
    926926/**
    927927 * Is the reply marked as spam?
    928928 *
    929  * @since bbPress (r2740)
     929 * @since 2.0.0 bbPress (r2740)
    930930 *
    931931 * @param int $reply_id Optional. Reply id
    932932 * @uses bbp_get_reply_id() To get the reply id
    function bbp_is_reply_spam( $reply_id = 0 ) { 
    941941/**
    942942 * Is the reply trashed?
    943943 *
    944  * @since bbPress (r2884)
     944 * @since 2.0.0 bbPress (r2884)
    945945 *
    946946 * @param int $reply_id Optional. Topic id
    947947 * @uses bbp_get_reply_id() To get the reply id
    function bbp_is_reply_trash( $reply_id = 0 ) { 
    956956/**
    957957 * Is the reply pending?
    958958 *
    959  * @since bbPress (r5507)
     959 * @since 2.6.0 bbPress (r5507)
    960960 *
    961961 * @param int $reply_id Optional. Topic id
    962962 * @uses bbp_get_reply_id() To get the reply id
    function bbp_is_reply_pending( $reply_id = 0 ) { 
    972972/**
    973973 * Is the reply private?
    974974 *
    975  * @since bbPress (r5507)
     975 * @since 2.6.0 bbPress (r5507)
    976976 *
    977977 * @param int $reply_id Optional. Topic id
    978978 * @uses bbp_get_reply_id() To get the reply id
    function bbp_is_reply_private( $reply_id = 0 ) { 
    988988/**
    989989 * Is the reply by an anonymous user?
    990990 *
    991  * @since bbPress (r2753)
     991 * @since 2.0.0 bbPress (r2753)
    992992 *
    993993 * @param int $reply_id Optional. Reply id
    994994 * @uses bbp_get_reply_id() To get the reply id
    function bbp_is_reply_anonymous( $reply_id = 0 ) { 
    10181018 *
    10191019 * Output the author of the reply
    10201020 *
    1021  * @since bbPress (r2667)
    1022  * @deprecated bbPress (r5119)
     1021 * @since 2.0.0 bbPress (r2667)
     1022 *
     1023 * @deprecated 2.5.0 bbPress (r5119)
    10231024 *
    10241025 * @param int $reply_id Optional. Reply id
    10251026 * @uses bbp_get_reply_author() To get the reply author
    function bbp_reply_author( $reply_id = 0 ) { 
    10321033         *
    10331034         * Return the author of the reply
    10341035         *
    1035          * @since bbPress (r2667)
    1036          * @deprecated bbPress (r5119)
     1036         * @since 2.0.0 bbPress (r2667)
     1037         *
     1038         * @deprecated 2.5.0 bbPress (r5119)
    10371039         *
    10381040         * @param int $reply_id Optional. Reply id
    10391041         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_author( $reply_id = 0 ) { 
    10601062/**
    10611063 * Output the author ID of the reply
    10621064 *
    1063  * @since bbPress (r2667)
     1065 * @since 2.0.0 bbPress (r2667)
    10641066 *
    10651067 * @param int $reply_id Optional. Reply id
    10661068 * @uses bbp_get_reply_author_id() To get the reply author id
    function bbp_reply_author_id( $reply_id = 0 ) { 
    10711073        /**
    10721074         * Return the author ID of the reply
    10731075         *
    1074          * @since bbPress (r2667)
     1076         * @since 2.0.0 bbPress (r2667)
    10751077         *
    10761078         * @param int $reply_id Optional. Reply id
    10771079         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_author_id( $reply_id = 0 ) { 
    10901092/**
    10911093 * Output the author display_name of the reply
    10921094 *
    1093  * @since bbPress (r2667)
     1095 * @since 2.0.0 bbPress (r2667)
    10941096 *
    10951097 * @param int $reply_id Optional. Reply id
    10961098 * @uses bbp_get_reply_author_display_name()
    function bbp_reply_author_display_name( $reply_id = 0 ) { 
    11011103        /**
    11021104         * Return the author display_name of the reply
    11031105         *
    1104          * @since bbPress (r2667)
     1106         * @since 2.0.0 bbPress (r2667)
    11051107         *
    11061108         * @param int $reply_id Optional. Reply id
    11071109         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_author_display_name( $reply_id = 0 ) { 
    11521154/**
    11531155 * Output the author avatar of the reply
    11541156 *
    1155  * @since bbPress (r2667)
     1157 * @since 2.0.0 bbPress (r2667)
    11561158 *
    11571159 * @param int $reply_id Optional. Reply id
    11581160 * @param int $size Optional. Size of the avatar. Defaults to 40
    function bbp_reply_author_avatar( $reply_id = 0, $size = 40 ) { 
    11641166        /**
    11651167         * Return the author avatar of the reply
    11661168         *
    1167          * @since bbPress (r2667)
     1169         * @since 2.0.0 bbPress (r2667)
    11681170         *
    11691171         * @param int $reply_id Optional. Reply id
    11701172         * @param int $size Optional. Size of the avatar. Defaults to 40
    function bbp_reply_author_avatar( $reply_id = 0, $size = 40 ) { 
    11971199/**
    11981200 * Output the author link of the reply
    11991201 *
    1200  * @since bbPress (r2717)
     1202 * @since 2.0.0 bbPress (r2717)
    12011203 *
    12021204 * @param array $args Optional. If it is an integer, it is used as reply id.
    12031205 * @uses bbp_get_reply_author_link() To get the reply author link
    function bbp_reply_author_link( $args = array() ) { 
    12081210        /**
    12091211         * Return the author link of the reply
    12101212         *
    1211          * @since bbPress (r2717)
     1213         * @since 2.0.0 bbPress (r2717)
    12121214         *
    12131215         * @param array $args Optional. If an integer, it is used as reply id.
    12141216         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_author_link( $args = array() ) { 
    13071309/**
    13081310 * Output the author url of the reply
    13091311 *
    1310  * @since bbPress (r2667)
     1312 * @since 2.0.0 bbPress (r2667)
    13111313 *
    13121314 * @param int $reply_id Optional. Reply id
    13131315 * @uses bbp_get_reply_author_url() To get the reply author url
    function bbp_reply_author_url( $reply_id = 0 ) { 
    13181320        /**
    13191321         * Return the author url of the reply
    13201322         *
    1321          * @since bbPress (r2667)
     1323         * @since 2.0.0 bbPress (r2667)
    13221324         *
    13231325         * @param int $reply_id Optional. Reply id
    13241326         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_author_url( $reply_id = 0 ) { 
    13511353/**
    13521354 * Output the reply author email address
    13531355 *
    1354  * @since bbPress (r3445)
     1356 * @since 2.0.0 bbPress (r3445)
    13551357 *
    13561358 * @param int $reply_id Optional. Reply id
    13571359 * @uses bbp_get_reply_author_email() To get the reply author email
    function bbp_reply_author_email( $reply_id = 0 ) { 
    13621364        /**
    13631365         * Return the reply author email address
    13641366         *
    1365          * @since bbPress (r3445)
     1367         * @since 2.0.0 bbPress (r3445)
    13661368         *
    13671369         * @param int $reply_id Optional. Reply id
    13681370         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_author_email( $reply_id = 0 ) { 
    14041406/**
    14051407 * Output the reply author role
    14061408 *
    1407  * @since bbPress (r3860)
     1409 * @since 2.1.0 bbPress (r3860)
    14081410 *
    14091411 * @param array $args Optional.
    14101412 * @uses bbp_get_reply_author_role() To get the reply author role
    function bbp_reply_author_role( $args = array() ) { 
    14151417        /**
    14161418         * Return the reply author role
    14171419         *
    1418          * @since bbPress (r3860)
     1420         * @since 2.1.0 bbPress (r3860)
    14191421         *
    14201422         * @param array $args Optional.
    14211423         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_author_role( $args = array() ) { 
    14541456/**
    14551457 * Output the topic title a reply belongs to
    14561458 *
    1457  * @since bbPress (r2553)
     1459 * @since 2.0.0 bbPress (r2553)
    14581460 *
    14591461 * @param int $reply_id Optional. Reply id
    14601462 * @uses bbp_get_reply_topic_title() To get the reply topic title
    function bbp_reply_topic_title( $reply_id = 0 ) { 
    14651467        /**
    14661468         * Return the topic title a reply belongs to
    14671469         *
    1468          * @since bbPress (r2553)
     1470         * @since 2.0.0 bbPress (r2553)
    14691471         *
    14701472         * @param int $reply_id Optional. Reply id
    14711473         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_topic_title( $reply_id = 0 ) { 
    14851487/**
    14861488 * Output the topic id a reply belongs to
    14871489 *
    1488  * @since bbPress (r2553)
     1490 * @since 2.0.0 bbPress (r2553)
    14891491 *
    14901492 * @param int $reply_id Optional. Reply id
    14911493 * @uses bbp_get_reply_topic_id() To get the reply topic id
    function bbp_reply_topic_id( $reply_id = 0 ) { 
    14961498        /**
    14971499         * Return the topic id a reply belongs to
    14981500         *
    1499          * @since bbPress (r2553)
     1501         * @since 2.0.0 bbPress (r2553)
    15001502         *
    15011503         * @param int $reply_id Optional. Reply id
    15021504         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_topic_id( $reply_id = 0 ) { 
    15261528/**
    15271529 * Output the forum id a reply belongs to
    15281530 *
    1529  * @since bbPress (r2679)
     1531 * @since 2.0.0 bbPress (r2679)
    15301532 *
    15311533 * @param int $reply_id Optional. Reply id
    15321534 * @uses bbp_get_reply_forum_id() To get the reply forum id
    function bbp_reply_forum_id( $reply_id = 0 ) { 
    15371539        /**
    15381540         * Return the forum id a reply belongs to
    15391541         *
    1540          * @since bbPress (r2679)
     1542         * @since 2.0.0 bbPress (r2679)
    15411543         *
    15421544         * @param int $reply_id Optional. Reply id
    15431545         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_forum_id( $reply_id = 0 ) { 
    15661568/**
    15671569 * Output the reply's ancestor reply id
    15681570 *
    1569  * @since bbPress (r4944)
     1571 * @since 2.4.0 bbPress (r4944)
    15701572 *
    15711573 * @param int $reply_id Optional. Reply id
    15721574 * @uses bbp_get_reply_ancestor_id() To get the reply's ancestor id
    function bbp_reply_ancestor_id( $reply_id = 0 ) { 
    15771579        /**
    15781580         * Return the reply's ancestor reply id
    15791581         *
    1580          * @since bbPress (r4944)
     1582         * @since 2.4.0 bbPress (r4944)
    15811583         *
    15821584         * @param in $reply_id Reply id
    15831585         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_ancestor_id( $reply_id = 0 ) { 
    16051607/**
    16061608 * Output the reply to id of a reply
    16071609 *
    1608  * @since bbPress (r4944)
     1610 * @since 2.4.0 bbPress (r4944)
    16091611 *
    16101612 * @param int $reply_id Optional. Reply id
    16111613 * @uses bbp_get_reply_to() To get the reply to id
    function bbp_reply_to( $reply_id = 0 ) { 
    16161618        /**
    16171619         * Return the reply to id of a reply
    16181620         *
    1619          * @since bbPress (r4944)
     1621         * @since 2.4.0 bbPress (r4944)
    16201622         *
    16211623         * @param int $reply_id Optional. Reply id
    16221624         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_to( $reply_id = 0 ) { 
    16441646/**
    16451647 * Output the link for the reply to
    16461648 *
    1647  * @since bbPress (r4944)
     1649 * @since 2.4.0 bbPress (r4944)
    16481650 *
    16491651 * @param array $args
    16501652 * @uses bbp_get_reply_to_link() To get the reply to link
    function bbp_reply_to_link( $args = array() ) { 
    16561658        /**
    16571659         * Return the link for a reply to a reply
    16581660         *
    1659          * @since bbPress (r4944)
     1661         * @since 2.4.0 bbPress (r4944)
    16601662         *
    16611663         * @param array $args Arguments
    16621664         * @uses bbp_current_user_can_access_create_reply_form() To check permissions
    function bbp_reply_to_link( $args = array() ) { 
    17221724/**
    17231725 * Output the reply to a reply cancellation link
    17241726 *
    1725  * @since bbPress (r4944)
     1727 * @since 2.4.0 bbPress (r4944)
    17261728 *
    17271729 * @uses bbp_get_cancel_reply_to_link() To get the reply cancellation link
    17281730 */
    function bbp_cancel_reply_to_link( $text = '' ) { 
    17321734        /**
    17331735         * Return the cancellation link for a reply to a reply
    17341736         *
    1735          * @since bbPress (r4944)
     1737         * @since 2.4.0 bbPress (r4944)
    17361738         *
    17371739         * @param string $text The cancel text
    17381740         * @uses apply_filters() Calls 'bbp_get_cancel_reply_to_link' with the cancellation
    function bbp_cancel_reply_to_link( $text = '' ) { 
    17641766/**
    17651767 * Output the numeric position of a reply within a topic
    17661768 *
    1767  * @since bbPress (r2984)
     1769 * @since 2.0.0 bbPress (r2984)
    17681770 *
    17691771 * @param int $reply_id Optional. Reply id
    17701772 * @param int $topic_id Optional. Topic id
    function bbp_reply_position( $reply_id = 0, $topic_id = 0 ) { 
    17761778        /**
    17771779         * Return the numeric position of a reply within a topic
    17781780         *
    1779          * @since bbPress (r2984)
     1781         * @since 2.0.0 bbPress (r2984)
    17801782         *
    17811783         * @param int $reply_id Optional. Reply id
    17821784         * @param int $topic_id Optional. Topic id
    function bbp_reply_position( $reply_id = 0, $topic_id = 0 ) { 
    18301832/**
    18311833 * Output admin links for reply
    18321834 *
    1833  * @since bbPress (r2667)
     1835 * @since 2.0.0 bbPress (r2667)
    18341836 *
    18351837 * @param array $args See {@link bbp_get_reply_admin_links()}
    18361838 * @uses bbp_get_reply_admin_links() To get the reply admin links
    function bbp_reply_admin_links( $args = array() ) { 
    18411843        /**
    18421844         * Return admin links for reply
    18431845         *
    1844          * @since bbPress (r2667)
     1846         * @since 2.0.0 bbPress (r2667)
    18451847         *
    18461848         * @param array $args This function supports these arguments:
    18471849         *  - id: Optional. Reply id
    function bbp_reply_admin_links( $args = array() ) { 
    19301932/**
    19311933 * Output the edit link of the reply
    19321934 *
    1933  * @since bbPress (r2740)
     1935 * @since 2.0.0 bbPress (r2740)
    19341936 *
    19351937 * @param array $args See {@link bbp_get_reply_edit_link()}
    19361938 * @uses bbp_get_reply_edit_link() To get the reply edit link
    function bbp_reply_edit_link( $args = array() ) { 
    19421944        /**
    19431945         * Return the edit link of the reply
    19441946         *
    1945          * @since bbPress (r2740)
     1947         * @since 2.0.0 bbPress (r2740)
    19461948         *
    19471949         * @param array $args This function supports these arguments:
    19481950         *  - id: Reply id
    function bbp_reply_edit_link( $args = array() ) { 
    19951997/**
    19961998 * Output URL to the reply edit page
    19971999 *
    1998  * @since bbPress (r2753)
     2000 * @since 2.0.0 bbPress (r2753)
    19992001 *
    20002002 * @param int $reply_id Optional. Reply id
    20012003 * @uses bbp_get_reply_edit_url() To get the reply edit url
    function bbp_reply_edit_url( $reply_id = 0 ) { 
    20062008        /**
    20072009         * Return URL to the reply edit page
    20082010         *
    2009          * @since bbPress (r2753)
     2011         * @since 2.0.0 bbPress (r2753)
    20102012         *
    20112013         * @param int $reply_id Optional. Reply id
    20122014         * @uses bbp_get_reply_id() To get the reply id
    function bbp_reply_edit_url( $reply_id = 0 ) { 
    20482050/**
    20492051 * Output the trash link of the reply
    20502052 *
    2051  * @since bbPress (r2740)
     2053 * @since 2.0.0 bbPress (r2740)
    20522054 *
    20532055 * @param array $args See {@link bbp_get_reply_trash_link()}
    20542056 * @uses bbp_get_reply_trash_link() To get the reply trash link
    function bbp_reply_trash_link( $args = array() ) { 
    20602062        /**
    20612063         * Return the trash link of the reply
    20622064         *
    2063          * @since bbPress (r2740)
     2065         * @since 2.0.0 bbPress (r2740)
    20642066         *
    20652067         * @param array $args This function supports these arguments:
    20662068         *  - id: Reply id
    function bbp_reply_trash_link( $args = array() ) { 
    21242126/**
    21252127 * Output the spam link of the reply
    21262128 *
    2127  * @since bbPress (r2740)
     2129 * @since 2.0.0 bbPress (r2740)
    21282130 *
    21292131 * @param array $args See {@link bbp_get_reply_spam_link()}
    21302132 * @uses bbp_get_reply_spam_link() To get the reply spam link
    function bbp_reply_spam_link( $args = array() ) { 
    21362138        /**
    21372139         * Return the spam link of the reply
    21382140         *
    2139          * @since bbPress (r2740)
     2141         * @since 2.0.0 bbPress (r2740)
    21402142         *
    21412143         * @param array $args This function supports these arguments:
    21422144         *  - id: Reply id
    function bbp_reply_spam_link( $args = array() ) { 
    21872189 *
    21882190 * Output the move link of the reply
    21892191 *
    2190  * @since bbPress (r4521)
     2192 * @since 2.3.0 bbPress (r4521)
    21912193 *
    21922194 * @param array $args See {@link bbp_get_reply_move_link()}
    21932195 * @uses bbp_get_reply_move_link() To get the reply move link
    function bbp_reply_move_link( $args = array() ) { 
    22012203         *
    22022204         * Return the move link of the reply
    22032205         *
    2204          * @since bbPress (r4521)
     2206         * @since 2.3.0 bbPress (r4521)
    22052207         *
    22062208         * @param array $args This function supports these arguments:
    22072209         *  - id: Reply id
    function bbp_reply_move_link( $args = array() ) { 
    22552257 *
    22562258 * Output the split link of the topic (but is bundled with each reply)
    22572259 *
    2258  * @since bbPress (r2756)
     2260 * @since 2.0.0 bbPress (r2756)
    22592261 *
    22602262 * @param array $args See {@link bbp_get_topic_split_link()}
    22612263 * @uses bbp_get_topic_split_link() To get the topic split link
    function bbp_topic_split_link( $args = array() ) { 
    22692271         *
    22702272         * Return the split link of the topic (but is bundled with each reply)
    22712273         *
    2272          * @since bbPress (r2756)
     2274         * @since 2.0.0 bbPress (r2756)
    22732275         *
    22742276         * @param array $args This function supports these arguments:
    22752277         *  - id: Reply id
    function bbp_topic_split_link( $args = array() ) { 
    23212323/**
    23222324 * Output the approve link of the reply
    23232325 *
    2324  * @since bbPress (r5507)
     2326 * @since 2.6.0 bbPress (r5507)
    23252327 *
    23262328 * @param array $args See {@link bbp_get_reply_approve_link()}
    23272329 * @uses bbp_get_reply_approve_link() To get the reply approve link
    function bbp_reply_approve_link( $args = array() ) { 
    23332335        /**
    23342336         * Return the approve link of the reply
    23352337         *
    2336          * @since bbPress (r5507)
     2338         * @since 2.6.0 bbPress (r5507)
    23372339         *
    23382340         * @param array $args This function supports these args:
    23392341         *  - id: Optional. Reply id
    function bbp_reply_approve_link( $args = array() ) { 
    23822384/**
    23832385 * Output the row class of a reply
    23842386 *
    2385  * @since bbPress (r2678)
     2387 * @since 2.0.0 bbPress (r2678)
    23862388 *
    23872389 * @param int $reply_id Optional. Reply ID
    23882390 * @param array Extra classes you can pass when calling this function
    function bbp_reply_class( $reply_id = 0, $classes = array() ) { 
    23942396        /**
    23952397         * Return the row class of a reply
    23962398         *
    2397          * @since bbPress (r2678)
     2399         * @since 2.0.0 bbPress (r2678)
    23982400         *
    23992401         * @param int $reply_id Optional. Reply ID
    24002402         * @param array Extra classes you can pass when calling this function
    function bbp_reply_class( $reply_id = 0, $classes = array() ) { 
    24272429/**
    24282430 * Output the topic pagination count
    24292431 *
    2430  * @since bbPress (r2519)
     2432 * @since 2.0.0 bbPress (r2519)
    24312433 *
    24322434 * @uses bbp_get_topic_pagination_count() To get the topic pagination count
    24332435 */
    function bbp_topic_pagination_count() { 
    24372439        /**
    24382440         * Return the topic pagination count
    24392441         *
    2440          * @since bbPress (r2519)
     2442         * @since 2.0.0 bbPress (r2519)
    24412443         *
    24422444         * @uses bbp_number_format() To format the number value
    24432445         * @uses bbp_show_lead_topic() Are we showing the topic as a lead?
    function bbp_topic_pagination_count() { 
    25002502/**
    25012503 * Output topic pagination links
    25022504 *
    2503  * @since bbPress (r2519)
     2505 * @since 2.0.0 bbPress (r2519)
    25042506 *
    25052507 * @uses bbp_get_topic_pagination_links() To get the topic pagination links
    25062508 */
    function bbp_topic_pagination_links() { 
    25102512        /**
    25112513         * Return topic pagination links
    25122514         *
    2513          * @since bbPress (r2519)
     2515         * @since 2.0.0 bbPress (r2519)
    25142516         *
    25152517         * @uses apply_filters() Calls 'bbp_get_topic_pagination_links' with the
    25162518         *                        pagination links
    function bbp_topic_pagination_links() { 
    25312533/**
    25322534 * Output the value of reply content field
    25332535 *
    2534  * @since bbPress (r31301)
     2536 * @since 2.0.0 bbPress (r3130)
    25352537 *
    25362538 * @uses bbp_get_form_reply_content() To get value of reply content field
    25372539 */
    function bbp_form_reply_content() { 
    25412543        /**
    25422544         * Return the value of reply content field
    25432545         *
    2544          * @since bbPress (r31301)
     2546         * @since 2.0.0 bbPress (r3130)
    25452547         *
    25462548         * @uses bbp_is_reply_edit() To check if it's the reply edit page
    25472549         * @uses apply_filters() Calls 'bbp_get_form_reply_content' with the content
    function bbp_form_reply_content() { 
    25682570/**
    25692571 * Output the value of the reply to field
    25702572 *
    2571  * @since bbPress (r4944)
     2573 * @since 2.4.0 bbPress (r4944)
    25722574 *
    25732575 * @uses bbp_get_form_reply_to() To get value of the reply to field
    25742576 */
    function bbp_form_reply_to() { 
    25792581        /**
    25802582         * Return the value of reply to field
    25812583         *
    2582          * @since bbPress (r4944)
     2584         * @since 2.4.0 bbPress (r4944)
    25832585         *
    25842586         * @uses bbp_get_reply_id() To validate the reply to
    25852587         * @uses apply_filters() Calls 'bbp_get_form_reply_to' with the reply to
    function bbp_form_reply_to() { 
    26072609 * Output a select box allowing to pick which reply an existing hierarchical
    26082610 * reply belongs to.
    26092611 *
    2610  * @since bbPress (r5387)
     2612 * @since 2.6.0 bbPress (r5387)
    26112613 *
    26122614 * @param int $reply_id
    26132615 */
    function bbp_reply_to_dropdown( $reply_id = 0 ) { 
    26172619        /**
    26182620         * Return a select box allowing to pick which topic/reply a reply belongs.
    26192621         *
    2620          * @since bbPress (r5387)
     2622         * @since 2.6.0 bbPress (r5387)
    26212623         *
    26222624         * @param int $reply_id
    26232625         *
    function bbp_reply_to_dropdown( $reply_id = 0 ) { 
    26912693/**
    26922694 * Output checked value of reply log edit field
    26932695 *
    2694  * @since bbPress (r31301)
     2696 * @since 2.0.0 bbPress (r3130)
    26952697 *
    26962698 * @uses bbp_get_form_reply_log_edit() To get the reply log edit value
    26972699 */
    function bbp_form_reply_log_edit() { 
    27012703        /**
    27022704         * Return checked value of reply log edit field
    27032705         *
    2704          * @since bbPress (r31301)
     2706         * @since 2.0.0 bbPress (r3130)
    27052707         *
    27062708         * @uses apply_filters() Calls 'bbp_get_form_reply_log_edit' with the
    27072709         *                        log edit value
    function bbp_form_reply_log_edit() { 
    27272729/**
    27282730 * Output the value of the reply edit reason
    27292731 *
    2730  * @since bbPress (r31301)
     2732 * @since 2.0.0 bbPress (r3130)
    27312733 *
    27322734 * @uses bbp_get_form_reply_edit_reason() To get the reply edit reason value
    27332735 */
    function bbp_form_reply_edit_reason() { 
    27372739        /**
    27382740         * Return the value of the reply edit reason
    27392741         *
    2740          * @since bbPress (r31301)
     2742         * @since 2.0.0 bbPress (r3130)
    27412743         *
    27422744         * @uses apply_filters() Calls 'bbp_get_form_reply_edit_reason' with the
    27432745         *                        reply edit reason value
    function bbp_form_reply_edit_reason() { 
    27602762/**
    27612763 * Output value reply status dropdown
    27622764 *
    2763  * @since bbPress (r5399)
     2765 * @since 2.6.0 bbPress (r5399)
    27642766 *
    27652767 * @param $args This function supports these arguments:
    27662768 *  - select_id: Select id. Defaults to bbp_reply_status
    function bbp_form_reply_status_dropdown( $args = array() ) { 
    27782780         * capability. Because of this, no additional capablitiy checks are performed
    27792781         * within this function to check available reply statuses.
    27802782         *
    2781          * @since bbPress (r5399)
     2783         * @since 2.6.0 bbPress (r5399)
    27822784         *
    27832785         * @param $args This function supports these arguments:
    27842786         *  - select_id: Select id. Defaults to bbp_reply_status
    function bbp_form_reply_status_dropdown( $args = array() ) { 
    28492851 *
    28502852 * @see bbp_reply_form_fields()
    28512853 *
    2852  * @since bbPress (r5558)
     2854 * @since 2.6.0 bbPress (r5558)
     2855 *
    28532856 * @return boolean True if is a post request with valid nonce
    28542857 */
    28552858function bbp_is_reply_form_post_request() {
  • src/includes/search/functions.php

    diff --git src/includes/search/functions.php src/includes/search/functions.php
    index 0187a11..760fa9f 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Run the search query
    1717 *
    18  * @since bbPress (r4579)
     18 * @since 2.3.0 bbPress (r4579)
    1919 *
    2020 * @param mixed $new_args New arguments
    2121 * @uses bbp_get_search_query_args() To get the search query args
    function bbp_search_query( $new_args = array() ) { 
    4040/**
    4141 * Return the search's query args
    4242 *
    43  * @since bbPress (r4579)
     43 * @since 2.3.0 bbPress (r4579)
    4444 *
    4545 * @uses bbp_get_search_terms() To get the search terms
    4646 * @return array Query arguments
    function bbp_get_search_query_args() { 
    5757/**
    5858 * Redirect to search results page if needed
    5959 *
    60  * @since bbPress (r4928)
     60 * @since 2.4.0 bbPress (r4928)
    6161 *
    6262 * @return If a redirect is not needed
    6363 */
  • src/includes/search/template.php

    diff --git src/includes/search/template.php src/includes/search/template.php
    index 02c3cb1..25e4de3 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * The main search loop. WordPress does the heavy lifting.
    1717 *
    18  * @since bbPress (r4579)
     18 * @since 2.3.0 bbPress (r4579)
    1919 *
    2020 * @param array $args All the arguments supported by {@link WP_Query}
    2121 * @uses bbp_get_view_all() Are we showing all results?
    function bbp_has_search_results( $args = array() ) { 
    166166/**
    167167 * Whether there are more search results available in the loop
    168168 *
    169  * @since bbPress (r4579)
     169 * @since 2.3.0 bbPress (r4579)
    170170 *
    171171 * @uses WP_Query bbPress::search_query::have_posts() To check if there are more
    172172 *                                                     search results available
    function bbp_search_results() { 
    188188/**
    189189 * Loads up the current search result in the loop
    190190 *
    191  * @since bbPress (r4579)
     191 * @since 2.3.0 bbPress (r4579)
    192192 *
    193193 * @uses WP_Query bbPress::search_query::the_post() To get the current search result
    194194 * @return object Search information
    function bbp_the_search_result() { 
    207207/**
    208208 * Output the search page title
    209209 *
    210  * @since bbPress (r4579)
     210 * @since 2.3.0 bbPress (r4579)
    211211 *
    212212 * @uses bbp_get_search_title()
    213213 */
    function bbp_search_title() { 
    218218        /**
    219219         * Get the search page title
    220220         *
    221          * @since bbPress (r4579)
     221         * @since 2.3.0 bbPress (r4579)
    222222         *
    223223         * @uses bbp_get_search_terms()
    224224         */
    function bbp_search_title() { 
    242242/**
    243243 * Output the search url
    244244 *
    245  * @since bbPress (r4579)
     245 * @since 2.3.0 bbPress (r4579)
    246246 *
    247247 * @uses bbp_get_search_url() To get the search url
    248248 */
    function bbp_search_url() { 
    252252        /**
    253253         * Return the search url
    254254         *
    255          * @since bbPress (r4579)
     255         * @since 2.3.0 bbPress (r4579)
    256256         *
    257257         * @uses user_trailingslashit() To fix slashes
    258258         * @uses trailingslashit() To fix slashes
    function bbp_search_url() { 
    282282/**
    283283 * Output the search results url
    284284 *
    285  * @since bbPress (r4928)
     285 * @since 2.4.0 bbPress (r4928)
    286286 *
    287287 * @uses bbp_get_search_url() To get the search url
    288288 */
    function bbp_search_results_url() { 
    292292        /**
    293293         * Return the search url
    294294         *
    295          * @since bbPress (r4928)
     295         * @since 2.4.0 bbPress (r4928)
    296296         *
    297297         * @uses user_trailingslashit() To fix slashes
    298298         * @uses trailingslashit() To fix slashes
    function bbp_search_results_url() { 
    334334/**
    335335 * Output the search terms
    336336 *
    337  * @since bbPress (r4579)
     337 * @since 2.3.0 bbPress (r4579)
    338338 *
    339339 * @param string $search_terms Optional. Search terms
    340340 * @uses bbp_get_search_terms() To get the search terms
    function bbp_search_terms( $search_terms = '' ) { 
    346346        /**
    347347         * Get the search terms
    348348         *
    349          * @since bbPress (r4579)
     349         * @since 2.3.0 bbPress (r4579)
    350350         *
    351351         * If search terms are supplied, those are used. Otherwise check the
    352352         * search rewrite id query var.
    function bbp_search_terms( $search_terms = '' ) { 
    376376/**
    377377 * Output the search result pagination count
    378378 *
    379  * @since bbPress (r4579)
     379 * @since 2.3.0 bbPress (r4579)
    380380 *
    381381 * @uses bbp_get_search_pagination_count() To get the search result pagination count
    382382 */
    function bbp_search_pagination_count() { 
    387387        /**
    388388         * Return the search results pagination count
    389389         *
    390          * @since bbPress (r4579)
     390         * @since 2.3.0 bbPress (r4579)
    391391         *
    392392         * @uses bbp_number_format() To format the number value
    393393         * @uses apply_filters() Calls 'bbp_get_search_pagination_count' with the
    function bbp_search_pagination_count() { 
    424424/**
    425425 * Output search pagination links
    426426 *
    427  * @since bbPress (r4579)
     427 * @since 2.3.0 bbPress (r4579)
    428428 *
    429429 * @uses bbp_get_search_pagination_links() To get the search pagination links
    430430 */
    function bbp_search_pagination_links() { 
    435435        /**
    436436         * Return search pagination links
    437437         *
    438          * @since bbPress (r4579)
     438         * @since 2.3.0 bbPress (r4579)
    439439         *
    440440         * @uses apply_filters() Calls 'bbp_get_search_pagination_links' with the
    441441         *                        pagination links
  • src/includes/topics/capabilities.php

    diff --git src/includes/topics/capabilities.php src/includes/topics/capabilities.php
    index e3c5022..99d949d 100644
     
    1212/**
    1313 * Return topic capabilities
    1414 *
    15  * @since bbPress (r2593)
     15 * @since 2.0.0 bbPress (r2593)
    1616 *
    1717 * @uses apply_filters() Calls 'bbp_get_topic_caps' with the capabilities
    1818 * @return array Topic capabilities
    function bbp_get_topic_caps() { 
    3232/**
    3333 * Return topic tag capabilities
    3434 *
    35  * @since bbPress (r2593)
     35 * @since 2.0.0 bbPress (r2593)
    3636 *
    3737 * @uses apply_filters() Calls 'bbp_get_topic_tag_caps' with the capabilities
    3838 * @return array Topic tag capabilities
    function bbp_get_topic_tag_caps() { 
    4949/**
    5050 * Maps topic capabilities
    5151 *
    52  * @since bbPress (r4242)
     52 * @since 2.2.0 bbPress (r4242)
    5353 *
    5454 * @param array $caps Capabilities for meta capability
    5555 * @param string $cap Capability name
    function bbp_map_topic_meta_caps( $caps = array(), $cap = '', $user_id = 0, $arg 
    223223/**
    224224 * Maps topic tag capabilities
    225225 *
    226  * @since bbPress (r4242)
     226 * @since 2.2.0 bbPress (r4242)
    227227 *
    228228 * @param array $caps Capabilities for meta capability
    229229 * @param string $cap Capability name
  • src/includes/topics/functions.php

    diff --git src/includes/topics/functions.php src/includes/topics/functions.php
    index 75f79b5..d5eca39 100644
    defined( 'ABSPATH' ) || exit; 
    1616 * A wrapper for wp_insert_post() that also includes the necessary meta values
    1717 * for the topic to function properly.
    1818 *
    19  * @since bbPress (r3349)
     19 * @since 2.0.0 bbPress (r3349)
    2020 *
    2121 * @uses bbp_parse_args()
    2222 * @uses bbp_get_topic_post_type()
    function bbp_update_topic( $topic_id = 0, $forum_id = 0, $anonymous_data = false 
    935935 * manual queries against the database to get their results. As such, this
    936936 * function can be costly to run but is necessary to keep everything accurate.
    937937 *
    938  * @since bbPress (r2800)
     938 * @since 2.0.0 bbPress (r2800)
     939 *
    939940 * @param int $topic_id Topic id
    940941 * @param string $last_active_time Optional. Last active time
    941942 * @param int $forum_id Optional. Forum id
    function bbp_move_topic_handler( $topic_id, $old_forum_id, $new_forum_id ) { 
    11391140 *
    11401141 * Handles the front end merge topic submission
    11411142 *
    1142  * @since bbPress (r2756)
     1143 * @since 2.0.0 bbPress (r2756)
    11431144 *
    11441145 * @param string $action The requested action to compare this function to
    11451146 * @uses bbp_add_error() To add an error message
    function bbp_merge_topic_handler( $action = '' ) { 
    13931394 * When a topic is merged, update the counts of source and destination topic
    13941395 * and their forums.
    13951396 *
    1396  * @since bbPress (r2756)
     1397 * @since 2.0.0 bbPress (r2756)
    13971398 *
    13981399 * @param int $destination_topic_id Destination topic id
    13991400 * @param int $source_topic_id Source topic id
    function bbp_merge_topic_count( $destination_topic_id, $source_topic_id, $source 
    14361437 *
    14371438 * Handles the front end split topic submission
    14381439 *
    1439  * @since bbPress (r2756)
     1440 * @since 2.0.0 bbPress (r2756)
    14401441 *
    14411442 * @param string $action The requested action to compare this function to
    14421443 * @uses bbp_add_error() To add an error message
    function bbp_split_topic_handler( $action = '' ) { 
    17731774 * When a topic is split, update the counts of source and destination topic
    17741775 * and their forums.
    17751776 *
    1776  * @since bbPress (r2756)
     1777 * @since 2.0.0 bbPress (r2756)
    17771778 *
    17781779 * @param int $from_reply_id From reply id
    17791780 * @param int $source_topic_id Source topic id
    function bbp_split_topic_count( $from_reply_id, $source_topic_id, $destination_t 
    18131814/**
    18141815 * Handles the front end tag management (renaming, merging, destroying)
    18151816 *
    1816  * @since bbPress (r2768)
     1817 * @since 2.0.0 bbPress (r2768)
    18171818 *
    18181819 * @param string $action The requested action to compare this function to
    18191820 * @uses bbp_verify_nonce_request() To verify the nonce and check the request
    function bbp_edit_topic_tag_handler( $action = '' ) { 
    20042005/**
    20052006 * Return an associative array of available topic statuses
    20062007 *
    2007  * @since bbPress (r5059)
     2008 * @since 2.4.0 bbPress (r5059)
    20082009 *
    20092010 * @return array
    20102011 */
    function bbp_get_topic_statuses() { 
    20212022/**
    20222023 * Return an associative array of topic sticky types
    20232024 *
    2024  * @since bbPress (r5059)
     2025 * @since 2.4.0 bbPress (r5059)
    20252026 *
    20262027 * @return array
    20272028 */
    function bbp_get_topic_types() { 
    20382039/**
    20392040 * Return sticky topics of a forum
    20402041 *
    2041  * @since bbPress (r2592)
     2042 * @since 2.0.0 bbPress (r2592)
    20422043 *
    20432044 * @param int $forum_id Optional. If not passed, super stickies are returned.
    20442045 * @uses bbp_get_super_stickies() To get the super stickies
    function bbp_get_stickies( $forum_id = 0 ) { 
    20562057/**
    20572058 * Return topics stuck to front page of the forums
    20582059 *
    2059  * @since bbPress (r2592)
     2060 * @since 2.0.0 bbPress (r2592)
    20602061 *
    20612062 * @uses get_option() To get super sticky topics
    20622063 * @uses apply_filters() Calls 'bbp_get_super_stickies' with the stickies
    function bbp_get_super_stickies() { 
    20752076 * Handles the front end opening/closing, spamming/unspamming,
    20762077 * sticking/unsticking and trashing/untrashing/deleting of topics
    20772078 *
    2078  * @since bbPress (r2727)
     2079 * @since 2.0.0 bbPress (r2727)
    20792080 *
    20802081 * @param string $action The requested action to compare this function to
    20812082 * @uses bbp_get_topic() To get the topic
    function bbp_toggle_topic_handler( $action = '' ) { 
    22572258/**
    22582259 * Remove a deleted topic from all users' favorites
    22592260 *
    2260  * @since bbPress (r2652)
     2261 * @since 2.0.0 bbPress (r2652)
    22612262 *
    22622263 * @param int $topic_id Get the topic id to remove
    22632264 * @uses bbp_get_topic_id To get the topic id
    function bbp_remove_topic_from_all_favorites( $topic_id = 0 ) { 
    22902291/**
    22912292 * Remove a deleted topic from all users' subscriptions
    22922293 *
    2293  * @since bbPress (r2652)
     2294 * @since 2.0.0 bbPress (r2652)
    22942295 *
    22952296 * @param int $topic_id Get the topic id to remove
    22962297 * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    function bbp_remove_topic_from_all_subscriptions( $topic_id = 0 ) { 
    23322333/**
    23332334 * Bump the total reply count of a topic
    23342335 *
    2335  * @since bbPress (r3825)
     2336 * @since 2.1.0 bbPress (r3825)
    23362337 *
    23372338 * @param int $topic_id   Optional. Topic id.
    23382339 * @param int $difference Optional. Default 1
    function bbp_bump_topic_reply_count( $topic_id = 0, $difference = 1 ) { 
    23652366/**
    23662367 * Bump the total hidden reply count of a topic
    23672368 *
    2368  * @since bbPress (r3825)
     2369 * @since 2.1.0 bbPress (r3825)
    23692370 *
    23702371 * @param int $topic_id   Optional. Topic id.
    23712372 * @param int $difference Optional. Default 1
    function bbp_bump_topic_reply_count_hidden( $topic_id = 0, $difference = 1 ) { 
    24002401/**
    24012402 * Update the topic's forum id
    24022403 *
    2403  * @since bbPress (r2855)
     2404 * @since 2.0.0 bbPress (r2855)
    24042405 *
    24052406 * @param int $topic_id Optional. Topic id to update
    24062407 * @param int $forum_id Optional. Forum id
    function bbp_update_topic_forum_id( $topic_id = 0, $forum_id = 0 ) { 
    24372438/**
    24382439 * Update the topic's topic id
    24392440 *
    2440  * @since bbPress (r2954)
     2441 * @since 2.0.0 bbPress (r2954)
    24412442 *
    24422443 * @param int $topic_id Optional. Topic id to update
    24432444 * @uses bbp_get_topic_id() To get the topic id
    function bbp_update_topic_topic_id( $topic_id = 0 ) { 
    24562457/**
    24572458 * Adjust the total reply count of a topic
    24582459 *
    2459  * @since bbPress (r2467)
     2460 * @since 2.0.0 bbPress (r2467)
    24602461 *
    24612462 * @param int $topic_id Optional. Topic id to update
    24622463 * @param int $reply_count Optional. Set the reply count manually.
    function bbp_update_topic_reply_count( $topic_id = 0, $reply_count = 0 ) { 
    24952496 * Adjust the total hidden reply count of a topic (hidden includes trashed,
    24962497 * spammed and pending replies)
    24972498 *
    2498  * @since bbPress (r2740)
     2499 * @since 2.0.0 bbPress (r2740)
    24992500 *
    25002501 * @param int $topic_id Optional. Topic id to update
    25012502 * @param int $reply_count Optional. Set the reply count manually
    function bbp_update_topic_reply_count_hidden( $topic_id = 0, $reply_count = 0 ) 
    25412542/**
    25422543 * Update the topic with the last active post ID
    25432544 *
    2544  * @since bbPress (r2888)
     2545 * @since 2.0.0 bbPress (r2888)
    25452546 *
    25462547 * @param int $topic_id Optional. Topic id to update
    25472548 * @param int $active_id Optional. active id
    function bbp_update_topic_last_active_time( $topic_id = 0, $new_time = '' ) { 
    26252626/**
    26262627 * Update the topic with the most recent reply ID
    26272628 *
    2628  * @since bbPress (r2625)
     2629 * @since 2.0.0 bbPress (r2625)
    26292630 *
    26302631 * @param int $topic_id Optional. Topic id to update
    26312632 * @param int $reply_id Optional. Reply id
    function bbp_update_topic_last_reply_id( $topic_id = 0, $reply_id = 0 ) { 
    26732674/**
    26742675 * Adjust the total voice count of a topic
    26752676 *
    2676  * @since bbPress (r2567)
     2677 * @since 2.0.0 bbPress (r2567)
    26772678 *
    26782679 * @param int $topic_id Optional. Topic id to update
    26792680 * @uses bbp_is_reply() To check if the passed topic id is a reply
    function bbp_update_topic_voice_count( $topic_id = 0 ) { 
    27142715/**
    27152716 * Adjust the total anonymous reply count of a topic
    27162717 *
    2717  * @since bbPress (r2567)
     2718 * @since 2.0.0 bbPress (r2567)
    27182719 *
    27192720 * @param int $topic_id Optional. Topic id to update
    27202721 * @uses bbp_is_reply() To check if the passed topic id is a reply
    function bbp_update_topic_anonymous_reply_count( $topic_id = 0 ) { 
    27542755/**
    27552756 * Update the revision log of the topic
    27562757 *
    2757  * @since bbPress (r2782)
     2758 * @since 2.0.0 bbPress (r2782)
    27582759 *
    27592760 * @param array $args Supports these args:
    27602761 *  - topic_id: Topic id
    function bbp_update_topic_revision_log( $args = array() ) { 
    27962797/**
    27972798 * Closes a topic
    27982799 *
    2799  * @since bbPress (r2740)
     2800 * @since 2.0.0 bbPress (r2740)
    28002801 *
    28012802 * @param int $topic_id Topic id
    28022803 * @uses bbp_get_topic() To get the topic
    function bbp_close_topic( $topic_id = 0 ) { 
    28662867/**
    28672868 * Opens a topic
    28682869 *
    2869  * @since bbPress (r2740)
     2870 * @since 2.0.0 bbPress (r2740)
    28702871 *
    28712872 * @param int $topic_id Topic id
    28722873 * @uses bbp_get_topic() To get the topic
    function bbp_open_topic( $topic_id = 0 ) { 
    29362937/**
    29372938 * Marks a topic as spam
    29382939 *
    2939  * @since bbPress (r2740)
     2940 * @since 2.0.0 bbPress (r2740)
    29402941 *
    29412942 * @param int $topic_id Topic id
    29422943 * @uses bbp_get_topic() To get the topic
    function bbp_spam_topic( $topic_id = 0 ) { 
    29892990 *
    29902991 * Usually you'll want to do this before the topic itself is marked as spam.
    29912992 *
    2992  * @since bbPress (r5405)
     2993 * @since 2.6.0 bbPress (r5405)
    29932994 *
    29942995 * @param int $topic_id
    29952996 */
    function bbp_spam_topic_replies( $topic_id = 0 ) { 
    30363037 *
    30373038 * Usually you'll want to do this before the topic itself is marked as spam.
    30383039 *
    3039  * @since bbPress (r5405)
     3040 * @since 2.6.0 bbPress (r5405)
    30403041 *
    30413042 * @param int $topic_id
    30423043 */
    function bbp_spam_topic_tags( $topic_id = 0 ) { 
    30733074/**
    30743075 * Unspams a topic
    30753076 *
    3076  * @since bbPress (r2740)
     3077 * @since 2.0.0 bbPress (r2740)
    30773078 *
    30783079 * @param int $topic_id Topic id
    30793080 * @uses bbp_get_topic() To get the topic
    function bbp_unspam_topic( $topic_id = 0 ) { 
    31333134 *
    31343135 * Usually you'll want to do this after the topic is unspammed.
    31353136 *
    3136  * @since bbPress (r5405)
     3137 * @since 2.6.0 bbPress (r5405)
    31373138 *
    31383139 * @param int $topic_id
    31393140 */
    function bbp_unspam_topic_replies( $topic_id = 0 ) { 
    31683169 *
    31693170 * Usually you'll want to do this before the topic itself is unmarked as spam.
    31703171 *
    3171  * @since bbPress (r5405)
     3172 * @since 2.6.0 bbPress (r5405)
    31723173 *
    31733174 * @param int $topic_id
    31743175 */
    function bbp_unspam_topic_tags( $topic_id = 0 ) { 
    31913192/**
    31923193 * Sticks a topic to a forum or front
    31933194 *
    3194  * @since bbPress (r2754)
     3195 * @since 2.0.0 bbPress (r2754)
    31953196 *
    31963197 * @param int $topic_id Optional. Topic id
    31973198 * @param int $super Should we make the topic a super sticky?
    function bbp_stick_topic( $topic_id = 0, $super = false ) { 
    32533254/**
    32543255 * Approves a pending topic
    32553256 *
    3256  * @since bbPress (r5503)
     3257 * @since 2.6.0 bbPress (r5503)
    32573258 *
    32583259 * @param int $topic_id Topic id
    32593260 * @uses bbp_get_topic() To get the topic
    function bbp_approve_topic( $topic_id = 0 ) { 
    33003301/**
    33013302 * Unapproves a topic
    33023303 *
    3303  * @since bbPress (r5503)
     3304 * @since 2.6.0 bbPress (r5503)
    33043305 *
    33053306 * @param int $topic_id Topic id
    33063307 * @uses bbp_get_topic() To get the topic
    function bbp_unapprove_topic( $topic_id = 0 ) { 
    33463347/**
    33473348 * Unsticks a topic both from front and it's forum
    33483349 *
    3349  * @since bbPress (r2754)
     3350 * @since 2.0.0 bbPress (r2754)
    33503351 *
    33513352 * @param int $topic_id Optional. Topic id
    33523353 * @uses bbp_get_topic_id() To get the topic id
    function bbp_delete_topic( $topic_id = 0 ) { 
    34253426 *
    34263427 * Usually you'll want to do this before the topic itself is deleted.
    34273428 *
    3428  * @since bbPress (r5405)
     3429 * @since 2.6.0 bbPress (r5405)
    34293430 *
    34303431 * @param int $topic_id
    34313432 */
    function bbp_trash_topic( $topic_id = 0 ) { 
    34873488 *
    34883489 * Usually you'll want to do this before the topic itself is marked as spam.
    34893490 *
    3490  * @since bbPress (r5405)
     3491 * @since 2.6.0 bbPress (r5405)
    34913492 *
    34923493 * @param int $topic_id
    34933494 */
    function bbp_untrash_topic( $topic_id = 0 ) { 
    35533554 *
    35543555 * Usually you'll want to do this after the topic is unspammed.
    35553556 *
    3556  * @since bbPress (r5405)
     3557 * @since 2.6.0 bbPress (r5405)
    35573558 *
    35583559 * @param int $topic_id
    35593560 */
    function bbp_untrashed_topic( $topic_id = 0 ) { 
    36413642/**
    36423643 * Return the topics per page setting
    36433644 *
    3644  * @since bbPress (r3540)
     3645 * @since 2.0.0 bbPress (r3540)
    36453646 *
    36463647 * @param int $default Default replies per page (15)
    36473648 * @uses get_option() To get the setting
    function bbp_get_topics_per_page( $default = 15 ) { 
    36653666/**
    36663667 * Return the topics per RSS page setting
    36673668 *
    3668  * @since bbPress (r3540)
     3669 * @since 2.0.0 bbPress (r3540)
    36693670 *
    36703671 * @param int $default Default replies per page (25)
    36713672 * @uses get_option() To get the setting
    function bbp_get_topics_per_rss_page( $default = 25 ) { 
    36913692/**
    36923693 * Get topic tags for a specific topic ID
    36933694 *
    3694  * @since bbPress (r5836)
     3695 * @since 2.6.0 bbPress (r5836)
    36953696 *
    36963697 * @param int $topic_id
    36973698 *
    function bbp_get_topic_tags( $topic_id = 0 ) { 
    37083709/**
    37093710 * Get topic tags for a specific topic ID
    37103711 *
    3711  * @since bbPress (r4165)
     3712 * @since 2.2.0 bbPress (r4165)
    37123713 *
    37133714 * @param int    $topic_id
    37143715 * @param string $sep
    function bbp_get_topic_tag_names( $topic_id = 0, $sep = ', ' ) { 
    37283729/**
    37293730 * Check if autoembeds are enabled and hook them in if so
    37303731 *
    3731  * @since bbPress (r3752)
     3732 * @since 2.1.0 bbPress (r3752)
     3733 *
    37323734 * @global WP_Embed $wp_embed
    37333735 */
    37343736function bbp_topic_content_autoembed() {
    function bbp_topic_content_autoembed() { 
    37443746/**
    37453747 * Output an RSS2 feed of topics, based on the query passed.
    37463748 *
    3747  * @since bbPress (r3171)
     3749 * @since 2.0.0 bbPress (r3171)
    37483750 *
    37493751 * @uses bbp_version()
    37503752 * @uses bbp_is_single_topic()
    function bbp_display_topics_feed_rss2( $topics_query = array() ) { 
    38483850/**
    38493851 * Redirect if unathorized user is attempting to edit a topic
    38503852 *
    3851  * @since bbPress (r3605)
     3853 * @since 2.1.0 bbPress (r3605)
    38523854 *
    38533855 * @uses bbp_is_topic_edit()
    38543856 * @uses current_user_can()
    function bbp_check_topic_edit() { 
    38723874/**
    38733875 * Redirect if unathorized user is attempting to edit a topic tag
    38743876 *
    3875  * @since bbPress (r3605)
     3877 * @since 2.1.0 bbPress (r3605)
    38763878 *
    38773879 * @uses bbp_is_topic_tag_edit()
    38783880 * @uses current_user_can()
  • src/includes/topics/template.php

    diff --git src/includes/topics/template.php src/includes/topics/template.php
    index 8973f66..ea5d512 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Output the unique id of the custom post type for topics
    1717 *
    18  * @since bbPress (r2857)
     18 * @since 2.0.0 bbPress (r2857)
    1919 *
    2020 * @uses bbp_get_topic_post_type() To get the topic post type
    2121 */
    function bbp_topic_post_type() { 
    2525        /**
    2626         * Return the unique id of the custom post type for topics
    2727         *
    28          * @since bbPress (r2857)
     28         * @since 2.0.0 bbPress (r2857)
    2929         *
    3030         * @uses apply_filters() Calls 'bbp_get_topic_post_type' with the topic
    3131         *                        post type id
    function bbp_topic_post_type() { 
    3838/**
    3939 * Return array of labels used by the topic post type
    4040 *
    41  * @since bbPress (r5129)
     41 * @since 2.5.0 bbPress (r5129)
    4242 *
    4343 * @return array
    4444 */
    function bbp_get_topic_post_type_labels() { 
    6565/**
    6666 * Return array of topic post type rewrite settings
    6767 *
    68  * @since bbPress (r5129)
     68 * @since 2.5.0 bbPress (r5129)
    6969 *
    7070 * @return array
    7171 */
    function bbp_get_topic_post_type_rewrite() { 
    7979/**
    8080 * Return array of features the topic post type supports
    8181 *
    82  * @since bbPress (r5129)
     82 * @since 2.5.0 bbPress (r5129)
    8383 *
    8484 * @return array
    8585 */
    function bbp_get_topic_post_type_supports() { 
    9696 * - Traditional: Topics are included in the reply loop (default)
    9797 * - New Style: Topics appear as "lead" posts, ahead of replies
    9898 *
    99  * @since bbPress (r2954)
     99 * @since 2.0.0 bbPress (r2954)
     100 *
    100101 * @param $show_lead Optional. Default false
    101102 * @return bool Yes if the topic appears as a lead, otherwise false
    102103 */
    function bbp_show_lead_topic( $show_lead = false ) { 
    115116/**
    116117 * The main topic loop. WordPress makes this easy for us
    117118 *
    118  * @since bbPress (r2485)
     119 * @since 2.0.0 bbPress (r2485)
    119120 *
    120121 * @param array $args All the arguments supported by {@link WP_Query}
    121122 * @uses current_user_can() To check if the current user can edit other's topics
    function bbp_has_topics( $args = array() ) { 
    427428/**
    428429 * Whether there are more topics available in the loop
    429430 *
    430  * @since bbPress (r2485)
     431 * @since 2.0.0 bbPress (r2485)
    431432 *
    432433 * @uses WP_Query bbPress::topic_query::have_posts()
    433434 * @return object Topic information
    function bbp_topics() { 
    448449/**
    449450 * Loads up the current topic in the loop
    450451 *
    451  * @since bbPress (r2485)
     452 * @since 2.0.0 bbPress (r2485)
    452453 *
    453454 * @uses WP_Query bbPress::topic_query::the_post()
    454455 * @return object Topic information
    function bbp_the_topic() { 
    460461/**
    461462 * Output the topic id
    462463 *
    463  * @since bbPress (r2485)
     464 * @since 2.0.0 bbPress (r2485)
    464465 *
    465466 * @uses bbp_get_topic_id() To get the topic id
    466467 */
    function bbp_topic_id( $topic_id = 0) { 
    470471        /**
    471472         * Return the topic id
    472473         *
    473          * @since bbPress (r2485)
     474         * @since 2.0.0 bbPress (r2485)
    474475         *
    475476         * @param $topic_id Optional. Used to check emptiness
    476477         * @uses bbPress::topic_query::post::ID To get the topic id
    function bbp_topic_id( $topic_id = 0) { 
    527528/**
    528529 * Gets a topic
    529530 *
    530  * @since bbPress (r2787)
     531 * @since 2.0.0 bbPress (r2787)
    531532 *
    532533 * @param int|object $topic Topic id or topic object
    533534 * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT
    function bbp_get_topic( $topic, $output = OBJECT, $filter = 'raw' ) { 
    574575/**
    575576 * Output the link to the topic in the topic loop
    576577 *
    577  * @since bbPress (r2485)
     578 * @since 2.0.0 bbPress (r2485)
    578579 *
    579580 * @param int $topic_id Optional. Topic id
    580581 * @param string $redirect_to Optional. Pass a redirect value for use with
    function bbp_topic_permalink( $topic_id = 0, $redirect_to = '' ) { 
    587588        /**
    588589         * Return the link to the topic
    589590         *
    590          * @since bbPress (r2485)
     591         * @since 2.0.0 bbPress (r2485)
    591592         *
    592593         * @param int $topic_id Optional. Topic id
    593594         * @param string $redirect_to Optional. Pass a redirect value for use with
    function bbp_topic_permalink( $topic_id = 0, $redirect_to = '' ) { 
    617618/**
    618619 * Output the title of the topic
    619620 *
    620  * @since bbPress (r2485)
     621 * @since 2.0.0 bbPress (r2485)
    621622 *
    622623 * @param int $topic_id Optional. Topic id
    623624 * @uses bbp_get_topic_title() To get the topic title
    function bbp_topic_title( $topic_id = 0 ) { 
    628629        /**
    629630         * Return the title of the topic
    630631         *
    631          * @since bbPress (r2485)
     632         * @since 2.0.0 bbPress (r2485)
    632633         *
    633634         * @param int $topic_id Optional. Topic id
    634635         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_title( $topic_id = 0 ) { 
    647648/**
    648649 * Output the topic archive title
    649650 *
    650  * @since bbPress (r3249)
     651 * @since 2.0.0 bbPress (r3249)
    651652 *
    652653 * @param string $title Default text to use as title
    653654 */
    function bbp_topic_archive_title( $title = '' ) { 
    657658        /**
    658659         * Return the topic archive title
    659660         *
    660          * @since bbPress (r3249)
     661         * @since 2.0.0 bbPress (r3249)
    661662         *
    662663         * @param string $title Default text to use as title
    663664         *
    function bbp_topic_archive_title( $title = '' ) { 
    693694/**
    694695 * Output the content of the topic
    695696 *
    696  * @since bbPress (r2780)
     697 * @since 2.0.0 bbPress (r2780)
    697698 *
    698699 * @param int $topic_id Optional. Topic id
    699700 * @uses bbp_get_topic_content() To get the topic content
    function bbp_topic_content( $topic_id = 0 ) { 
    704705        /**
    705706         * Return the content of the topic
    706707         *
    707          * @since bbPress (r2780)
     708         * @since 2.0.0 bbPress (r2780)
    708709         *
    709710         * @param int $topic_id Optional. Topic id
    710711         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_content( $topic_id = 0 ) { 
    731732/**
    732733 * Output the excerpt of the topic
    733734 *
    734  * @since bbPress (r2780)
     735 * @since 2.0.0 bbPress (r2780)
    735736 *
    736737 * @param int $topic_id Optional. Topic id
    737738 * @param int $length Optional. Length of the excerpt. Defaults to 100 letters
    function bbp_topic_excerpt( $topic_id = 0, $length = 100 ) { 
    743744        /**
    744745         * Return the excerpt of the topic
    745746         *
    746          * @since bbPress (r2780)
     747         * @since 2.0.0 bbPress (r2780)
    747748         *
    748749         * @param int $topic_id Optional. topic id
    749750         * @param int $length Optional. Length of the excerpt. Defaults to 100
    function bbp_topic_excerpt( $topic_id = 0, $length = 100 ) { 
    784785/**
    785786 * Output the post date and time of a topic
    786787 *
    787  * @since bbPress (r4155)
     788 * @since 2.2.0 bbPress (r4155)
    788789 *
    789790 * @param int $topic_id Optional. Topic id.
    790791 * @param bool $humanize Optional. Humanize output using time_since
    function bbp_topic_post_date( $topic_id = 0, $humanize = false, $gmt = false ) { 
    797798        /**
    798799         * Return the post date and time of a topic
    799800         *
    800          * @since bbPress (r4155)
     801         * @since 2.2.0 bbPress (r4155)
    801802         *
    802803         * @param int $topic_id Optional. Topic id.
    803804         * @param bool $humanize Optional. Humanize output using time_since
    function bbp_topic_post_date( $topic_id = 0, $humanize = false, $gmt = false ) { 
    830831/**
    831832 * Output pagination links of a topic within the topic loop
    832833 *
    833  * @since bbPress (r2966)
     834 * @since 2.0.0 bbPress (r2966)
    834835 *
    835836 * @param array $args See {@link bbp_get_topic_pagination()}
    836837 * @uses bbp_get_topic_pagination() To get the topic pagination links
    function bbp_topic_pagination( $args = array() ) { 
    841842        /**
    842843         * Returns pagination links of a topic within the topic loop
    843844         *
    844          * @since bbPress (r2966)
     845         * @since 2.0.0 bbPress (r2966)
    845846         *
    846847         * @param array $args This function supports these arguments:
    847848         *  - topic_id: Topic id
    function bbp_topic_pagination( $args = array() ) { 
    921922/**
    922923 * Append revisions to the topic content
    923924 *
    924  * @since bbPress (r2782)
     925 * @since 2.0.0 bbPress (r2782)
    925926 *
    926927 * @param string $content Optional. Content to which we need to append the revisions to
    927928 * @param int $topic_id Optional. Topic id
    function bbp_topic_content_append_revisions( $content = '', $topic_id = 0 ) { 
    946947/**
    947948 * Output the revision log of the topic
    948949 *
    949  * @since bbPress (r2782)
     950 * @since 2.0.0 bbPress (r2782)
    950951 *
    951952 * @param int $topic_id Optional. Topic id
    952953 * @uses bbp_get_topic_revision_log() To get the topic revision log
    function bbp_topic_revision_log( $topic_id = 0 ) { 
    957958        /**
    958959         * Return the formatted revision log of the topic
    959960         *
    960          * @since bbPress (r2782)
     961         * @since 2.0.0 bbPress (r2782)
    961962         *
    962963         * @param int $topic_id Optional. Topic id
    963964         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_revision_log( $topic_id = 0 ) { 
    10181019                /**
    10191020                 * Return the raw revision log of the topic
    10201021                 *
    1021                  * @since bbPress (r2782)
     1022                 * @since 2.0.0 bbPress (r2782)
    10221023                 *
    10231024                 * @param int $topic_id Optional. Topic id
    10241025                 * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_revision_log( $topic_id = 0 ) { 
    10391040/**
    10401041 * Return the revisions of the topic
    10411042 *
    1042  * @since bbPress (r2782)
     1043 * @since 2.0.0 bbPress (r2782)
    10431044 *
    10441045 * @param int $topic_id Optional. Topic id
    10451046 * @uses bbp_get_topic_id() To get the topic id
    function bbp_get_topic_revisions( $topic_id = 0 ) { 
    10581059/**
    10591060 * Return the revision count of the topic
    10601061 *
    1061  * @since bbPress (r2782)
     1062 * @since 2.0.0 bbPress (r2782)
    10621063 *
    10631064 * @param int $topic_id Optional. Topic id
    10641065 * @uses bbp_get_topic_revisions() To get the topic revisions
    function bbp_get_topic_revision_count( $topic_id = 0, $integer = false ) { 
    10761077/**
    10771078 * Is the topic a sticky or super sticky?
    10781079 *
    1079  * @since bbPress (r2754)
     1080 * @since 2.0.0 bbPress (r2754)
    10801081 *
    10811082 * @param int $topic_id Optional. Topic id
    10821083 * @param int $check_super Optional. If set to true and if the topic is not a
    function bbp_is_topic_sticky( $topic_id = 0, $check_super = true ) { 
    11051106/**
    11061107 * Is the topic a super sticky?
    11071108 *
    1108  * @since bbPress (r2754)
     1109 * @since 2.0.0 bbPress (r2754)
    11091110 *
    11101111 * @param int $topic_id Optional. Topic id
    11111112 * @uses bbp_get_topic_id() To get the topic id
    function bbp_is_topic_super_sticky( $topic_id = 0 ) { 
    11231124/**
    11241125 * Output the status of the topic
    11251126 *
    1126  * @since bbPress (r2667)
     1127 * @since 2.0.0 bbPress (r2667)
    11271128 *
    11281129 * @param int $topic_id Optional. Topic id
    11291130 * @uses bbp_get_topic_status() To get the topic status
    function bbp_topic_status( $topic_id = 0 ) { 
    11341135        /**
    11351136         * Return the status of the topic
    11361137         *
    1137          * @since bbPress (r2667)
     1138         * @since 2.0.0 bbPress (r2667)
    11381139         *
    11391140         * @param int $topic_id Optional. Topic id
    11401141         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_status( $topic_id = 0 ) { 
    11521153/**
    11531154 * Is the topic closed to new replies?
    11541155 *
    1155  * @since bbPress (r2746)
     1156 * @since 2.0.0 bbPress (r2746)
    11561157 *
    11571158 * @param int $topic_id Optional. Topic id
    11581159 * @uses bbp_get_topic_status() To get the topic status
    function bbp_is_topic_closed( $topic_id = 0 ) { 
    11711172/**
    11721173 * Is the topic open to new replies?
    11731174 *
    1174  * @since bbPress (r2727)
     1175 * @since 2.0.0 bbPress (r2727)
    11751176 *
    11761177 * @uses bbp_get_topic_status()
    11771178 *
    function bbp_is_topic_open( $topic_id = 0 ) { 
    11861187/**
    11871188 * Is the topic not spam or deleted?
    11881189 *
    1189  * @since bbPress (r3496)
     1190 * @since 2.0.0 bbPress (r3496)
    11901191 *
    11911192 * @param int $topic_id Optional. Topic id
    11921193 * @uses bbp_get_topic_id() To get the topic id
    function bbp_is_topic_published( $topic_id = 0 ) { 
    12051206/**
    12061207 * Is the topic marked as spam?
    12071208 *
    1208  * @since bbPress (r2727)
     1209 * @since 2.0.0 bbPress (r2727)
    12091210 *
    12101211 * @param int $topic_id Optional. Topic id
    12111212 * @uses bbp_get_topic_id() To get the topic id
    function bbp_is_topic_spam( $topic_id = 0 ) { 
    12241225/**
    12251226 * Is the topic trashed?
    12261227 *
    1227  * @since bbPress (r2888)
     1228 * @since 2.0.0 bbPress (r2888)
    12281229 *
    12291230 * @param int $topic_id Optional. Topic id
    12301231 * @uses bbp_get_topic_id() To get the topic id
    function bbp_is_topic_trash( $topic_id = 0 ) { 
    12431244/**
    12441245 * Is the topic pending?
    12451246 *
    1246  * @since bbPress (r5504)
     1247 * @since 2.6.0 bbPress (r5504)
    12471248 *
    12481249 * @param int $topic_id Optional. Topic id
    12491250 * @uses bbp_get_topic_id() To get the topic id
    function bbp_is_topic_pending( $topic_id = 0 ) { 
    12621263/**
    12631264 * Is the topic private?
    12641265 *
    1265  * @since bbPress (r5504)
     1266 * @since 2.6.0 bbPress (r5504)
    12661267 *
    12671268 * @param int $topic_id Optional. Topic id
    12681269 * @uses bbp_get_topic_id() To get the topic id
    function bbp_is_topic_private( $topic_id = 0 ) { 
    12811282/**
    12821283 * Is the posted by an anonymous user?
    12831284 *
    1284  * @since bbPress (r2753)
     1285 * @since 2.0.0 bbPress (r2753)
    12851286 *
    12861287 * @param int $topic_id Optional. Topic id
    12871288 * @uses bbp_get_topic_id() To get the topic id
    function bbp_is_topic_anonymous( $topic_id = 0 ) { 
    13131314 *
    13141315 * Output the author of the topic.
    13151316 *
    1316  * @since bbPress (r2590)
    1317  * @deprecated bbPress (r5119)
     1317 * @since 2.0.0 bbPress (r2590)
     1318 *
     1319 * @deprecated 2.5.0 bbPress (r5119)
    13181320 *
    13191321 * @param int $topic_id Optional. Topic id
    13201322 * @uses bbp_get_topic_author() To get the topic author
    function bbp_topic_author( $topic_id = 0 ) { 
    13271329         *
    13281330         * Return the author of the topic
    13291331         *
    1330          * @since bbPress (r2590)
    1331          * @deprecated bbPress (r5119)
     1332         * @since 2.0.0 bbPress (r2590)
     1333         *
     1334         * @deprecated 2.5.0 bbPress (r5119)
    13321335         *
    13331336         * @param int $topic_id Optional. Topic id
    13341337         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_author( $topic_id = 0 ) { 
    13561359/**
    13571360 * Output the author ID of the topic
    13581361 *
    1359  * @since bbPress (r2590)
     1362 * @since 2.0.0 bbPress (r2590)
    13601363 *
    13611364 * @param int $topic_id Optional. Topic id
    13621365 * @uses bbp_get_topic_author_id() To get the topic author id
    function bbp_topic_author_id( $topic_id = 0 ) { 
    13671370        /**
    13681371         * Return the author ID of the topic
    13691372         *
    1370          * @since bbPress (r2590)
     1373         * @since 2.0.0 bbPress (r2590)
    13711374         *
    13721375         * @param int $topic_id Optional. Topic id
    13731376         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_author_id( $topic_id = 0 ) { 
    13861389/**
    13871390 * Output the author display_name of the topic
    13881391 *
    1389  * @since bbPress (r2590)
     1392 * @since 2.0.0 bbPress (r2590)
    13901393 *
    13911394 * @param int $topic_id Optional. Topic id
    13921395 * @uses bbp_get_topic_author_display_name() To get the topic author's display
    function bbp_topic_author_display_name( $topic_id = 0 ) { 
    13981401        /**
    13991402         * Return the author display_name of the topic
    14001403         *
    1401          * @since bbPress (r2485)
     1404         * @since 2.0.0 bbPress (r2485)
    14021405         *
    14031406         * @param int $topic_id Optional. Topic id
    14041407         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_author_display_name( $topic_id = 0 ) { 
    14491452/**
    14501453 * Output the author avatar of the topic
    14511454 *
    1452  * @since bbPress (r2590)
     1455 * @since 2.0.0 bbPress (r2590)
    14531456 *
    14541457 * @param int $topic_id Optional. Topic id
    14551458 * @param int $size Optional. Avatar size. Defaults to 40
    function bbp_topic_author_avatar( $topic_id = 0, $size = 40 ) { 
    14611464        /**
    14621465         * Return the author avatar of the topic
    14631466         *
    1464          * @since bbPress (r2590)
     1467         * @since 2.0.0 bbPress (r2590)
    14651468         *
    14661469         * @param int $topic_id Optional. Topic id
    14671470         * @param int $size Optional. Avatar size. Defaults to 40
    function bbp_topic_author_avatar( $topic_id = 0, $size = 40 ) { 
    14931496/**
    14941497 * Output the author link of the topic
    14951498 *
    1496  * @since bbPress (r2717)
     1499 * @since 2.0.0 bbPress (r2717)
    14971500 *
    14981501 * @param mixed|int $args If it is an integer, it is used as topic_id. Optional.
    14991502 * @uses bbp_get_topic_author_link() To get the topic author link
    function bbp_topic_author_link( $args = array() ) { 
    15041507        /**
    15051508         * Return the author link of the topic
    15061509         *
    1507          * @since bbPress (r2717)
     1510         * @since 2.0.0 bbPress (r2717)
    15081511         *
    15091512         * @param mixed|int $args If it is an integer, it is used as topic id.
    15101513         *                         Optional.
    function bbp_topic_author_link( $args = array() ) { 
    16061609/**
    16071610 * Output the author url of the topic
    16081611 *
    1609  * @since bbPress (r2590)
     1612 * @since 2.0.0 bbPress (r2590)
    16101613 *
    16111614 * @param int $topic_id Optional. Topic id
    16121615 * @uses bbp_get_topic_author_url() To get the topic author url
    function bbp_topic_author_url( $topic_id = 0 ) { 
    16181621        /**
    16191622         * Return the author url of the topic
    16201623         *
    1621          * @since bbPress (r2590)
     1624         * @since 2.0.0 bbPress (r2590)
    16221625         *
    16231626         * @param int $topic_id Optional. Topic id
    16241627         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_author_url( $topic_id = 0 ) { 
    16531656/**
    16541657 * Output the topic author email address
    16551658 *
    1656  * @since bbPress (r3445)
     1659 * @since 2.0.0 bbPress (r3445)
    16571660 *
    16581661 * @param int $topic_id Optional. Reply id
    16591662 * @uses bbp_get_topic_author_email() To get the topic author email
    function bbp_topic_author_email( $topic_id = 0 ) { 
    16641667        /**
    16651668         * Return the topic author email address
    16661669         *
    1667          * @since bbPress (r3445)
     1670         * @since 2.0.0 bbPress (r3445)
    16681671         *
    16691672         * @param int $topic_id Optional. Reply id
    16701673         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_author_email( $topic_id = 0 ) { 
    17061709/**
    17071710 * Output the topic author role
    17081711 *
    1709  * @since bbPress (r3860)
     1712 * @since 2.1.0 bbPress (r3860)
    17101713 *
    17111714 * @param array $args Optional.
    17121715 * @uses bbp_get_topic_author_role() To get the topic author role
    function bbp_topic_author_role( $args = array() ) { 
    17171720        /**
    17181721         * Return the topic author role
    17191722         *
    1720          * @since bbPress (r3860)
     1723         * @since 2.1.0 bbPress (r3860)
    17211724         *
    17221725         * @param array $args Optional.
    17231726         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_author_role( $args = array() ) { 
    17571760/**
    17581761 * Output the title of the forum a topic belongs to
    17591762 *
    1760  * @since bbPress (r2485)
     1763 * @since 2.0.0 bbPress (r2485)
    17611764 *
    17621765 * @param int $topic_id Optional. Topic id
    17631766 * @uses bbp_get_topic_forum_title() To get the topic's forum title
    function bbp_topic_forum_title( $topic_id = 0 ) { 
    17681771        /**
    17691772         * Return the title of the forum a topic belongs to
    17701773         *
    1771          * @since bbPress (r2485)
     1774         * @since 2.0.0 bbPress (r2485)
    17721775         *
    17731776         * @param int $topic_id Optional. Topic id
    17741777         * @uses bbp_get_topic_id() To get topic id
    function bbp_topic_forum_title( $topic_id = 0 ) { 
    17871790/**
    17881791 * Output the forum id a topic belongs to
    17891792 *
    1790  * @since bbPress (r2491)
     1793 * @since 2.0.0 bbPress (r2491)
    17911794 *
    17921795 * @param int $topic_id Optional. Topic id
    17931796 * @uses bbp_get_topic_forum_id()
    function bbp_topic_forum_id( $topic_id = 0 ) { 
    17981801        /**
    17991802         * Return the forum id a topic belongs to
    18001803         *
    1801          * @since bbPress (r2491)
     1804         * @since 2.0.0 bbPress (r2491)
    18021805         *
    18031806         * @param int $topic_id Optional. Topic id
    18041807         * @uses bbp_get_topic_id() To get topic id
    function bbp_topic_forum_id( $topic_id = 0 ) { 
    18171820/**
    18181821 * Output the topics last active ID
    18191822 *
    1820  * @since bbPress (r2860)
     1823 * @since 2.0.0 bbPress (r2860)
    18211824 *
    18221825 * @param int $topic_id Optional. Forum id
    18231826 * @uses bbp_get_topic_last_active_id() To get the topic's last active id
    function bbp_topic_last_active_id( $topic_id = 0 ) { 
    18281831        /**
    18291832         * Return the topics last active ID
    18301833         *
    1831          * @since bbPress (r2860)
     1834         * @since 2.0.0 bbPress (r2860)
    18321835         *
    18331836         * @param int $topic_id Optional. Forum id
    18341837         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_last_active_id( $topic_id = 0 ) { 
    18471850/**
    18481851 * Output the topics last update date/time (aka freshness)
    18491852 *
    1850  * @since bbPress (r2625)
     1853 * @since 2.0.0 bbPress (r2625)
    18511854 *
    18521855 * @param int $topic_id Optional. Topic id
    18531856 * @uses bbp_get_topic_last_active_time() To get topic freshness
    function bbp_topic_last_active_time( $topic_id = 0 ) { 
    18581861        /**
    18591862         * Return the topics last update date/time (aka freshness)
    18601863         *
    1861          * @since bbPress (r2625)
     1864         * @since 2.0.0 bbPress (r2625)
    18621865         *
    18631866         * @param int $topic_id Optional. Topic id
    18641867         * @uses bbp_get_topic_id() To get topic id
    function bbp_topic_last_active_time( $topic_id = 0 ) { 
    18961899/**
    18971900 * Output the topic subscription link
    18981901 *
    1899  * @since bbPress (r5156)
     1902 * @since 2.5.0 bbPress (r5156)
    19001903 *
    19011904 * @uses bbp_get_topic_subscription_link()
    19021905 */
    function bbp_topic_subscription_link( $args = array() ) { 
    19091912         *
    19101913         * A custom wrapper for bbp_get_user_subscribe_link()
    19111914         *
    1912          * @since bbPress (r5156)
     1915         * @since 2.5.0 bbPress (r5156)
    19131916         *
    19141917         * @uses bbp_parse_args()
    19151918         * @uses bbp_get_user_subscribe_link()
    function bbp_topic_subscription_link( $args = array() ) { 
    19411944/**
    19421945 * Output the topic favorite link
    19431946 *
    1944  * @since bbPress (r5156)
     1947 * @since 2.5.0 bbPress (r5156)
    19451948 *
    19461949 * @uses bbp_get_topic_favorite_link()
    19471950 */
    function bbp_topic_favorite_link( $args = array() ) { 
    19541957         *
    19551958         * A custom wrapper for bbp_get_user_favorite_link()
    19561959         *
    1957          * @since bbPress (r5156)
     1960         * @since 2.5.0 bbPress (r5156)
    19581961         *
    19591962         * @uses bbp_parse_args()
    19601963         * @uses bbp_get_user_favorites_link()
    function bbp_topic_favorite_link( $args = array() ) { 
    19861989/**
    19871990 * Output the id of the topics last reply
    19881991 *
    1989  * @since bbPress (r2625)
     1992 * @since 2.0.0 bbPress (r2625)
    19901993 *
    19911994 * @param int $topic_id Optional. Topic id
    19921995 * @uses bbp_get_topic_last_reply_id() To get the topic last reply id
    function bbp_topic_last_reply_id( $topic_id = 0 ) { 
    19972000        /**
    19982001         * Return the topics last update date/time (aka freshness)
    19992002         *
    2000          * @since bbPress (r2625)
     2003         * @since 2.0.0 bbPress (r2625)
    20012004         *
    20022005         * @param int $topic_id Optional. Topic id
    20032006         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_last_reply_title( $topic_id = 0 ) { 
    20442047/**
    20452048 * Output the link to the last reply in a topic
    20462049 *
    2047  * @since bbPress (r2464)
     2050 * @since 2.0.0 bbPress (r2464)
    20482051 *
    20492052 * @param int $topic_id Optional. Topic id
    20502053 * @uses bbp_get_topic_last_reply_permalink() To get the topic's last reply link
    function bbp_topic_last_reply_permalink( $topic_id = 0 ) { 
    20552058        /**
    20562059         * Return the link to the last reply in a topic
    20572060         *
    2058          * @since bbPress (r2464)
     2061         * @since 2.0.0 bbPress (r2464)
    20592062         *
    20602063         * @param int $topic_id Optional. Topic id
    20612064         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_last_reply_permalink( $topic_id = 0 ) { 
    20762079/**
    20772080 * Output the link to the last reply in a topic
    20782081 *
    2079  * @since bbPress (r2683)
     2082 * @since 2.0.0 bbPress (r2683)
    20802083 *
    20812084 * @param int $topic_id Optional. Topic id
    20822085 * @uses bbp_get_topic_last_reply_url() To get the topic last reply url
    function bbp_topic_last_reply_url( $topic_id = 0 ) { 
    20872090        /**
    20882091         * Return the link to the last reply in a topic
    20892092         *
    2090          * @since bbPress (r2683)
     2093         * @since 2.0.0 bbPress (r2683)
    20912094         *
    20922095         * @param int $topic_id Optional. Topic id
    20932096         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_last_reply_url( $topic_id = 0 ) { 
    21152118 * Output link to the most recent activity inside a topic, complete with link
    21162119 * attributes and content.
    21172120 *
    2118  * @since bbPress (r2625)
     2121 * @since 2.0.0 bbPress (r2625)
    21192122 *
    21202123 * @param int $topic_id Optional. Topic id
    21212124 * @uses bbp_get_topic_freshness_link() To get the topic freshness link
    function bbp_topic_freshness_link( $topic_id = 0 ) { 
    21272130         * Returns link to the most recent activity inside a topic, complete
    21282131         * with link attributes and content.
    21292132         *
    2130          * @since bbPress (r2625)
     2133         * @since 2.0.0 bbPress (r2625)
    21312134         *
    21322135         * @param int $topic_id Optional. Topic id
    21332136         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_freshness_link( $topic_id = 0 ) { 
    21562159/**
    21572160 * Output the replies link of the topic
    21582161 *
    2159  * @since bbPress (r2740)
     2162 * @since 2.0.0 bbPress (r2740)
    21602163 *
    21612164 * @param int $topic_id Optional. Topic id
    21622165 * @uses bbp_get_topic_replies_link() To get the topic replies link
    function bbp_topic_replies_link( $topic_id = 0 ) { 
    21682171        /**
    21692172         * Return the replies link of the topic
    21702173         *
    2171          * @since bbPress (r2740)
     2174         * @since 2.0.0 bbPress (r2740)
    21722175         *
    21732176         * @param int $topic_id Optional. Topic id
    21742177         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_replies_link( $topic_id = 0 ) { 
    22212224/**
    22222225 * Output total reply count of a topic
    22232226 *
    2224  * @since bbPress (r2485)
     2227 * @since 2.0.0 bbPress (r2485)
    22252228 *
    22262229 * @param int $topic_id Optional. Topic id
    22272230 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_topic_reply_count( $topic_id = 0, $integer = false ) { 
    22332236        /**
    22342237         * Return total reply count of a topic
    22352238         *
    2236          * @since bbPress (r2485)
     2239         * @since 2.0.0 bbPress (r2485)
    22372240         *
    22382241         * @param int $topic_id Optional. Topic id
    22392242         * @param boolean $integer Optional. Whether or not to format the result
    function bbp_topic_reply_count( $topic_id = 0, $integer = false ) { 
    22542257/**
    22552258 * Output total post count of a topic
    22562259 *
    2257  * @since bbPress (r2954)
     2260 * @since 2.0.0 bbPress (r2954)
    22582261 *
    22592262 * @param int $topic_id Optional. Topic id
    22602263 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_topic_post_count( $topic_id = 0, $integer = false ) { 
    22662269        /**
    22672270         * Return total post count of a topic
    22682271         *
    2269          * @since bbPress (r2954)
     2272         * @since 2.0.0 bbPress (r2954)
    22702273         *
    22712274         * @param int $topic_id Optional. Topic id
    22722275         * @param boolean $integer Optional. Whether or not to format the result
    function bbp_topic_post_count( $topic_id = 0, $integer = false ) { 
    22882291 * Output total hidden reply count of a topic (hidden includes trashed and
    22892292 * spammed replies)
    22902293 *
    2291  * @since bbPress (r2740)
     2294 * @since 2.0.0 bbPress (r2740)
    22922295 *
    22932296 * @param int $topic_id Optional. Topic id
    22942297 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_topic_reply_count_hidden( $topic_id = 0, $integer = false ) { 
    23012304         * Return total hidden reply count of a topic (hidden includes trashed
    23022305         * and spammed replies)
    23032306         *
    2304          * @since bbPress (r2740)
     2307         * @since 2.0.0 bbPress (r2740)
    23052308         *
    23062309         * @param int $topic_id Optional. Topic id
    23072310         * @param boolean $integer Optional. Whether or not to format the result
    function bbp_topic_reply_count_hidden( $topic_id = 0, $integer = false ) { 
    23222325/**
    23232326 * Output total voice count of a topic
    23242327 *
    2325  * @since bbPress (r2567)
     2328 * @since 2.0.0 bbPress (r2567)
    23262329 *
    23272330 * @param int $topic_id Optional. Topic id
    23282331 * @uses bbp_get_topic_voice_count() To get the topic voice count
    function bbp_topic_voice_count( $topic_id = 0, $integer = false ) { 
    23332336        /**
    23342337         * Return total voice count of a topic
    23352338         *
    2336          * @since bbPress (r2567)
     2339         * @since 2.0.0 bbPress (r2567)
    23372340         *
    23382341         * @param int $topic_id Optional. Topic id
    23392342         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_voice_count( $topic_id = 0, $integer = false ) { 
    23532356/**
    23542357 * Output a the tags of a topic
    23552358 *
    2356  * @since bbPress (r2688)
     2359 * @since 2.0.0 bbPress (r2688)
    23572360 *
    23582361 * @param int $topic_id Optional. Topic id
    23592362 * @param array $args See {@link bbp_get_topic_tag_list()}
    function bbp_topic_tag_list( $topic_id = 0, $args = array() ) { 
    23652368        /**
    23662369         * Return the tags of a topic
    23672370         *
    2368          * @since bbPress (r2688)
     2371         * @since 2.0.0 bbPress (r2688)
    23692372         *
    23702373         * @param int $topic_id Optional. Topic id
    23712374         * @param array $args This function supports these arguments:
    function bbp_topic_tag_list( $topic_id = 0, $args = array() ) { 
    24222425/**
    24232426 * Output the row class of a topic
    24242427 *
    2425  * @since bbPress (r2667)
     2428 * @since 2.0.0 bbPress (r2667)
    24262429 *
    24272430 * @param int $topic_id Optional. Topic id
    24282431 * @param array Extra classes you can pass when calling this function
    function bbp_topic_class( $topic_id = 0, $classes = array() ) { 
    24342437        /**
    24352438         * Return the row class of a topic
    24362439         *
    2437          * @since bbPress (r2667)
     2440         * @since 2.0.0 bbPress (r2667)
    24382441         *
    24392442         * @param int $topic_id Optional. Topic id
    24402443         * @param array Extra classes you can pass when calling this function
    function bbp_topic_admin_links( $args = array() ) { 
    25502553/**
    25512554 * Output the edit link of the topic
    25522555 *
    2553  * @since bbPress (r2727)
     2556 * @since 2.0.0 bbPress (r2727)
    25542557 *
    25552558 * @param array $args See {@link bbp_get_topic_edit_link()}
    25562559 * @uses bbp_get_topic_edit_link() To get the topic edit link
    function bbp_topic_edit_link( $args = array() ) { 
    25622565        /**
    25632566         * Return the edit link of the topic
    25642567         *
    2565          * @since bbPress (r2727)
     2568         * @since 2.0.0 bbPress (r2727)
    25662569         *
    25672570         * @param array $args This function supports these args:
    25682571         *  - id: Optional. Topic id
    function bbp_topic_edit_link( $args = array() ) { 
    26162619/**
    26172620 * Output URL to the topic edit page
    26182621 *
    2619  * @since bbPress (r2753)
     2622 * @since 2.0.0 bbPress (r2753)
    26202623 *
    26212624 * @param int $topic_id Optional. Topic id
    26222625 * @uses bbp_get_topic_edit_url() To get the topic edit url
    function bbp_topic_edit_url( $topic_id = 0 ) { 
    26272630        /**
    26282631         * Return URL to the topic edit page
    26292632         *
    2630          * @since bbPress (r2753)
     2633         * @since 2.0.0 bbPress (r2753)
    26312634         *
    26322635         * @param int $topic_id Optional. Topic id
    26332636         * @uses bbp_get_topic_id() To get the topic id
    function bbp_topic_edit_url( $topic_id = 0 ) { 
    26692672/**
    26702673 * Output the trash link of the topic
    26712674 *
    2672  * @since bbPress (r2727)
     2675 * @since 2.0.0 bbPress (r2727)
    26732676 *
    26742677 * @param array $args See {@link bbp_get_topic_trash_link()}
    26752678 * @uses bbp_get_topic_trash_link() To get the topic trash link
    function bbp_topic_trash_link( $args = array() ) { 
    26812684        /**
    26822685         * Return the trash link of the topic
    26832686         *
    2684          * @since bbPress (r2727)
     2687         * @since 2.0.0 bbPress (r2727)
    26852688         *
    26862689         * @param array $args This function supports these args:
    26872690         *  - id: Optional. Topic id
    function bbp_topic_trash_link( $args = array() ) { 
    27442747/**
    27452748 * Output the close link of the topic
    27462749 *
    2747  * @since bbPress (r2727)
     2750 * @since 2.0.0 bbPress (r2727)
    27482751 *
    27492752 * @param array $args See {@link bbp_get_topic_close_link()}
    27502753 * @uses bbp_get_topic_close_link() To get the topic close link
    function bbp_topic_close_link( $args = array() ) { 
    27562759        /**
    27572760         * Return the close link of the topic
    27582761         *
    2759          * @since bbPress (r2727)
     2762         * @since 2.0.0 bbPress (r2727)
    27602763         *
    27612764         * @param array $args This function supports these args:
    27622765         *  - id: Optional. Topic id
    function bbp_topic_close_link( $args = array() ) { 
    28042807/**
    28052808 * Output the approve link of the topic
    28062809 *
    2807  * @since bbPress (r5504)
     2810 * @since 2.6.0 bbPress (r5504)
    28082811 *
    28092812 * @param array $args See {@link bbp_get_topic_approve_link()}
    28102813 * @uses bbp_get_topic_approve_link() To get the topic approve link
    function bbp_topic_approve_link( $args = array() ) { 
    28162819        /**
    28172820         * Return the approve link of the topic
    28182821         *
    2819          * @since bbPress (r5504)
     2822         * @since 2.6.0 bbPress (r5504)
    28202823         *
    28212824         * @param array $args This function supports these args:
    28222825         *  - id: Optional. Topic id
    function bbp_topic_approve_link( $args = array() ) { 
    28652868/**
    28662869 * Output the stick link of the topic
    28672870 *
    2868  * @since bbPress (r2754)
     2871 * @since 2.0.0 bbPress (r2754)
    28692872 *
    28702873 * @param array $args See {@link bbp_get_topic_stick_link()}
    28712874 * @uses bbp_get_topic_stick_link() To get the topic stick link
    function bbp_topic_stick_link( $args = array() ) { 
    28772880        /**
    28782881         * Return the stick link of the topic
    28792882         *
    2880          * @since bbPress (r2754)
     2883         * @since 2.0.0 bbPress (r2754)
    28812884         *
    28822885         * @param array $args This function supports these args:
    28832886         *  - id: Optional. Topic id
    function bbp_topic_stick_link( $args = array() ) { 
    29422945/**
    29432946 * Output the merge link of the topic
    29442947 *
    2945  * @since bbPress (r2756)
     2948 * @since 2.0.0 bbPress (r2756)
    29462949 *
    29472950 * @param array $args
    29482951 * @uses bbp_get_topic_merge_link() To get the topic merge link
    function bbp_topic_merge_link( $args = array() ) { 
    29542957        /**
    29552958         * Return the merge link of the topic
    29562959         *
    2957          * @since bbPress (r2756)
     2960         * @since 2.0.0 bbPress (r2756)
    29582961         *
    29592962         * @param array $args This function supports these args:
    29602963         *  - id: Optional. Topic id
    function bbp_topic_merge_link( $args = array() ) { 
    29952998/**
    29962999 * Output the spam link of the topic
    29973000 *
    2998  * @since bbPress (r2727)
     3001 * @since 2.0.0 bbPress (r2727)
    29993002 *
    30003003 * @param array $args See {@link bbp_get_topic_spam_link()}
    30013004 * @uses bbp_get_topic_spam_link() Topic spam link
    function bbp_topic_spam_link( $args = array() ) { 
    30073010        /**
    30083011         * Return the spam link of the topic
    30093012         *
    3010          * @since bbPress (r2727)
     3013         * @since 2.0.0 bbPress (r2727)
    30113014         *
    30123015         * @param array $args This function supports these args:
    30133016         *  - id: Optional. Topic id
    function bbp_topic_spam_link( $args = array() ) { 
    30553058/**
    30563059 * Output the link to go directly to the reply form
    30573060 *
    3058  * @since bbPress (r4966)
     3061 * @since 2.4.0 bbPress (r4966)
    30593062 *
    30603063 * @param array $args
    30613064 * @uses bbp_get_reply_to_link() To get the reply to link
    function bbp_topic_reply_link( $args = array() ) { 
    30673070        /**
    30683071         * Return the link to go directly to the reply form
    30693072         *
    3070          * @since bbPress (r4966)
     3073         * @since 2.4.0 bbPress (r4966)
    30713074         *
    30723075         * @param array $args Arguments
    30733076         * @uses bbp_current_user_can_access_create_reply_form() To check permissions
    function bbp_topic_reply_link( $args = array() ) { 
    31093112/**
    31103113 * Output the pagination count
    31113114 *
    3112  * @since bbPress (r2519)
     3115 * @since 2.0.0 bbPress (r2519)
    31133116 *
    31143117 * @uses bbp_get_forum_pagination_count() To get the forum pagination count
    31153118 */
    function bbp_forum_pagination_count() { 
    31193122        /**
    31203123         * Return the pagination count
    31213124         *
    3122          * @since bbPress (r2519)
     3125         * @since 2.0.0 bbPress (r2519)
    31233126         *
    31243127         * @uses bbp_number_format() To format the number value
    31253128         * @uses apply_filters() Calls 'bbp_get_forum_pagination_count' with the
    function bbp_forum_pagination_count() { 
    31563159/**
    31573160 * Output pagination links
    31583161 *
    3159  * @since bbPress (r2519)
     3162 * @since 2.0.0 bbPress (r2519)
    31603163 *
    31613164 * @uses bbp_get_forum_pagination_links() To get the pagination links
    31623165 */
    function bbp_forum_pagination_links() { 
    31663169        /**
    31673170         * Return pagination links
    31683171         *
    3169          * @since bbPress (r2519)
     3172         * @since 2.0.0 bbPress (r2519)
    31703173         *
    31713174         * @uses bbPress::topic_query::pagination_links To get the links
    31723175         * @return string Pagination links
    function bbp_forum_pagination_links() { 
    31843187/**
    31853188 * Displays topic notices
    31863189 *
    3187  * @since bbPress (r2744)
     3190 * @since 2.0.0 bbPress (r2744)
    31883191 *
    31893192 * @uses bbp_is_single_topic() To check if it's a topic page
    31903193 * @uses bbp_get_topic_status() To get the topic status
    function bbp_topic_notices() { 
    32343237/**
    32353238 * Displays topic type select box (normal/sticky/super sticky)
    32363239 *
    3237  * @since bbPress (r5059)
    3238  * @deprecated since bbPress (r5059)
     3240 * @since 2.0.0 bbPress (r2784)
     3241 *
     3242 * @deprecated 2.4.0 bbPress (r5059)
    32393243 *
    32403244 * @param $args This function supports these arguments:
    32413245 *  - select_id: Select id. Defaults to bbp_stick_topic
    function bbp_topic_type_select( $args = array() ) { 
    32503254/**
    32513255 * Displays topic type select box (normal/sticky/super sticky)
    32523256 *
    3253  * @since bbPress (r5059)
     3257 * @since 2.4.0 bbPress (r5059)
    32543258 *
    32553259 * @param $args This function supports these arguments:
    32563260 *  - select_id: Select id. Defaults to bbp_stick_topic
    function bbp_form_topic_type_dropdown( $args = array() ) { 
    32643268        /**
    32653269         * Returns topic type select box (normal/sticky/super sticky)
    32663270         *
    3267          * @since bbPress (r5059)
     3271         * @since 2.4.0 bbPress (r5059)
    32683272         *
    32693273         * @param $args This function supports these arguments:
    32703274         *  - select_id: Select id. Defaults to bbp_stick_topic
    function bbp_form_topic_type_dropdown( $args = array() ) { 
    33413345/**
    33423346 * Output value topic status dropdown
    33433347 *
    3344  * @since bbPress (r5059)
     3348 * @since 2.4.0 bbPress (r5059)
    33453349 *
    33463350 * @param $args This function supports these arguments:
    33473351 *  - select_id: Select id. Defaults to bbp_topic_status
    function bbp_form_topic_status_dropdown( $args = array() ) { 
    33593363         * capability. Because of this, no additional capablitiy checks are performed
    33603364         * within this function to check available topic statuses.
    33613365         *
    3362          * @since bbPress (r5059)
     3366         * @since 2.4.0 bbPress (r5059)
    33633367         *
    33643368         * @param $args This function supports these arguments:
    33653369         *  - select_id: Select id. Defaults to bbp_topic_status
    function bbp_form_topic_status_dropdown( $args = array() ) { 
    34283432 * Output a fancy description of the current topic, including total topics,
    34293433 * total replies, and last activity.
    34303434 *
    3431  * @since bbPress (r2860)
     3435 * @since 2.0.0 bbPress (r2860)
    34323436 *
    34333437 * @param array $args See {@link bbp_get_single_topic_description()}
    34343438 * @uses bbp_get_single_topic_description() Return the eventual output
    function bbp_single_topic_description( $args = array() ) { 
    34403444         * Return a fancy description of the current topic, including total topics,
    34413445         * total replies, and last activity.
    34423446         *
    3443          * @since bbPress (r2860)
     3447         * @since 2.0.0 bbPress (r2860)
    34443448         *
    34453449         * @param array $args This function supports these arguments:
    34463450         *  - topic_id: Topic id
    function bbp_single_topic_description( $args = array() ) { 
    35123516/**
    35133517 * Output the unique id of the topic tag taxonomy
    35143518 *
    3515  * @since bbPress (r3348)
     3519 * @since 2.0.0 bbPress (r3348)
    35163520 *
    35173521 * @uses bbp_get_topic_post_type() To get the topic post type
    35183522 */
    function bbp_topic_tag_tax_id() { 
    35223526        /**
    35233527         * Return the unique id of the topic tag taxonomy
    35243528         *
    3525          * @since bbPress (r3348)
     3529         * @since 2.0.0 bbPress (r3348)
    35263530         *
    35273531         * @uses apply_filters() Calls 'bbp_get_topic_tag_tax_id' with the topic tax id
    35283532         * @return string The unique topic tag taxonomy
    function bbp_topic_tag_tax_id() { 
    35343538/**
    35353539 * Return array of labels used by the topic-tag taxonomy
    35363540 *
    3537  * @since bbPress (r5129)
     3541 * @since 2.5.0 bbPress (r5129)
    35383542 *
    35393543 * @return array
    35403544 */
    function bbp_get_topic_tag_tax_labels() { 
    35573561/**
    35583562 * Return an array of topic-tag taxonomy rewrite settings
    35593563 *
    3560  * @since bbPress (r5129)
     3564 * @since 2.5.0 bbPress (r5129)
    35613565 *
    35623566 * @return array
    35633567 */
    function bbp_get_topic_tag_tax_rewrite() { 
    35713575/**
    35723576 * Output the id of the current tag
    35733577 *
    3574  * @since bbPress (r3109)
     3578 * @since 2.0.0 bbPress (r3109)
    35753579 *
    35763580 * @uses bbp_get_topic_tag_id()
    35773581 */
    function bbp_topic_tag_id( $tag = '' ) { 
    35813585        /**
    35823586         * Return the id of the current tag
    35833587         *
    3584          * @since bbPress (r3109)
     3588         * @since 2.0.0 bbPress (r3109)
    35853589         *
    35863590         * @uses get_term_by()
    35873591         * @uses get_queried_object()
    function bbp_topic_tag_id( $tag = '' ) { 
    36153619/**
    36163620 * Output the name of the current tag
    36173621 *
    3618  * @since bbPress (r3109)
     3622 * @since 2.0.0 bbPress (r3109)
    36193623 *
    36203624 * @uses bbp_get_topic_tag_name()
    36213625 */
    function bbp_topic_tag_name( $tag = '' ) { 
    36253629        /**
    36263630         * Return the name of the current tag
    36273631         *
    3628          * @since bbPress (r3109)
     3632         * @since 2.0.0 bbPress (r3109)
    36293633         *
    36303634         * @uses get_term_by()
    36313635         * @uses get_queried_object()
    function bbp_topic_tag_name( $tag = '' ) { 
    36593663/**
    36603664 * Output the slug of the current tag
    36613665 *
    3662  * @since bbPress (r3109)
     3666 * @since 2.0.0 bbPress (r3109)
    36633667 *
    36643668 * @uses bbp_get_topic_tag_slug()
    36653669 */
    function bbp_topic_tag_slug( $tag = '' ) { 
    36693673        /**
    36703674         * Return the slug of the current tag
    36713675         *
    3672          * @since bbPress (r3109)
     3676         * @since 2.0.0 bbPress (r3109)
    36733677         *
    36743678         * @uses get_term_by()
    36753679         * @uses get_queried_object()
    function bbp_topic_tag_slug( $tag = '' ) { 
    37033707/**
    37043708 * Output the link of the current tag
    37053709 *
    3706  * @since bbPress (r3348)
     3710 * @since 2.0.0 bbPress (r3348)
    37073711 *
    37083712 * @uses bbp_get_topic_tag_link()
    37093713 */
    function bbp_topic_tag_link( $tag = '' ) { 
    37133717        /**
    37143718         * Return the link of the current tag
    37153719         *
    3716          * @since bbPress (r3348)
     3720         * @since 2.0.0 bbPress (r3348)
    37173721         *
    37183722         * @uses get_term_by()
    37193723         * @uses get_queried_object()
    function bbp_topic_tag_link( $tag = '' ) { 
    37473751/**
    37483752 * Output the link of the current tag
    37493753 *
    3750  * @since bbPress (r3348)
     3754 * @since 2.0.0 bbPress (r3348)
    37513755 *
    37523756 * @uses bbp_get_topic_tag_edit_link()
    37533757 */
    function bbp_topic_tag_edit_link( $tag = '' ) { 
    37573761        /**
    37583762         * Return the link of the current tag
    37593763         *
    3760          * @since bbPress (r3348)
     3764         * @since 2.0.0 bbPress (r3348)
    37613765         *
    37623766         * @uses get_term_by()
    37633767         * @uses get_queried_object()
    function bbp_topic_tag_edit_link( $tag = '' ) { 
    37993803/**
    38003804 * Output the description of the current tag
    38013805 *
    3802  * @since bbPress (r3109)
     3806 * @since 2.0.0 bbPress (r3109)
    38033807 *
    38043808 * @uses bbp_get_topic_tag_description()
    38053809 */
    function bbp_topic_tag_description( $args = array() ) { 
    38093813        /**
    38103814         * Return the description of the current tag
    38113815         *
    3812          * @since bbPress (r3109)
     3816         * @since 2.0.0 bbPress (r3109)
    38133817         *
    38143818         * @uses get_term_by()
    38153819         * @uses get_queried_object()
    function bbp_topic_tag_description( $args = array() ) { 
    38543858/**
    38553859 * Output the value of topic title field
    38563860 *
    3857  * @since bbPress (r2976)
     3861 * @since 2.0.0 bbPress (r2976)
    38583862 *
    38593863 * @uses bbp_get_form_topic_title() To get the value of topic title field
    38603864 */
    function bbp_form_topic_title() { 
    38643868        /**
    38653869         * Return the value of topic title field
    38663870         *
    3867          * @since bbPress (r2976)
     3871         * @since 2.0.0 bbPress (r2976)
    38683872         *
    38693873         * @uses bbp_is_topic_edit() To check if it's topic edit page
    38703874         * @uses apply_filters() Calls 'bbp_get_form_topic_title' with the title
    function bbp_form_topic_title() { 
    38913895/**
    38923896 * Output the value of topic content field
    38933897 *
    3894  * @since bbPress (r2976)
     3898 * @since 2.0.0 bbPress (r2976)
    38953899 *
    38963900 * @uses bbp_get_form_topic_content() To get value of topic content field
    38973901 */
    function bbp_form_topic_content() { 
    39013905        /**
    39023906         * Return the value of topic content field
    39033907         *
    3904          * @since bbPress (r2976)
     3908         * @since 2.0.0 bbPress (r2976)
    39053909         *
    39063910         * @uses bbp_is_topic_edit() To check if it's the topic edit page
    39073911         * @uses apply_filters() Calls 'bbp_get_form_topic_content' with the content
    function bbp_form_topic_content() { 
    39283932/**
    39293933 * Allow topic rows to have adminstrative actions
    39303934 *
    3931  * @since bbPress (r3653)
     3935 * @since 2.1.0 bbPress (r3653)
     3936 *
    39323937 * @uses do_action()
    39333938 * @todo Links and filter
    39343939 */
    function bbp_topic_row_actions() { 
    39393944/**
    39403945 * Output value of topic tags field
    39413946 *
    3942  * @since bbPress (r2976)
     3947 * @since 2.0.0 bbPress (r2976)
     3948 *
    39433949 * @uses bbp_get_form_topic_tags() To get the value of topic tags field
    39443950 */
    39453951function bbp_form_topic_tags() {
    function bbp_form_topic_tags() { 
    39483954        /**
    39493955         * Return value of topic tags field
    39503956         *
    3951          * @since bbPress (r2976)
     3957         * @since 2.0.0 bbPress (r2976)
    39523958         *
    39533959         * @uses bbp_is_topic_edit() To check if it's the topic edit page
    39543960         * @uses apply_filters() Calls 'bbp_get_form_topic_tags' with the tags
    function bbp_form_topic_tags() { 
    40034009/**
    40044010 * Output value of topic forum
    40054011 *
    4006  * @since bbPress (r2976)
     4012 * @since 2.0.0 bbPress (r2976)
    40074013 *
    40084014 * @uses bbp_get_form_topic_forum() To get the topic's forum id
    40094015 */
    function bbp_form_topic_forum() { 
    40134019        /**
    40144020         * Return value of topic forum
    40154021         *
    4016          * @since bbPress (r2976)
     4022         * @since 2.0.0 bbPress (r2976)
    40174023         *
    40184024         * @uses bbp_is_topic_edit() To check if it's the topic edit page
    40194025         * @uses bbp_get_topic_forum_id() To get the topic forum id
    function bbp_form_topic_forum() { 
    40414047/**
    40424048 * Output checked value of topic subscription
    40434049 *
    4044  * @since bbPress (r2976)
     4050 * @since 2.0.0 bbPress (r2976)
    40454051 *
    40464052 * @uses bbp_get_form_topic_subscribed() To get the subscribed checkbox value
    40474053 */
    function bbp_form_topic_subscribed() { 
    40514057        /**
    40524058         * Return checked value of topic subscription
    40534059         *
    4054          * @since bbPress (r2976)
     4060         * @since 2.0.0 bbPress (r2976)
    40554061         *
    40564062         * @uses bbp_is_topic_edit() To check if it's the topic edit page
    40574063         * @uses bbp_is_user_subscribed_to_topic() To check if the user is
    function bbp_form_topic_subscribed() { 
    40994105/**
    41004106 * Output checked value of topic log edit field
    41014107 *
    4102  * @since bbPress (r2976)
     4108 * @since 2.0.0 bbPress (r2976)
    41034109 *
    41044110 * @uses bbp_get_form_topic_log_edit() To get the topic log edit value
    41054111 */
    function bbp_form_topic_log_edit() { 
    41094115        /**
    41104116         * Return checked value of topic log edit field
    41114117         *
    4112          * @since bbPress (r2976)
     4118         * @since 2.0.0 bbPress (r2976)
    41134119         *
    41144120         * @uses apply_filters() Calls 'bbp_get_form_topic_log_edit' with the
    41154121         *                        log edit value
    function bbp_form_topic_log_edit() { 
    41354141/**
    41364142 * Output the value of the topic edit reason
    41374143 *
    4138  * @since bbPress (r2976)
     4144 * @since 2.0.0 bbPress (r2976)
    41394145 *
    41404146 * @uses bbp_get_form_topic_edit_reason() To get the topic edit reason value
    41414147 */
    function bbp_form_topic_edit_reason() { 
    41454151        /**
    41464152         * Return the value of the topic edit reason
    41474153         *
    4148          * @since bbPress (r2976)
     4154         * @since 2.0.0 bbPress (r2976)
    41494155         *
    41504156         * @uses apply_filters() Calls 'bbp_get_form_topic_edit_reason' with the
    41514157         *                        topic edit reason value
    function bbp_form_topic_edit_reason() { 
    41734179 *
    41744180 * @see bbp_topic_form_fields()
    41754181 *
    4176  * @since bbPress (r5558)
     4182 * @since 2.6.0 bbPress (r5558)
     4183 *
    41774184 * @return boolean True if is a post request with valid nonce
    41784185 */
    41794186function bbp_is_topic_form_post_request() {
  • src/includes/users/capabilities.php

    diff --git src/includes/users/capabilities.php src/includes/users/capabilities.php
    index 8e1cca4..d3157ac 100644
     
    1212/**
    1313 * Maps primary capabilities
    1414 *
    15  * @since bbPress (r4242)
     15 * @since 2.2.0 bbPress (r4242)
    1616 *
    1717 * @param array  $caps Capabilities for meta capability.
    1818 * @param string $cap Capability name.
    function bbp_map_primary_meta_caps( $caps = array(), $cap = '', $user_id = 0, $a 
    123123/**
    124124 * Return a user's main role
    125125 *
    126  * @since bbPress (r3860)
     126 * @since 2.1.0 bbPress (r3860)
    127127 *
    128128 * @param int $user_id
    129129 * @uses bbp_get_user_id() To get the user id
    function bbp_set_user_role( $user_id = 0, $new_role = '' ) { 
    176176/**
    177177 * Return a user's forums role
    178178 *
    179  * @since bbPress (r3860)
     179 * @since 2.1.0 bbPress (r3860)
    180180 *
    181181 * @param int $user_id
    182182 * @uses bbp_get_user_id() To get the user id
    function bbp_get_user_role( $user_id = 0 ) { 
    214214/**
    215215 * Return a user's blog role
    216216 *
    217  * @since bbPress (r4446)
     217 * @since 2.3.0 bbPress (r4446)
    218218 *
    219219 * @param int $user_id
    220220 * @uses bbp_get_user_id() To get the user id
    function bbp_get_user_blog_role( $user_id = 0 ) { 
    256256 * Helper function hooked to 'bbp_profile_update' action to save or
    257257 * update user roles and capabilities.
    258258 *
    259  * @since bbPress (r4235)
     259 * @since 2.2.0 bbPress (r4235)
    260260 *
    261261 * @param int $user_id
    262262 * @uses bbp_reset_user_caps() to reset caps
    function bbp_profile_update_role( $user_id = 0 ) { 
    303303 * This function will bail if the forum is not global in a multisite
    304304 * installation of WordPress, or if the user is marked as spam or deleted.
    305305 *
    306  * @since bbPress (r3380)
     306 * @since 2.0.0 bbPress (r3380)
    307307 *
    308308 * @uses is_user_logged_in() To bail if user is not logged in
    309309 * @uses bbp_get_user_role() To bail if user already has a role
    function bbp_set_current_user_default_role() { 
    394394 * appropriate bbPress roles to WordPress users that wouldn't already have a
    395395 * role in the forums. Also guarantees WordPress admins get the Keymaster role.
    396396 *
    397  * @since bbPress (r4334)
     397 * @since 2.2.0 bbPress (r4334)
    398398 *
    399399 * @return array Filtered array of WordPress roles to bbPress roles
    400400 */
    function bbp_get_user_role_map() { 
    418418/**
    419419 * Checks if the user has been marked as a spammer.
    420420 *
    421  * @since bbPress (r3355)
     421 * @since 2.0.0 bbPress (r3355)
    422422 *
    423423 * @param int $user_id int The ID for the user.
    424424 * @return bool True if spammer, False if not.
    function bbp_is_user_spammer( $user_id = 0 ) { 
    456456/**
    457457 * Mark a users topics and replies as spam when the user is marked as spam
    458458 *
    459  * @since bbPress (r3405)
     459 * @since 2.0.0 bbPress (r3405)
    460460 *
    461461 * @param int $user_id Optional. User ID to spam. Defaults to displayed user.
    462462
    function bbp_make_spam_user( $user_id = 0 ) { 
    548548/**
    549549 * Mark a users topics and replies as spam when the user is marked as spam
    550550 *
    551  * @since bbPress (r3405)
     551 * @since 2.0.0 bbPress (r3405)
    552552 *
    553553 * @param int $user_id Optional. User ID to unspam. Defaults to displayed user.
    554554 *
    function bbp_make_ham_user( $user_id = 0 ) { 
    639639/**
    640640 * Checks if the user has been marked as deleted.
    641641 *
    642  * @since bbPress (r3355)
     642 * @since 2.0.0 bbPress (r3355)
    643643 *
    644644 * @param int $user_id int The ID for the user.
    645645 * @return bool True if deleted, False if not.
    function bbp_is_user_deleted( $user_id = 0 ) { 
    677677/**
    678678 * Checks if user is active
    679679 *
    680  * @since bbPress (r3502)
     680 * @since 2.0.0 bbPress (r3502)
    681681 *
    682682 * @uses is_user_logged_in() To check if user is logged in
    683683 * @uses bbp_get_displayed_user_id() To get current user ID
    function bbp_is_user_active( $user_id = 0 ) { 
    716716/**
    717717 * Checks if user is not active.
    718718 *
    719  * @since bbPress (r3502)
     719 * @since 2.0.0 bbPress (r3502)
    720720 *
    721721 * @uses is_user_logged_in() To check if user is logged in
    722722 * @uses bbp_get_displayed_user_id() To get current user ID
    function bbp_is_user_inactive( $user_id = 0 ) { 
    744744/**
    745745 * Checks if user is a keymaster
    746746 *
    747  * @since bbPress (r4783)
     747 * @since 2.3.0 bbPress (r4783)
    748748 *
    749749 * @param int $user_id
    750750 * @return bool True if keymaster, false if not
    function bbp_is_user_keymaster( $user_id = 0 ) { 
    761761/**
    762762 * Does a user have a profile for the current site
    763763 *
    764  * @since bbPress (r4362)
     764 * @since 2.2.0 bbPress (r4362)
    765765 *
    766766 * @param int $user_id User ID to check
    767767 * @param int $blog_id Blog ID to check
  • src/includes/users/functions.php

    diff --git src/includes/users/functions.php src/includes/users/functions.php
    index 569970b..310f825 100644
    defined( 'ABSPATH' ) || exit; 
    1313/**
    1414 * Redirect back to $url when attempting to use the login page
    1515 *
    16  * @since bbPress (r2815)
     16 * @since 2.0.0 bbPress (r2815)
    1717 *
    1818 * @param string $url The url
    1919 * @param string $raw_url Raw url
    function bbp_redirect_login( $url = '', $raw_url = '', $user = '' ) { 
    4545/**
    4646 * Is an anonymous topic/reply being made?
    4747 *
    48  * @since bbPress (r2688)
     48 * @since 2.0.0 bbPress (r2688)
    4949 *
    5050 * @uses is_user_logged_in() Is the user logged in?
    5151 * @uses bbp_allow_anonymous() Is anonymous posting allowed?
    function bbp_is_anonymous() { 
    6666/**
    6767 * Echoes the values for current poster (uses WP comment cookies)
    6868 *
    69  * @since bbPress (r2734)
     69 * @since 2.0.0 bbPress (r2734)
    7070 *
    7171 * @param string $key Which value to echo?
    7272 * @uses bbp_get_current_anonymous_user_data() To get the current anonymous user
    function bbp_current_anonymous_user_data( $key = '' ) { 
    7979        /**
    8080         * Get the cookies for current poster (uses WP comment cookies).
    8181         *
    82          * @since bbPress (r2734)
     82         * @since 2.0.0 bbPress (r2734)
    8383         *
    8484         * @param string $key Optional. Which value to get? If not given, then
    8585         *                     an array is returned.
    function bbp_current_anonymous_user_data( $key = '' ) { 
    113113/**
    114114 * Set the cookies for current poster (uses WP comment cookies)
    115115 *
    116  * @since bbPress (r2734)
     116 * @since 2.0.0 bbPress (r2734)
    117117 *
    118118 * @param array $anonymous_data With keys 'bbp_anonymous_name',
    119119 *                               'bbp_anonymous_email', 'bbp_anonymous_website'.
    function bbp_set_current_anonymous_user_data( $anonymous_data = array() ) { 
    138138/**
    139139 * Get the poster IP address
    140140 *
    141  * @since bbPress (r3120)
     141 * @since 2.0.0 bbPress (r3120)
    142142 *
    143143 * @return string
    144144 */
    function bbp_current_author_ip() { 
    158158/**
    159159 * Get the poster user agent
    160160 *
    161  * @since bbPress (r3446)
     161 * @since 2.0.0 bbPress (r3446)
    162162 *
    163163 * @return string
    164164 */
    function bbp_current_author_ua() { 
    173173/**
    174174 * Get the users who have made the topic favorite
    175175 *
    176  * @since bbPress (r2658)
     176 * @since 2.0.0 bbPress (r2658)
    177177 *
    178178 * @param int $topic_id Optional. Topic id
    179179 * @uses wpdb::get_col() To execute our query and get the column back
    function bbp_get_topic_favoriters( $topic_id = 0 ) { 
    201201/**
    202202 * Get a user's favorite topics
    203203 *
    204  * @since bbPress (r2652)
     204 * @since 2.0.0 bbPress (r2652)
    205205 *
    206206 * @param int $user_id Optional. User id
    207207 * @uses bbp_get_user_favorites_topic_ids() To get the user's favorites
    function bbp_get_user_favorites( $user_id = 0 ) { 
    230230/**
    231231 * Get a user's favorite topics' ids
    232232 *
    233  * @since bbPress (r2652)
     233 * @since 2.0.0 bbPress (r2652)
    234234 *
    235235 * @param int $user_id Optional. User id
    236236 * @uses bbp_get_user_id() To get the user id
    function bbp_get_user_favorites_topic_ids( $user_id = 0 ) { 
    254254/**
    255255 * Check if a topic is in user's favorites or not
    256256 *
    257  * @since bbPress (r2652)
     257 * @since 2.0.0 bbPress (r2652)
    258258 *
    259259 * @param int $user_id Optional. User id
    260260 * @param int $topic_id Optional. Topic id
    function bbp_is_user_favorite( $user_id = 0, $topic_id = 0 ) { 
    304304/**
    305305 * Add a topic to user's favorites
    306306 *
    307  * @since bbPress (r2652)
     307 * @since 2.0.0 bbPress (r2652)
    308308 *
    309309 * @param int $user_id Optional. User id
    310310 * @param int $topic_id Optional. Topic id
    function bbp_add_user_favorite( $user_id = 0, $topic_id = 0 ) { 
    341341/**
    342342 * Remove a topic from user's favorites
    343343 *
    344  * @since bbPress (r2652)
     344 * @since 2.0.0 bbPress (r2652)
    345345 *
    346346 * @param int $user_id Optional. User id
    347347 * @param int $topic_id Optional. Topic id
    function bbp_favorites_handler( $action = '' ) { 
    490490/**
    491491 * Get the users who have subscribed to the forum
    492492 *
    493  * @since bbPress (r5156)
     493 * @since 2.5.0 bbPress (r5156)
    494494 *
    495495 * @param int $forum_id Optional. forum id
    496496 * @uses wpdb::get_col() To execute our query and get the column back
    function bbp_get_forum_subscribers( $forum_id = 0 ) { 
    517517/**
    518518 * Get the users who have subscribed to the topic
    519519 *
    520  * @since bbPress (r2668)
     520 * @since 2.0.0 bbPress (r2668)
    521521 *
    522522 * @param int $topic_id Optional. Topic id
    523523 * @uses wpdb::get_col() To execute our query and get the column back
    function bbp_get_topic_subscribers( $topic_id = 0 ) { 
    544544/**
    545545 * Get a user's subscribed topics
    546546 *
    547  * @since bbPress (r2668)
     547 * @since 2.0.0 bbPress (r2668)
    548548 *
    549  * @deprecated since bbPress (r5156)
     549 * @deprecated 2.5.0 bbPress (r5156)
    550550 *
    551551 * @param int $user_id Optional. User id
    552552 * @uses bbp_get_user_topic_subscriptions() To get the user's subscriptions
    function bbp_get_user_subscriptions( $user_id = 0 ) { 
    561561/**
    562562 * Get a user's subscribed topics
    563563 *
    564  * @since bbPress (r2668)
     564 * @since 2.0.0 bbPress (r2668)
    565565 *
    566566 * @param int $user_id Optional. User id
    567567 * @uses bbp_get_user_subscribed_topic_ids() To get the user's subscriptions
    function bbp_get_user_topic_subscriptions( $user_id = 0 ) { 
    592592/**
    593593 * Get a user's subscribed forums
    594594 *
    595  * @since bbPress (r5156)
     595 * @since 2.5.0 bbPress (r5156)
    596596 *
    597597 * @param int $user_id Optional. User id
    598598 * @uses bbp_get_user_subscribed_forum_ids() To get the user's subscriptions
    function bbp_get_user_forum_subscriptions( $user_id = 0 ) { 
    623623/**
    624624 * Get a user's subscribed forum ids
    625625 *
    626  * @since bbPress (r5156)
     626 * @since 2.5.0 bbPress (r5156)
    627627 *
    628628 * @param int $user_id Optional. User id
    629629 * @uses bbp_get_user_id() To get the user id
    function bbp_get_user_subscribed_forum_ids( $user_id = 0 ) { 
    647647/**
    648648 * Get a user's subscribed topics' ids
    649649 *
    650  * @since bbPress (r2668)
     650 * @since 2.0.0 bbPress (r2668)
    651651 *
    652652 * @param int $user_id Optional. User id
    653653 * @uses bbp_get_user_id() To get the user id
    function bbp_get_user_subscribed_topic_ids( $user_id = 0 ) { 
    671671/**
    672672 * Check if a topic or forum is in user's subscription list or not
    673673 *
    674  * @since bbPress (r5156)
     674 * @since 2.5.0 bbPress (r5156)
    675675 *
    676676 * @param int $user_id Optional. User id
    677677 * @param int $object_id Optional. Topic id
    function bbp_is_user_subscribed( $user_id = 0, $object_id = 0 ) { 
    725725/**
    726726 * Check if a forum is in user's subscription list or not
    727727 *
    728  * @since bbPress (r5156)
     728 * @since 2.5.0 bbPress (r5156)
    729729 *
    730730 * @param int $user_id Optional. User id
    731731 * @param int $forum_id Optional. Topic id
    function bbp_is_user_subscribed_to_forum( $user_id = 0, $forum_id = 0, $subscrib 
    782782/**
    783783 * Check if a topic is in user's subscription list or not
    784784 *
    785  * @since bbPress (r5156)
     785 * @since 2.5.0 bbPress (r5156)
    786786 *
    787787 * @param int $user_id Optional. User id
    788788 * @param int $topic_id Optional. Topic id
    function bbp_is_user_subscribed_to_topic( $user_id = 0, $topic_id = 0, $subscrib 
    839839/**
    840840 * Add a topic to user's subscriptions
    841841 *
    842  * @since bbPress (r5156)
     842 * @since 2.5.0 bbPress (r5156)
    843843 *
    844844 * @param int $user_id Optional. User id
    845845 * @param int $object_id Optional. Topic id
    function bbp_add_user_subscription( $user_id = 0, $object_id = 0 ) { 
    885885/**
    886886 * Add a forum to user's subscriptions
    887887 *
    888  * @since bbPress (r5156)
     888 * @since 2.5.0 bbPress (r5156)
    889889 *
    890890 * @param int $user_id Optional. User id
    891891 * @param int $forum_id Optional. forum id
    function bbp_add_user_forum_subscription( $user_id = 0, $forum_id = 0 ) { 
    922922/**
    923923 * Add a topic to user's subscriptions
    924924 *
    925  * @since bbPress (r2668)
     925 * @since 2.0.0 bbPress (r2668)
    926926 *
    927927 * @param int $user_id Optional. User id
    928928 * @param int $topic_id Optional. Topic id
    function bbp_add_user_topic_subscription( $user_id = 0, $topic_id = 0 ) { 
    959959/**
    960960 * Remove a topic from user's subscriptions
    961961 *
    962  * @since bbPress (r2668)
     962 * @since 2.0.0 bbPress (r2668)
    963963 *
    964964 * @param int $user_id Optional. User id
    965965 * @param int $object_id Optional. Topic id
    function bbp_remove_user_subscription( $user_id = 0, $object_id = 0 ) { 
    10051005/**
    10061006 * Remove a forum from user's subscriptions
    10071007 *
    1008  * @since bbPress (r5156)
     1008 * @since 2.5.0 bbPress (r5156)
    10091009 *
    10101010 * @param int $user_id Optional. User id
    10111011 * @param int $forum_id Optional. forum id
    function bbp_remove_user_forum_subscription( $user_id, $forum_id ) { 
    10521052/**
    10531053 * Remove a topic from user's subscriptions
    10541054 *
    1055  * @since bbPress (r5156)
     1055 * @since 2.5.0 bbPress (r5156)
    10561056 *
    10571057 * @param int $user_id Optional. User id
    10581058 * @param int $topic_id Optional. Topic id
    function bbp_remove_user_topic_subscription( $user_id, $topic_id ) { 
    10991099/**
    11001100 * Handles the front end subscribing and unsubscribing forums
    11011101 *
    1102  * @since bbPress (r5156)
     1102 * @since 2.5.0 bbPress (r5156)
    11031103 *
    11041104 * @param string $action The requested action to compare this function to
    11051105 * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    function bbp_forum_subscriptions_handler( $action = '' ) { 
    12041204/**
    12051205 * Handles the front end subscribing and unsubscribing topics
    12061206 *
    1207  * @since bbPress (r2790)
     1207 * @since 2.0.0 bbPress (r2790)
    12081208 *
    12091209 * @param string $action The requested action to compare this function to
    12101210 * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    function bbp_subscriptions_handler( $action = '' ) { 
    13111311/**
    13121312 * Handles the front end user editing from POST requests
    13131313 *
    1314  * @since bbPress (r2790)
     1314 * @since 2.0.0 bbPress (r2790)
    13151315 *
    13161316 * @param string $action The requested action to compare this function to
    13171317 * @uses is_multisite() To check if it's a multisite
    function bbp_edit_user_handler( $action = '' ) { 
    14451445/**
    14461446 * Handles user email address updating from GET requests
    14471447 *
    1448  * @since bbPress (r5660)
     1448 * @since 2.6.0 bbPress (r5660)
    14491449 *
    14501450 * @param string $action
    14511451 *
    function bbp_user_email_change_handler( $action = '' ) { 
    15551555/**
    15561556 * Sends an email when an email address change occurs on POST requests
    15571557 *
    1558  * @since bbPress (r5660)
     1558 * @since 2.6.0 bbPress (r5660)
    15591559 *
    15601560 * @see send_confirmation_on_profile_email()
    15611561 *
    The %4$s Team 
    16371637 * output actions if they don't want any unexpected junk to appear there, and
    16381638 * also avoids needing to pollute the templates with additional logic and actions.
    16391639 *
    1640  * @since bbPress (r4273)
     1640 * @since 2.2.0 bbPress (r4273)
    16411641 *
    16421642 * @uses bbp_is_user_home_edit() To switch the action fired
    16431643 * @uses get_userdata() To get the current user's data
    function bbp_user_edit_after() { 
    16541654/**
    16551655 * Get the topics that a user created
    16561656 *
    1657  * @since bbPress (r2660)
     1657 * @since 2.0.0 bbPress (r2660)
    16581658 *
    16591659 * @param int $user_id Optional. User id
    16601660 * @uses bbp_get_user_id() To get the topic id
    function bbp_get_user_topics_started( $user_id = 0 ) { 
    16801680/**
    16811681 * Get the replies that a user created
    16821682 *
    1683  * @since bbPress (r4225)
     1683 * @since 2.2.0 bbPress (r4225)
    16841684 *
    16851685 * @param int $user_id Optional. User id
    16861686 * @uses bbp_get_user_id() To get the topic id
    function bbp_get_user_replies_created( $user_id = 0 ) { 
    17081708/**
    17091709 * Get the total number of users on the forums
    17101710 *
    1711  * @since bbPress (r2769)
     1711 * @since 2.0.0 bbPress (r2769)
     1712 *
    17121713 * @uses count_users() To execute our query and get the var back
    17131714 * @uses apply_filters() Calls 'bbp_get_total_users' with number of users
    17141715 * @return int Total number of users
    function bbp_get_total_users() { 
    17231724/**
    17241725 * Return the raw database count of topics by a user
    17251726 *
    1726  * @since bbPress (r3633)
     1727 * @since 2.1.0 bbPress (r3633)
    17271728 *
    17281729 * @param int $user_id User ID to get count for
    17291730 *
    function bbp_get_user_topic_count_raw( $user_id = 0 ) { 
    17501751/**
    17511752 * Return the raw database count of replies by a user
    17521753 *
    1753  * @since bbPress (r3633)
     1754 * @since 2.1.0 bbPress (r3633)
    17541755 *
    17551756 * @param int $user_id User ID to get count for
    17561757 *
    function bbp_get_user_reply_count_raw( $user_id = 0 ) { 
    17771778/**
    17781779 * Bump the topic count for a user by a certain amount.
    17791780 *
    1780  * @since bbPress (r5309)
     1781 * @since 2.6.0 bbPress (r5309)
    17811782 *
    17821783 * @param int $user_id
    17831784 * @param int $difference
    function bbp_bump_user_topic_count( $user_id = 0, $difference = 1 ) { 
    18151816/**
    18161817 * Bump the reply count for a user by a certain amount.
    18171818 *
    1818  * @since bbPress (r5309)
     1819 * @since 2.6.0 bbPress (r5309)
    18191820 *
    18201821 * @param int $user_id
    18211822 * @param int $difference
    function bbp_bump_user_reply_count( $user_id = 0, $difference = 1 ) { 
    18541855 * Helper function used to increase (by one) the count of topics for a user when
    18551856 * a topic is published.
    18561857 *
    1857  * @since bbPress (r5309)
     1858 * @since 2.6.0 bbPress (r5309)
    18581859 *
    18591860 * @access
    18601861 * @param $topic_id
    function bbp_increase_user_topic_count( $topic_id = 0 ) { 
    18731874 *
    18741875 * This is a helper function, hooked to `bbp_new_reply`
    18751876 *
    1876  * @since bbPress (r5309)
     1877 * @since 2.6.0 bbPress (r5309)
    18771878 *
    18781879 * @param $topic_id
    18791880 * @param $forum_id
    function bbp_increase_user_reply_count( $reply_id = 0 ) { 
    18891890 * Helper function used to decrease (by one) the count of topics for a user when
    18901891 * a topic is unpublished.
    18911892 *
    1892  * @since bbPress (r5309)
     1893 * @since 2.6.0 bbPress (r5309)
    18931894 *
    18941895 * @param $topic_id
    18951896 */
    function bbp_decrease_user_topic_count( $topic_id = 0 ) { 
    19021903 * Helper function used to increase (by one) the count of replies for a user when
    19031904 * a topic is unpublished.
    19041905 *
    1905  * @since bbPress (r5309)
     1906 * @since 2.6.0 bbPress (r5309)
    19061907 *
    19071908 * @param $reply_id
    19081909 */
    function bbp_decrease_user_reply_count( $reply_id = 0 ) { 
    19161917/**
    19171918 * Return the term id for a given user id and taxonomy
    19181919 *
    1919  * @since bbPress (r5834)
     1920 * @since 2.6.0 bbPress (r5834)
    19201921 *
    19211922 * @param int    $user_id User id.
    19221923 * @param string $taxonomy Taxonomy.
    function bbp_get_user_taxonomy_term_id( $user_id = 0, $taxonomy = '' ) { 
    19561957/**
    19571958 * Return the user id for a given term id and taxonomy
    19581959 *
    1959  * @since bbPress (r5834)
     1960 * @since 2.6.0 bbPress (r5834)
    19601961 *
    19611962 * @param int    $term_id Term id.
    19621963 * @param string $taxonomy Taxonomy.
    function bbp_filter_forum_mod_term_link( $termlink = '', $term = '', $taxonomy = 
    20422043 * met, we assume a user cannot perform this task, and look for ways they can
    20432044 * earn the ability to access this template.
    20442045 *
    2045  * @since bbPress (r3605)
     2046 * @since 2.1.0 bbPress (r3605)
    20462047 *
    20472048 * @uses bbp_is_single_user_edit()
    20482049 * @uses current_user_can()
    function bbp_check_user_edit() { 
    20932094/**
    20942095 * Check if a user is blocked, or cannot spectate the forums.
    20952096 *
    2096  * @since bbPress (r2996)
     2097 * @since 2.0.0 bbPress (r2996)
    20972098 *
    20982099 * @uses is_user_logged_in() To check if user is logged in
    20992100 * @uses bbp_is_user_keymaster() To check if user is a keymaster
    function bbp_forum_enforce_blocked() { 
    21312132 *    a backwards compatible approach like this one was necessary to protect
    21322133 *    existing installations that may have custom template parts.
    21332134 *
    2134  * @since bbPress (r5368)
     2135 * @since 2.6.0 bbPress (r5368)
    21352136 *
    21362137 * @param string $value
    21372138 * @param string $field
    function bbp_sanitize_displayed_user_field( $value = '', $field = '', $context = 
    21882189/**
    21892190 * Convert passwords from previous platfrom encryption to WordPress encryption.
    21902191 *
    2191  * @since bbPress (r3813)
     2192 * @since 2.1.0 bbPress (r3813)
    21922193 */
    21932194function bbp_user_maybe_convert_pass() {
    21942195
  • src/includes/users/options.php

    diff --git src/includes/users/options.php src/includes/users/options.php
    index e420113..794cebb 100644
    defined( 'ABSPATH' ) || exit; 
    1313/**
    1414 * Get the default user options and their values
    1515 *
    16  * @since bbPress (r3910)
     16 * @since 2.1.0 bbPress (r3910)
     17 *
    1718 * @return array Filtered user option names and values
    1819 */
    1920function bbp_get_default_user_options() {
    function bbp_get_default_user_options() { 
    3334 *
    3435 * This is destructive, so existing bbPress user options will be overridden.
    3536 *
    36  * @since bbPress (r3910)
     37 * @since 2.1.0 bbPress (r3910)
     38 *
    3739 * @uses bbp_get_default_user_options() To get default options
    3840 * @uses update_user_option() Adds default options
    3941 * @uses do_action() Calls 'bbp_add_user_options'
    function bbp_add_user_options( $user_id = 0 ) { 
    6163 * Hooked to bbp_uninstall, it is only called once when bbPress is uninstalled.
    6264 * This is destructive, so existing bbPress user options will be destroyed.
    6365 *
    64  * @since bbPress (r3910)
     66 * @since 2.1.0 bbPress (r3910)
     67 *
    6568 * @uses bbp_get_default_user_options() To get default options
    6669 * @uses delete_user_option() Removes default options
    6770 * @uses do_action() Calls 'bbp_delete_options'
    function bbp_delete_user_options( $user_id = 0 ) { 
    8790 * Add filters to each bbPress option and allow them to be overloaded from
    8891 * inside the $bbp->options array.
    8992 *
    90  * @since bbPress (r3910)
     93 * @since 2.1.0 bbPress (r3910)
     94 *
    9195 * @uses bbp_get_default_user_options() To get default options
    9296 * @uses add_filter() To add filters to 'pre_option_{$key}'
    9397 * @uses do_action() Calls 'bbp_add_option_filters'
    function bbp_setup_user_option_filters() { 
    107111 * Filter default options and allow them to be overloaded from inside the
    108112 * $bbp->user_options array.
    109113 *
    110  * @since bbPress (r3910)
     114 * @since 2.1.0 bbPress (r3910)
     115 *
    111116 * @param bool $value Optional. Default value false
    112117 * @return mixed false if not overloaded, mixed if set
    113118 */
    function bbp_filter_get_user_option( $value = false, $option = '', $user = 0 ) { 
    128133/**
    129134 * Update the topic count for a user
    130135 *
    131  * @since bbPress (r5309)
     136 * @since 2.6.0 bbPress (r5309)
    132137 *
    133138 * @param int $user_id
    134139 * @param mixed $count
    function bbp_update_user_topic_count( $user_id = 0, $count = false ) { 
    157162/**
    158163 * Update the reply count for a user
    159164 *
    160  * @since bbPress (r5309)
     165 * @since 2.6.0 bbPress (r5309)
    161166 *
    162167 * @param int $user_id
    163168 * @param mixed $count
    function bbp_update_user_reply_count( $user_id = 0, $count = false ) { 
    186191/**
    187192 * Output a users topic count
    188193 *
    189  * @since bbPress (r3632)
     194 * @since 2.1.0 bbPress (r3632)
    190195 *
    191196 * @param int $user_id
    192197 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_user_topic_count( $user_id = 0, $integer = false ) { 
    199204        /**
    200205         * Return a users reply count
    201206         *
    202          * @since bbPress (r3632)
     207         * @since 2.1.0 bbPress (r3632)
    203208         *
    204209         * @param int $user_id
    205210         * @param boolean $integer Optional. Whether or not to format the result
    function bbp_user_topic_count( $user_id = 0, $integer = false ) { 
    225230/**
    226231 * Output a users reply count
    227232 *
    228  * @since bbPress (r3632)
     233 * @since 2.1.0 bbPress (r3632)
    229234 *
    230235 * @param int $user_id
    231236 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_user_reply_count( $user_id = 0, $integer = false ) { 
    238243        /**
    239244         * Return a users reply count
    240245         *
    241          * @since bbPress (r3632)
     246         * @since 2.1.0 bbPress (r3632)
    242247         *
    243248         * @param int $user_id
    244249         * @param boolean $integer Optional. Whether or not to format the result
    function bbp_user_reply_count( $user_id = 0, $integer = false ) { 
    264269/**
    265270 * Output a users total post count
    266271 *
    267  * @since bbPress (r3632)
     272 * @since 2.1.0 bbPress (r3632)
    268273 *
    269274 * @param int $user_id
    270275 * @param boolean $integer Optional. Whether or not to format the result
    function bbp_user_post_count( $user_id = 0, $integer = false ) { 
    277282        /**
    278283         * Return a users total post count
    279284         *
    280          * @since bbPress (r3632)
     285         * @since 2.1.0 bbPress (r3632)
    281286         *
    282287         * @param int $user_id
    283288         * @param boolean $integer Optional. Whether or not to format the result
    function bbp_user_post_count( $user_id = 0, $integer = false ) { 
    307312/**
    308313 * Update a users last posted time, for use with post throttling
    309314 *
    310  * @since bbPress (r3910)
     315 * @since 2.1.0 bbPress (r3910)
     316 *
    311317 * @param int $user_id User ID to update
    312318 * @param int $time Time in time() format
    313319 * @return bool False if no user or failure, true if successful
    function bbp_update_user_last_posted( $user_id = 0, $time = 0 ) { 
    331337/**
    332338 * Output the raw value of the last posted time.
    333339 *
    334  * @since bbPress (r3910)
     340 * @since 2.1.0 bbPress (r3910)
     341 *
    335342 * @param int $user_id User ID to retrieve value for
    336343 * @uses bbp_get_user_last_posted() To output the last posted time
    337344 */
    function bbp_user_last_posted( $user_id = 0 ) { 
    342349        /**
    343350         * Return the raw value of teh last posted time.
    344351         *
    345          * @since bbPress (r3910)
     352         * @since 2.1.0 bbPress (r3910)
     353         *
    346354         * @param int $user_id User ID to retrieve value for
    347355         * @return mixed False if no user, time() format if exists
    348356         */
  • src/includes/users/template.php

    diff --git src/includes/users/template.php src/includes/users/template.php
    index fd76f4a..6191d3c 100644
    defined( 'ABSPATH' ) || exit; 
    1515/**
    1616 * Output a validated user id
    1717 *
    18  * @since bbPress (r2729)
     18 * @since 2.0.0 bbPress (r2729)
    1919 *
    2020 * @param int $user_id Optional. User id
    2121 * @param bool $displayed_user_fallback Fallback on displayed user?
    function bbp_user_id( $user_id = 0, $displayed_user_fallback = true, $current_us 
    2828        /**
    2929         * Return a validated user id
    3030         *
    31          * @since bbPress (r2729)
     31         * @since 2.0.0 bbPress (r2729)
    3232         *
    3333         * @param int $user_id Optional. User id
    3434         * @param bool $displayed_user_fallback Fallback on displayed user?
    function bbp_user_id( $user_id = 0, $displayed_user_fallback = true, $current_us 
    6363/**
    6464 * Output ID of current user
    6565 *
    66  * @since bbPress (r2574)
     66 * @since 2.0.0 bbPress (r2574)
    6767 *
    6868 * @uses bbp_get_current_user_id() To get the current user id
    6969 */
    function bbp_current_user_id() { 
    7373        /**
    7474         * Return ID of current user
    7575         *
    76          * @since bbPress (r2574)
     76         * @since 2.0.0 bbPress (r2574)
    7777         *
    7878         * @uses bbp_get_user_id() To get the current user id
    7979         * @uses apply_filters() Calls 'bbp_get_current_user_id' with the id
    function bbp_current_user_id() { 
    8686/**
    8787 * Output ID of displayed user
    8888 *
    89  * @since bbPress (r2688)
     89 * @since 2.0.0 bbPress (r2688)
    9090 *
    9191 * @uses bbp_get_displayed_user_id() To get the displayed user id
    9292 */
    function bbp_displayed_user_id() { 
    9696        /**
    9797         * Return ID of displayed user
    9898         *
    99          * @since bbPress (r2688)
     99         * @since 2.0.0 bbPress (r2688)
    100100         *
    101101         * @uses bbp_get_user_id() To get the displayed user id
    102102         * @uses apply_filters() Calls 'bbp_get_displayed_user_id' with the id
    function bbp_displayed_user_id() { 
    113113 * the field value that it finds. Since it uses the WP_User object's magic
    114114 * __get() method, it can also be used to get user_meta values.
    115115 *
    116  * @since bbPress (r2688)
     116 * @since 2.0.0 bbPress (r2688)
    117117 *
    118118 * @param string $field Field to get
    119119 * @param string $filter How to filter the field value (null|raw|db|display|edit)
    function bbp_displayed_user_field( $field = '', $filter = 'display' ) { 
    129129         * the field value that it finds. Since it uses the WP_User object's magic
    130130         * __get() method, it can also be used to get user_meta values.
    131131         *
    132          * @since bbPress (r2688)
     132         * @since 2.0.0 bbPress (r2688)
    133133         *
    134134         * @param string $field Field to get
    135135         * @param string $filter How to filter the field value (null|raw|db|display|edit)
    function bbp_displayed_user_field( $field = '', $filter = 'display' ) { 
    162162/**
    163163 * Output name of current user
    164164 *
    165  * @since bbPress (r2574)
     165 * @since 2.0.0 bbPress (r2574)
    166166 *
    167167 * @uses bbp_get_current_user_name() To get the current user name
    168168 */
    function bbp_current_user_name() { 
    172172        /**
    173173         * Return name of current user
    174174         *
    175          * @since bbPress (r2574)
     175         * @since 2.0.0 bbPress (r2574)
    176176         *
    177177         * @uses apply_filters() Calls 'bbp_get_current_user_name' with the
    178178         *                        current user name
    function bbp_current_user_name() { 
    189189/**
    190190 * Output avatar of current user
    191191 *
    192  * @since bbPress (r2574)
     192 * @since 2.0.0 bbPress (r2574)
    193193 *
    194194 * @param int $size Size of the avatar. Defaults to 40
    195195 * @uses bbp_get_current_user_avatar() To get the current user avatar
    function bbp_current_user_avatar( $size = 40 ) { 
    201201        /**
    202202         * Return avatar of current user
    203203         *
    204          * @since bbPress (r2574)
     204         * @since 2.0.0 bbPress (r2574)
    205205         *
    206206         * @param int $size Size of the avatar. Defaults to 40
    207207         * @uses bbp_get_current_user_id() To get the current user id
    function bbp_current_user_avatar( $size = 40 ) { 
    227227/**
    228228 * Output link to the profile page of a user
    229229 *
    230  * @since bbPress (r2688)
     230 * @since 2.0.0 bbPress (r2688)
    231231 *
    232232 * @param int $user_id Optional. User id
    233233 * @uses bbp_get_user_profile_link() To get user profile link
    function bbp_user_profile_link( $user_id = 0 ) { 
    238238        /**
    239239         * Return link to the profile page of a user
    240240         *
    241          * @since bbPress (r2688)
     241         * @since 2.0.0 bbPress (r2688)
    242242         *
    243243         * @param int $user_id Optional. User id
    244244         * @uses bbp_get_user_id() To get user id
    function bbp_user_profile_link( $user_id = 0 ) { 
    265265/**
    266266 * Output a users nicename to the screen
    267267 *
    268  * @since bbPress (r4671)
     268 * @since 2.3.0 bbPress (r4671)
    269269 *
    270270 * @param int $user_id User ID whose nicename to get
    271271 * @param array $args before|after|user_id|force
    function bbp_user_nicename( $user_id = 0, $args = array() ) { 
    276276        /**
    277277         * Return a users nicename to the screen
    278278         *
    279          * @since bbPress (r4671)
     279         * @since 2.3.0 bbPress (r4671)
    280280         *
    281281         * @param int $user_id User ID whose nicename to get
    282282         * @param array $args before|after|user_id|force
    function bbp_user_nicename( $user_id = 0, $args = array() ) { 
    318318/**
    319319 * Output URL to the profile page of a user
    320320 *
    321  * @since bbPress (r2688)
     321 * @since 2.0.0 bbPress (r2688)
    322322 *
    323323 * @param int $user_id Optional. User id
    324324 * @param string $user_nicename Optional. User nicename
    function bbp_user_profile_url( $user_id = 0, $user_nicename = '' ) { 
    330330        /**
    331331         * Return URL to the profile page of a user
    332332         *
    333          * @since bbPress (r2688)
     333         * @since 2.0.0 bbPress (r2688)
    334334         *
    335335         * @param int $user_id Optional. User id
    336336         * @param string $user_nicename Optional. User nicename
    function bbp_user_profile_url( $user_id = 0, $user_nicename = '' ) { 
    381381/**
    382382 * Output link to the profile edit page of a user
    383383 *
    384  * @since bbPress (r2688)
     384 * @since 2.0.0 bbPress (r2688)
    385385 *
    386386 * @param int $user_id Optional. User id
    387387 * @uses bbp_get_user_profile_edit_link() To get user profile edit link
    function bbp_user_profile_edit_link( $user_id = 0 ) { 
    392392        /**
    393393         * Return link to the profile edit page of a user
    394394         *
    395          * @since bbPress (r2688)
     395         * @since 2.0.0 bbPress (r2688)
    396396         *
    397397         * @param int $user_id Optional. User id
    398398         * @uses bbp_get_user_id() To get user id
    function bbp_user_profile_edit_link( $user_id = 0 ) { 
    418418/**
    419419 * Output URL to the profile edit page of a user
    420420 *
    421  * @since bbPress (r2688)
     421 * @since 2.0.0 bbPress (r2688)
    422422 *
    423423 * @param int $user_id Optional. User id
    424424 * @param string $user_nicename Optional. User nicename
    function bbp_user_profile_edit_url( $user_id = 0, $user_nicename = '' ) { 
    430430        /**
    431431         * Return URL to the profile edit page of a user
    432432         *
    433          * @since bbPress (r2688)
     433         * @since 2.0.0 bbPress (r2688)
    434434         *
    435435         * @param int $user_id Optional. User id
    436436         * @param string $user_nicename Optional. User nicename
    function bbp_user_profile_edit_url( $user_id = 0, $user_nicename = '' ) { 
    478478/**
    479479 * Output a user's main role for display
    480480 *
    481  * @since bbPress (r3860)
     481 * @since 2.1.0 bbPress (r3860)
    482482 *
    483483 * @param int $user_id
    484484 * @uses bbp_get_user_display_role To get the user display role
    function bbp_user_display_role( $user_id = 0 ) { 
    489489        /**
    490490         * Return a user's main role for display
    491491         *
    492          * @since bbPress (r3860)
     492         * @since 2.1.0 bbPress (r3860)
    493493         *
    494494         * @param int $user_id
    495495         * @uses bbp_get_user_id() to verify the user ID
    function bbp_user_display_role( $user_id = 0 ) { 
    529529/**
    530530 * Output the link to the admin section
    531531 *
    532  * @since bbPress (r2827)
     532 * @since 2.0.0 bbPress (r2827)
    533533 *
    534534 * @param array $args Optional. See {@link bbp_get_admin_link()}
    535535 * @uses bbp_get_admin_link() To get the admin link
    function bbp_admin_link( $args = array() ) { 
    540540        /**
    541541         * Return the link to the admin section
    542542         *
    543          * @since bbPress (r2827)
     543         * @since 2.0.0 bbPress (r2827)
    544544         *
    545545         * @param array $args Optional. This function supports these arguments:
    546546         *  - text: The text
    function bbp_admin_link( $args = array() ) { 
    577577/**
    578578 * Output the author IP address of a post
    579579 *
    580  * @since bbPress (r3120)
     580 * @since 2.0.0 bbPress (r3120)
    581581 *
    582582 * @param array $args Optional. If it is an integer, it is used as post id.
    583583 * @uses bbp_get_author_ip() To get the post author link
    function bbp_author_ip( $args = array() ) { 
    588588        /**
    589589         * Return the author IP address of a post
    590590         *
    591          * @since bbPress (r3120)
     591         * @since 2.0.0 bbPress (r3120)
    592592         *
    593593         * @param array $args Optional. If an integer, it is used as reply id.
    594594         * @uses get_post_meta() To check if it's a topic page
    function bbp_author_ip( $args = array() ) { 
    628628 * and correct filters are executed. Used primarily to display topic
    629629 * and reply author information in the anonymous form template-part.
    630630 *
    631  * @since bbPress (r5119)
     631 * @since 2.5.0 bbPress (r5119)
    632632 *
    633633 * @param int $post_id
    634634 * @uses bbp_get_author_display_name() to get the author name
    function bbp_author_display_name( $post_id = 0 ) { 
    644644         * and correct filters are executed. Used primarily to display topic
    645645         * and reply author information in the anonymous form template-part.
    646646         *
    647          * @since bbPress (r5119)
     647         * @since 2.5.0 bbPress (r5119)
    648648         *
    649649         * @param int $post_id
    650650         *
    function bbp_author_display_name( $post_id = 0 ) { 
    684684 * and correct filters are executed. Used primarily to display topic
    685685 * and reply author information in the anonymous user form template-part.
    686686 *
    687  * @since bbPress (r5119)
     687 * @since 2.5.0 bbPress (r5119)
    688688 *
    689689 * @param int $post_id
    690690 * @uses bbp_get_author_email() to get the author email
    function bbp_author_email( $post_id = 0 ) { 
    700700         * and correct filters are executed. Used primarily to display topic
    701701         * and reply author information in the anonymous user form template-part.
    702702         *
    703          * @since bbPress (r5119)
     703         * @since 2.5.0 bbPress (r5119)
    704704         *
    705705         * @param int $post_id
    706706         *
    function bbp_author_email( $post_id = 0 ) { 
    740740 * and correct filters are executed. Used primarily to display topic
    741741 * and reply author information in the anonymous user form template-part.
    742742 *
    743  * @since bbPress (r5119)
     743 * @since 2.5.0 bbPress (r5119)
    744744 *
    745745 * @param int $post_id
    746746 * @uses bbp_get_author_url() to get the author url
    function bbp_author_url( $post_id = 0 ) { 
    756756         * and correct filters are executed. Used primarily to display topic
    757757         * and reply author information in the anonymous user form template-part.
    758758         *
    759          * @since bbPress (r5119)
     759         * @since 2.5.0 bbPress (r5119)
    760760         *
    761761         * @param int $post_id
    762762         *
    function bbp_author_url( $post_id = 0 ) { 
    794794/**
    795795 * Output the link to the user's favorites page (profile page)
    796796 *
    797  * @since bbPress (r2652)
     797 * @since 2.0.0 bbPress (r2652)
    798798 *
    799799 * @param int $user_id Optional. User id
    800800 * @uses bbp_get_favorites_permalink() To get the favorites permalink
    function bbp_favorites_permalink( $user_id = 0 ) { 
    805805        /**
    806806         * Return the link to the user's favorites page (profile page)
    807807         *
    808          * @since bbPress (r2652)
     808         * @since 2.0.0 bbPress (r2652)
    809809         *
    810810         * @param int $user_id Optional. User id
    811811         * @uses bbp_get_user_profile_url() To get the user profile url
    function bbp_favorites_permalink( $user_id = 0 ) { 
    848848/**
    849849 * Output the link to make a topic favorite/remove a topic from favorites
    850850 *
    851  * @since bbPress (r2652)
     851 * @since 2.0.0 bbPress (r2652)
    852852 *
    853853 * @param array $args See {@link bbp_get_user_favorites_link()}
    854854 * @param int $user_id Optional. User id
    function bbp_user_favorites_link( $args = array(), $user_id = 0, $wrap = true ) 
    864864         * Return the link to make a topic favorite/remove a topic from
    865865         * favorites
    866866         *
    867          * @since bbPress (r2652)
     867         * @since 2.0.0 bbPress (r2652)
    868868         *
    869869         * @param array $args This function supports these arguments:
    870870         *  - subscribe: Favorite text
    function bbp_user_favorites_link( $args = array(), $user_id = 0, $wrap = true ) 
    952952/**
    953953 * Output the link to the user's subscriptions page (profile page)
    954954 *
    955  * @since bbPress (r2688)
     955 * @since 2.0.0 bbPress (r2688)
    956956 *
    957957 * @param int $user_id Optional. User id
    958958 * @uses bbp_get_subscriptions_permalink() To get the subscriptions link
    function bbp_subscriptions_permalink( $user_id = 0 ) { 
    963963        /**
    964964         * Return the link to the user's subscriptions page (profile page)
    965965         *
    966          * @since bbPress (r2688)
     966         * @since 2.0.0 bbPress (r2688)
    967967         *
    968968         * @param int $user_id Optional. User id
    969969         * @uses bbp_get_user_profile_url() To get the user profile url
    function bbp_subscriptions_permalink( $user_id = 0 ) { 
    10061006/**
    10071007 * Output the link to subscribe/unsubscribe from a topic
    10081008 *
    1009  * @since bbPress (r2668)
     1009 * @since 2.0.0 bbPress (r2668)
    10101010 *
    10111011 * @param array $args See {@link bbp_get_user_subscribe_link()}
    10121012 * @param int $user_id Optional. User id
    function bbp_user_subscribe_link( $args = array(), $user_id = 0, $wrap = true ) 
    10191019        /**
    10201020         * Return the link to subscribe/unsubscribe from a forum or topic
    10211021         *
    1022          * @since bbPress (r2668)
     1022         * @since 2.0.0 bbPress (r2668)
    10231023         *
    10241024         * @param array $args This function supports these arguments:
    10251025         *  - subscribe: Subscribe text
    function bbp_user_subscribe_link( $args = array(), $user_id = 0, $wrap = true ) 
    11491149/**
    11501150 * Display profile edit success notice on user edit page
    11511151 *
    1152  * @since bbPress (r2688)
     1152 * @since 2.0.0 bbPress (r2688)
    11531153 *
    11541154 * @uses bbp_is_single_user() To check if it's the profile page
    11551155 * @uses bbp_is_single_user_edit() To check if it's the profile edit page
    function bbp_notice_edit_user_success() { 
    11781178/**
    11791179 * Display pending email change notice on user edit page
    11801180 *
    1181  * @since bbPress (r5660)
     1181 * @since 2.6.0 bbPress (r5660)
    11821182 *
    11831183 * @uses bbp_get_displayed_user_id()     To get the displayed user ID
    11841184 * @uses bbp_is_single_user_edit()       To check if it's the profile edit page
    function bbp_notice_edit_user_pending_email() { 
    12281228/**
    12291229 * Super admin privileges notice
    12301230 *
    1231  * @since bbPress (r2688)
     1231 * @since 2.0.0 bbPress (r2688)
    12321232 *
    12331233 * @uses is_multisite() To check if the blog is multisite
    12341234 * @uses bbp_is_single_user() To check if it's the profile page
    function bbp_notice_edit_user_is_super_admin() { 
    12551255/**
    12561256 * Drop down for selecting the user's display name
    12571257 *
    1258  * @since bbPress (r2688)
     1258 * @since 2.0.0 bbPress (r2688)
    12591259 */
    12601260function bbp_edit_user_display_name() {
    12611261        $bbp            = bbpress();
    function bbp_edit_user_display_name() { 
    13031303/**
    13041304 * Output blog role selector (for user edit)
    13051305 *
    1306  * @since bbPress (r2688)
     1306 * @since 2.0.0 bbPress (r2688)
    13071307 */
    13081308function bbp_edit_user_blog_role() {
    13091309
    function bbp_edit_user_blog_role() { 
    13351335/**
    13361336 * Output forum role selector (for user edit)
    13371337 *
    1338  * @since bbPress (r4284)
     1338 * @since 2.2.0 bbPress (r4284)
    13391339 */
    13401340function bbp_edit_user_forums_role() {
    13411341
    function bbp_edit_user_forums_role() { 
    13721372/**
    13731373 * Return user contact methods Selectbox
    13741374 *
    1375  * @since bbPress (r2688)
     1375 * @since 2.0.0 bbPress (r2688)
    13761376 *
    13771377 * @uses _wp_get_user_contactmethods() To get the contact methods
    13781378 * @uses apply_filters() Calls 'bbp_edit_user_contact_methods' with the methods
    function bbp_edit_user_contact_methods() { 
    13911391/**
    13921392 * Output the link to the user's topics
    13931393 *
    1394  * @since bbPress (r4225)
     1394 * @since 2.2.0 bbPress (r4225)
    13951395 *
    13961396 * @param int $user_id Optional. User id
    13971397 * @uses bbp_get_favorites_permalink() To get the favorites permalink
    function bbp_user_topics_created_url( $user_id = 0 ) { 
    14021402        /**
    14031403         * Return the link to the user's topics
    14041404         *
    1405          * @since bbPress (r4225)
     1405         * @since 2.2.0 bbPress (r4225)
    14061406         *
    14071407         * @param int $user_id Optional. User id
    14081408         * @uses bbp_get_user_profile_url() To get the user profile url
    function bbp_user_topics_created_url( $user_id = 0 ) { 
    14471447/**
    14481448 * Output the link to the user's replies
    14491449 *
    1450  * @since bbPress (r4225)
     1450 * @since 2.2.0 bbPress (r4225)
    14511451 *
    14521452 * @param int $user_id Optional. User id
    14531453 * @uses bbp_get_favorites_permalink() To get the favorites permalink
    function bbp_user_replies_created_url( $user_id = 0 ) { 
    14581458        /**
    14591459         * Return the link to the user's replies
    14601460         *
    1461          * @since bbPress (r4225)
     1461         * @since 2.2.0 bbPress (r4225)
    14621462         *
    14631463         * @param int $user_id Optional. User id
    14641464         * @uses bbp_get_user_profile_url() To get the user profile url
    function bbp_user_replies_created_url( $user_id = 0 ) { 
    15031503/**
    15041504 * Handle the login and registration template notices
    15051505 *
    1506  * @since bbPress (r2970)
     1506 * @since 2.0.0 bbPress (r2970)
    15071507 *
    15081508 * @uses WP_Error bbPress::errors::add() To add an error or message
    15091509 */
    function bbp_login_notices() { 
    15461546 * This should be used before {@link get_header()} is called in template files
    15471547 * where the user should never have access to the contents of that file.
    15481548 *
    1549  * @since bbPress (r2815)
     1549 * @since 2.0.0 bbPress (r2815)
    15501550 *
    15511551 * @param string $url The URL to redirect to
    15521552 * @uses is_user_logged_in() Check if user is logged in
    function bbp_logged_in_redirect( $url = '' ) { 
    15711571/**
    15721572 * Output the required hidden fields when logging in
    15731573 *
    1574  * @since bbPress (r2815)
     1574 * @since 2.0.0 bbPress (r2815)
    15751575 *
    15761576 * @uses apply_filters() To allow custom redirection
    15771577 * @uses bbp_redirect_to_field() To output the hidden request url field
    function bbp_user_login_fields() { 
    15971597/**
    15981598 * Output the required hidden fields when registering
    15991599 *
    1600  * @since bbPress (r2815)
     1600 * @since 2.0.0 bbPress (r2815)
    16011601 *
    16021602 * @uses add_query_arg() To add query args
    16031603 * @uses bbp_login_url() To get the login url
    function bbp_user_register_fields() { 
    16261626/**
    16271627 * Output the required hidden fields when user lost password
    16281628 *
    1629  * @since bbPress (r2815)
     1629 * @since 2.0.0 bbPress (r2815)
    16301630 *
    16311631 * @uses apply_filters() To allow custom redirection
    16321632 * @uses bbp_redirect_to_field() Set referer
    function bbp_user_lost_pass_fields() { 
    16521652/**
    16531653 * Output the author link of a post
    16541654 *
    1655  * @since bbPress (r2875)
     1655 * @since 2.0.0 bbPress (r2875)
    16561656 *
    16571657 * @param array $args Optional. If it is an integer, it is used as post id.
    16581658 * @uses bbp_get_author_link() To get the post author link
    function bbp_author_link( $args = array() ) { 
    16631663        /**
    16641664         * Return the author link of the post
    16651665         *
    1666          * @since bbPress (r2875)
     1666         * @since 2.0.0 bbPress (r2875)
    16671667         *
    16681668         * @param array $args Optional. If an integer, it is used as reply id.
    16691669         * @uses bbp_is_topic() To check if it's a topic page
    function bbp_author_link( $args = array() ) { 
    17521752/**
    17531753 * Check if the user can access a specific forum
    17541754 *
    1755  * @since bbPress (r3127)
     1755 * @since 2.0.0 bbPress (r3127)
    17561756 *
    17571757 * @uses bbp_get_current_user_id()
    17581758 * @uses bbp_get_forum_id()
    function bbp_user_can_view_forum( $args = array() ) { 
    18061806/**
    18071807 * Check if the current user can publish topics
    18081808 *
    1809  * @since bbPress (r3127)
     1809 * @since 2.0.0 bbPress (r3127)
    18101810 *
    18111811 * @uses bbp_is_user_keymaster()
    18121812 * @uses is_user_logged_in()
    function bbp_current_user_can_publish_topics() { 
    18421842/**
    18431843 * Check if the current user can publish forums
    18441844 *
    1845  * @since bbPress (r3549)
     1845 * @since 2.1.0 bbPress (r3549)
    18461846 *
    18471847 * @uses bbp_is_user_keymaster()
    18481848 * @uses bbp_is_user_active()
    function bbp_current_user_can_publish_forums() { 
    18721872/**
    18731873 * Check if the current user can publish replies
    18741874 *
    1875  * @since bbPress (r3127)
     1875 * @since 2.0.0 bbPress (r3127)
    18761876 *
    18771877 * @uses bbp_is_user_keymaster()
    18781878 * @uses is_user_logged_in()
    function bbp_current_user_can_publish_replies() { 
    19161916/**
    19171917 * Get the forums the current user has the ability to see and post to
    19181918 *
    1919  * @since bbPress (r3127)
     1919 * @since 2.0.0 bbPress (r3127)
    19201920 *
    19211921 * @uses bbp_get_forum_post_type()
    19221922 * @uses get_posts()
    function bbp_get_forums_for_current_user( $args = array() ) { 
    19691969/**
    19701970 * Performs a series of checks to ensure the current user can create forums.
    19711971 *
    1972  * @since bbPress (r3549)
     1972 * @since 2.1.0 bbPress (r3549)
    19731973 *
    19741974 * @uses bbp_is_user_keymaster()
    19751975 * @uses bbp_is_forum_edit()
    function bbp_current_user_can_access_create_forum_form() { 
    20032003/**
    20042004 * Performs a series of checks to ensure the current user can create topics.
    20052005 *
    2006  * @since bbPress (r3127)
     2006 * @since 2.0.0 bbPress (r3127)
    20072007 *
    20082008 * @uses bbp_is_user_keymaster()
    20092009 * @uses bbp_is_topic_edit()
    function bbp_current_user_can_access_create_topic_form() { 
    20392039/**
    20402040 * Performs a series of checks to ensure the current user can create replies.
    20412041 *
    2042  * @since bbPress (r3127)
     2042 * @since 2.0.0 bbPress (r3127)
    20432043 *
    20442044 * @uses bbp_is_user_keymaster()
    20452045 * @uses bbp_is_topic_edit()
    function bbp_current_user_can_access_create_reply_form() { 
    20762076 * Performs a series of checks to ensure the current user should see the
    20772077 * anonymous user form fields.
    20782078 *
    2079  * @since bbPress (r5119)
     2079 * @since 2.5.0 bbPress (r5119)
    20802080 *
    20812081 * @uses bbp_is_anonymous()
    20822082 * @uses bbp_is_topic_edit()
  • src/templates/default/bbpress-functions.php

    diff --git src/templates/default/bbpress-functions.php src/templates/default/bbpress-functions.php
    index 1a00f46..833e54e 100644
     
    55 *
    66 * @package bbPress
    77 * @subpackage BBP_Theme_Compat
    8  * @since bbPress (r3732)
     8 * @since 2.1.0 bbPress (r3732)
    99 */
    1010
    1111// Exit if accessed directly
    if ( !class_exists( 'BBP_Default' ) ) : 
    2727 *
    2828 * See @link BBP_Theme_Compat() for more.
    2929 *
    30  * @since bbPress (r3732)
     30 * @since 2.1.0 bbPress (r3732)
    3131 *
    3232 * @package bbPress
    3333 * @subpackage BBP_Theme_Compat
    class BBP_Default extends BBP_Theme_Compat { 
    3939        /**
    4040         * The main bbPress (Default) Loader
    4141         *
    42          * @since bbPress (r3732)
     42         * @since 2.1.0 bbPress (r3732)
    4343         *
    4444         * @uses BBP_Default::setup_globals()
    4545         * @uses BBP_Default::setup_actions()
    class BBP_Default extends BBP_Theme_Compat { 
    6060        /**
    6161         * Setup the theme hooks
    6262         *
    63          * @since bbPress (r3732)
     63         * @since 2.1.0 bbPress (r3732)
     64         *
    6465         * @access private
    6566         *
    6667         * @uses add_filter() To add various filters
    class BBP_Default extends BBP_Theme_Compat { 
    9192         * Inserts HTML at the top of the main content area to be compatible with
    9293         * the Twenty Twelve theme.
    9394         *
    94          * @since bbPress (r3732)
     95         * @since 2.1.0 bbPress (r3732)
    9596         */
    9697        public function before_main_content() {
    9798        ?>
    class BBP_Default extends BBP_Theme_Compat { 
    106107         * Inserts HTML at the bottom of the main content area to be compatible with
    107108         * the Twenty Twelve theme.
    108109         *
    109          * @since bbPress (r3732)
     110         * @since 2.1.0 bbPress (r3732)
    110111         */
    111112        public function after_main_content() {
    112113        ?>
    class BBP_Default extends BBP_Theme_Compat { 
    120121        /**
    121122         * Load the theme CSS
    122123         *
    123          * @since bbPress (r3732)
     124         * @since 2.1.0 bbPress (r3732)
    124125         *
    125126         * @uses wp_enqueue_style() To enqueue the styles
    126127         */
    class BBP_Default extends BBP_Theme_Compat { 
    147148        /**
    148149         * Enqueue the required Javascript files
    149150         *
    150          * @since bbPress (r3732)
     151         * @since 2.1.0 bbPress (r3732)
    151152         *
    152153         * @uses bbp_is_single_forum() To check if it's the forum page
    153154         * @uses bbp_is_single_topic() To check if it's the topic page
    class BBP_Default extends BBP_Theme_Compat { 
    219220         *
    220221         * These localizations require information that may not be loaded even by init.
    221222         *
    222          * @since bbPress (r3732)
     223         * @since 2.1.0 bbPress (r3732)
    223224         *
    224225         * @uses bbp_is_single_forum() To check if it's the forum page
    225226         * @uses bbp_is_single_topic() To check if it's the topic page
    class BBP_Default extends BBP_Theme_Compat { 
    260261        /**
    261262         * AJAX handler to Subscribe/Unsubscribe a user from a forum
    262263         *
    263          * @since bbPress (r5155)
     264         * @since 2.5.0 bbPress (r5155)
    264265         *
    265266         * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    266267         * @uses bbp_is_user_logged_in() To check if user is logged in
    class BBP_Default extends BBP_Theme_Compat { 
    328329        /**
    329330         * AJAX handler to add or remove a topic from a user's favorites
    330331         *
    331          * @since bbPress (r3732)
     332         * @since 2.1.0 bbPress (r3732)
    332333         *
    333334         * @uses bbp_is_favorites_active() To check if favorites are active
    334335         * @uses bbp_is_user_logged_in() To check if user is logged in
    class BBP_Default extends BBP_Theme_Compat { 
    396397        /**
    397398         * AJAX handler to Subscribe/Unsubscribe a user from a topic
    398399         *
    399          * @since bbPress (r3732)
     400         * @since 2.1.0 bbPress (r3732)
    400401         *
    401402         * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    402403         * @uses bbp_is_user_logged_in() To check if user is logged in