Skip to:
Content

bbPress.org

Changeset 5951 for trunk/src/bbpress.php


Ignore:
Timestamp:
10/28/2015 04:07:50 AM (10 years ago)
Author:
netweb
Message:

Standardize @since PHPDoc tags style and format

This changeset updates the style and formatting of all of our @since instances for compatibility with phpDocumentor 2 and WP-Parser as we move toward implementing the bbPress developer code reference.

Props thebrandonallen
Fixes #2879

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bbpress.php

    r5834 r5951  
    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 {
     
    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
     
    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();
     
    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' ); }
     
    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' ); }
     
    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 ] ); }
     
    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; }
     
    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; }
     
    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 ) {
     
    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; }
     
    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
     
    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
     
    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
     
    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() {
     
    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() {
     
    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
     
    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
     
    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
     
    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
     
    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     */
     
    749757     * Register the bbPress shortcodes
    750758     *
    751      * @since bbPress (r3031)
     759     * @since 2.0.0 bbPress (r3031)
    752760     *
    753761     * @uses BBP_Shortcodes
     
    765773     * avoid xmlrpc errors.
    766774     *
    767      * @since bbPress (r2697)
     775     * @since 2.0.0 bbPress (r2697)
     776     *
    768777     * @uses wp_get_current_user()
    769778     */
     
    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     */
     
    798808     * - User profiles
    799809     *
    800      * @since bbPress (r2688)
     810     * @since 2.0.0 bbPress (r2688)
     811     *
    801812     * @todo Extract into an API
    802813     */
     
    897908     * - Search
    898909     *
    899      * @since bbPress (r4930)
     910     * @since 2.4.0 bbPress (r4930)
    900911     */
    901912    public static function add_permastructs() {
Note: See TracChangeset for help on using the changeset viewer.