Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/29/2016 04:25:54 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Metaboxes: Add metaboxes for viewing favorites & subscriptions of topics & replies.

  • New functions for outputting avatars of users who have favved or subbed
  • Use the $post parameter that's passed in, rather than using get_the_ID() again
  • Use require_once as a language construct vs. include_once() as a function
  • Pass $post object through to metabox subsequent filters vs just the ID

See #2959.

File:
1 edited

Legend:

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

    r6190 r6197  
    341341     */
    342342    public function attributes_metabox() {
    343 
    344343        add_meta_box(
    345344            'bbp_reply_attributes',
     
    350349            'high'
    351350        );
    352 
    353         do_action( 'bbp_reply_attributes_metabox' );
    354351    }
    355352
     
    366363     * @uses bbp_get_reply_post_type() To get the reply post type
    367364     * @uses add_meta_box() To add the metabox
    368      * @uses do_action() Calls 'bbp_author_metabox' with the topic/reply
    369      *                    id
    370365     */
    371366    public function author_metabox() {
     
    385380            'high'
    386381        );
    387 
    388         do_action( 'bbp_author_metabox', get_the_ID() );
    389382    }
    390383
Note: See TracChangeset for help on using the changeset viewer.