Skip to:
Content

bbPress.org

Changeset 2597


Ignore:
Timestamp:
11/15/2010 04:29:30 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Revert to colloquial barbarisms (content type/post type)

Location:
branches/plugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-loader.php

    r2596 r2597  
    3131
    3232                // 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  );
    3434                add_action( 'bbp_init',       array ( $this, 'register_taxonomies'      ), 8  );
    3535                add_action( 'bbp_init',       array ( $this, 'register_textdomain',     ), 10 );
     
    115115
    116116        /**
    117          * register_content_types ()
     117         * register_post_types ()
    118118         *
    119          * Setup the content types
     119         * Setup the post types
    120120         *
    121121         * @since bbPress (r2464)
    122122         */
    123         function register_content_types () {
    124                 do_action ( 'bbp_register_content_types' );
     123        function register_post_types () {
     124                do_action ( 'bbp_register_post_types' );
    125125        }
    126126
  • branches/plugin/bbpress.php

    r2596 r2597  
    6666
    6767                // 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 );
    6969
    7070                // Register taxonomies
     
    9090
    9191                // 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' );
    9595                $this->topic_tag_id   = apply_filters( 'bbp_topic_tag_id',       'bbp_topic_tag' );
    9696
     
    176176
    177177        /**
    178          * register_content_types ()
    179          *
    180          * Setup the post types and taxonomy for forums
    181          *
    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 () {
    185185
    186186                // Forum labels
     
    219219                register_post_type (
    220220                        $this->forum_id,
    221                         apply_filters( 'bbp_register_forum_content_type',
     221                        apply_filters( 'bbp_register_forum_post_type',
    222222                                array (
    223223                                        'labels'          => $forum_labels,
     
    271271                register_post_type (
    272272                        $this->topic_id,
    273                         apply_filters( 'bbp_register_topic_content_type',
     273                        apply_filters( 'bbp_register_topic_post_type',
    274274                                array (
    275275                                        'labels'          => $topic_labels,
     
    323323                register_post_type (
    324324                        $this->reply_id,
    325                         apply_filters( 'bbp_register_reply_content_type',
     325                        apply_filters( 'bbp_register_reply_post_type',
    326326                                array (
    327327                                        'labels'          => $reply_labels,
     
    377377                        $this->topic_tag_id, // The topic tag ID
    378378                        $this->topic_id,     // The topic content type
    379                         apply_filters( 'bbp_register_topic_tag',
     379                        apply_filters( 'bbp_register_topic_taxonomy',
    380380                                array (
    381381                                        'labels'                => $topic_tag_labels,
Note: See TracChangeset for help on using the changeset viewer.