Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/21/2013 08:53:47 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Normalize topic and reply admin method names. Some of them were still prefixed from back when all admin methods were in 1 mega-class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/replies.php

    r4964 r4991  
    6565
    6666                // Reply column headers.
    67                 add_filter( 'manage_' . $this->post_type . '_posts_columns',  array( $this, 'replies_column_headers' ) );
     67                add_filter( 'manage_' . $this->post_type . '_posts_columns',  array( $this, 'column_headers' ) );
    6868
    6969                // Reply columns (in post row)
    70                 add_action( 'manage_' . $this->post_type . '_posts_custom_column',  array( $this, 'replies_column_data' ), 10, 2 );
    71                 add_filter( 'post_row_actions',                                     array( $this, 'replies_row_actions' ), 10, 2 );
     70                add_action( 'manage_' . $this->post_type . '_posts_custom_column',  array( $this, 'column_data' ), 10, 2 );
     71                add_filter( 'post_row_actions',                                     array( $this, 'row_actions' ), 10, 2 );
    7272
    7373                // Reply metabox actions
    74                 add_action( 'add_meta_boxes', array( $this, 'reply_attributes_metabox'      ) );
    75                 add_action( 'save_post',      array( $this, 'reply_attributes_metabox_save' ) );
     74                add_action( 'add_meta_boxes', array( $this, 'attributes_metabox'      ) );
     75                add_action( 'save_post',      array( $this, 'attributes_metabox_save' ) );
    7676
    7777                // Check if there are any bbp_toggle_reply_* requests on admin_init, also have a message displayed
    … …  
    247247         * @uses do_action() Calls 'bbp_reply_attributes_metabox'
    248248         */
    249         public function reply_attributes_metabox() {
     249        public function attributes_metabox() {
    250250
    251251                if ( $this->bail() ) return;
    … …  
    275275         * @return int Parent id
    276276         */
    277         public function reply_attributes_metabox_save( $reply_id ) {
     277        public function attributes_metabox_save( $reply_id ) {
    278278
    279279                if ( $this->bail() ) return $reply_id;
    … …  
    561561         * @return array $columns bbPress reply columns
    562562         */
    563         public function replies_column_headers( $columns ) {
     563        public function column_headers( $columns ) {
    564564
    565565                if ( $this->bail() ) return $columns;
    … …  
    605605         *                    column and reply id
    606606         */
    607         public function replies_column_data( $column, $reply_id ) {
     607        public function column_data( $column, $reply_id ) {
    608608
    609609                if ( $this->bail() ) return;
    … …  
    717717         * @return array $actions Actions
    718718         */
    719         public function replies_row_actions( $actions, $reply ) {
     719        public function row_actions( $actions, $reply ) {
    720720
    721721                if ( $this->bail() ) return $actions;
Note: See TracChangeset for help on using the changeset viewer.