Changeset 5951 for trunk/src/bbpress.php
- Timestamp:
- 10/28/2015 04:07:50 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/bbpress.php (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bbpress.php
r5834 r5951 33 33 * "How doth the little busy bee, improve each shining hour..." 34 34 * 35 * @since bbPress (r2464)35 * @since 2.0.0 bbPress (r2464) 36 36 */ 37 37 final class bbPress { … … 91 91 * time. Also prevents needing to define globals all over the place. 92 92 * 93 * @since bbPress (r3757) 93 * @since 2.1.0 bbPress (r3757) 94 * 94 95 * @staticvar object $instance 95 96 * @uses bbPress::setup_globals() Setup the globals needed … … 121 122 * A dummy constructor to prevent bbPress from being loaded more than once. 122 123 * 123 * @since bbPress (r2464) 124 * @since 2.0.0 bbPress (r2464) 125 * 124 126 * @see bbPress::instance() 125 127 * @see bbpress(); … … 130 132 * A dummy magic method to prevent bbPress from being cloned 131 133 * 132 * @since bbPress (r2464)134 * @since 2.0.0 bbPress (r2464) 133 135 */ 134 136 public function __clone() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'bbpress' ), '2.1' ); } … … 137 139 * A dummy magic method to prevent bbPress from being unserialized 138 140 * 139 * @since bbPress (r2464)141 * @since 2.0.0 bbPress (r2464) 140 142 */ 141 143 public function __wakeup() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'bbpress' ), '2.1' ); } … … 144 146 * Magic method for checking the existence of a certain custom field 145 147 * 146 * @since bbPress (r3951)148 * @since 2.1.0 bbPress (r3951) 147 149 */ 148 150 public function __isset( $key ) { return isset( $this->data[ $key ] ); } … … 151 153 * Magic method for getting bbPress variables 152 154 * 153 * @since bbPress (r3951)155 * @since 2.1.0 bbPress (r3951) 154 156 */ 155 157 public function __get( $key ) { return isset( $this->data[ $key ] ) ? $this->data[ $key ] : null; } … … 158 160 * Magic method for setting bbPress variables 159 161 * 160 * @since bbPress (r3951)162 * @since 2.1.0 bbPress (r3951) 161 163 */ 162 164 public function __set( $key , $value ) { $this->data[ $key ] = $value; } … … 165 167 * Magic method for unsetting bbPress variables 166 168 * 167 * @since bbPress (r4628)169 * @since 2.3.0 bbPress (r4628) 168 170 */ 169 171 public function __unset( $key ) { … … 176 178 * Magic method to prevent notices and errors from invalid method calls 177 179 * 178 * @since bbPress (r4252)180 * @since 2.2.0 bbPress (r4252) 179 181 */ 180 182 public function __call( $name = '', $args = array() ) { unset( $name, $args ); return null; } … … 186 188 * filtered to allow for early overriding. 187 189 * 188 * @since bbPress (r2626) 190 * @since 2.0.0 bbPress (r2626) 191 * 189 192 * @access private 190 193 * @uses plugin_dir_path() To generate bbPress plugin path … … 287 290 * Include required files 288 291 * 289 * @since bbPress (r2626) 292 * @since 2.0.0 bbPress (r2626) 293 * 290 294 * @access private 291 295 * @uses is_admin() If in WordPress admin, load additional file … … 360 364 * Setup the default hooks and actions 361 365 * 362 * @since bbPress (r2644) 366 * @since 2.0.0 bbPress (r2644) 367 * 363 368 * @access private 364 369 * @uses add_action() To add various actions … … 409 414 * later date we need to automate this, and API will need to be built. 410 415 * 411 * @since bbPress (r3829)416 * @since 2.1.0 bbPress (r3829) 412 417 */ 413 418 public function register_theme_packages() { … … 431 436 * Setup the default bbPress theme compatibility location. 432 437 * 433 * @since bbPress (r3778)438 * @since 2.1.0 bbPress (r3778) 434 439 */ 435 440 public function setup_theme() { … … 453 458 * translation files, please use the global language folder. 454 459 * 455 * @since bbPress (r2596)460 * @since 2.0.0 bbPress (r2596) 456 461 * 457 462 * @uses apply_filters() Calls 'plugin_locale' with {@link get_locale()} value … … 481 486 * Setup the post types for forums, topics and replies 482 487 * 483 * @since bbPress (r2597) 488 * @since 2.0.0 bbPress (r2597) 489 * 484 490 * @uses register_post_type() To register the post types 485 491 * @uses apply_filters() Calls various filters to modify the arguments … … 570 576 * replies can be viewed from within the theme. 571 577 * 572 * @since bbPress (r2727) 578 * @since 2.0.0 bbPress (r2727) 579 * 573 580 * @uses register_post_status() To register post statuses 574 581 * @uses $wp_post_statuses To modify trash and private statuses … … 655 662 * Register the topic tag and forum moderator taxonomies 656 663 * 657 * @since bbPress (r2464) Added bbp_get_topic_tag_tax_id() taxonomy658 * @since bbPress (r5834) Added bbp_get_forum_mod_tax_id() taxonomy664 * @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 659 666 * 660 667 * @uses register_taxonomy() To register the taxonomy … … 713 720 * Register the bbPress views 714 721 * 715 * @since bbPress (r2789) 722 * @since 2.0.0 bbPress (r2789) 723 * 716 724 * @uses bbp_register_view() To register the views 717 725 */ … … 749 757 * Register the bbPress shortcodes 750 758 * 751 * @since bbPress (r3031)759 * @since 2.0.0 bbPress (r3031) 752 760 * 753 761 * @uses BBP_Shortcodes … … 765 773 * avoid xmlrpc errors. 766 774 * 767 * @since bbPress (r2697) 775 * @since 2.0.0 bbPress (r2697) 776 * 768 777 * @uses wp_get_current_user() 769 778 */ … … 777 786 * Add the bbPress-specific rewrite tags 778 787 * 779 * @since bbPress (r2753) 788 * @since 2.0.0 bbPress (r2753) 789 * 780 790 * @uses add_rewrite_tag() To add the rewrite tags 781 791 */ … … 798 808 * - User profiles 799 809 * 800 * @since bbPress (r2688) 810 * @since 2.0.0 bbPress (r2688) 811 * 801 812 * @todo Extract into an API 802 813 */ … … 897 908 * - Search 898 909 * 899 * @since bbPress (r4930)910 * @since 2.4.0 bbPress (r4930) 900 911 */ 901 912 public static function add_permastructs() {
Note: See TracChangeset
for help on using the changeset viewer.