Changeset 2597
- Timestamp:
- 11/15/2010 04:29:30 AM (16 years ago)
- Location:
- branches/plugin
- Files:
-
- 2 edited
-
bbp-includes/bbp-loader.php (modified) (2 diffs)
-
bbpress.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-loader.php
r2596 r2597 31 31 32 32 // Attach to bbp_init. 33 add_action( 'bbp_init', array ( $this, 'register_ content_types'), 6 );33 add_action( 'bbp_init', array ( $this, 'register_post_types' ), 6 ); 34 34 add_action( 'bbp_init', array ( $this, 'register_taxonomies' ), 8 ); 35 35 add_action( 'bbp_init', array ( $this, 'register_textdomain', ), 10 ); … … 115 115 116 116 /** 117 * register_ content_types ()117 * register_post_types () 118 118 * 119 * Setup the content types119 * Setup the post types 120 120 * 121 121 * @since bbPress (r2464) 122 122 */ 123 function register_ content_types () {124 do_action ( 'bbp_register_ content_types' );123 function register_post_types () { 124 do_action ( 'bbp_register_post_types' ); 125 125 } 126 126 -
branches/plugin/bbpress.php
r2596 r2597 66 66 67 67 // Register content types 68 add_action( 'bbp_register_ content_types', array ( $this, 'register_content_types' ), 10, 2 );68 add_action( 'bbp_register_post_types', array ( $this, 'register_post_types' ), 10, 2 ); 69 69 70 70 // Register taxonomies … … 90 90 91 91 // Unique identifiers 92 $this->forum_id = apply_filters( 'bbp_forum_ content_type', 'bbp_forum' );93 $this->topic_id = apply_filters( 'bbp_topic_ content_type', 'bbp_topic' );94 $this->reply_id = apply_filters( 'bbp_reply_ content_type', 'bbp_reply' );92 $this->forum_id = apply_filters( 'bbp_forum_post_type', 'bbp_forum' ); 93 $this->topic_id = apply_filters( 'bbp_topic_post_type', 'bbp_topic' ); 94 $this->reply_id = apply_filters( 'bbp_reply_post_type', 'bbp_reply' ); 95 95 $this->topic_tag_id = apply_filters( 'bbp_topic_tag_id', 'bbp_topic_tag' ); 96 96 … … 176 176 177 177 /** 178 * register_ content_types ()179 * 180 * Setup the post types and taxonomyfor forums181 * 182 * @todo Finish up the post type admin area with messages, columns, etc...*183 */ 184 function register_ content_types () {178 * register_post_types () 179 * 180 * Setup the content types and taxonomies for forums 181 * 182 * @todo messages 183 */ 184 function register_post_types () { 185 185 186 186 // Forum labels … … 219 219 register_post_type ( 220 220 $this->forum_id, 221 apply_filters( 'bbp_register_forum_ content_type',221 apply_filters( 'bbp_register_forum_post_type', 222 222 array ( 223 223 'labels' => $forum_labels, … … 271 271 register_post_type ( 272 272 $this->topic_id, 273 apply_filters( 'bbp_register_topic_ content_type',273 apply_filters( 'bbp_register_topic_post_type', 274 274 array ( 275 275 'labels' => $topic_labels, … … 323 323 register_post_type ( 324 324 $this->reply_id, 325 apply_filters( 'bbp_register_reply_ content_type',325 apply_filters( 'bbp_register_reply_post_type', 326 326 array ( 327 327 'labels' => $reply_labels, … … 377 377 $this->topic_tag_id, // The topic tag ID 378 378 $this->topic_id, // The topic content type 379 apply_filters( 'bbp_register_topic_ta g',379 apply_filters( 'bbp_register_topic_taxonomy', 380 380 array ( 381 381 'labels' => $topic_tag_labels,
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)