Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/02/2013 07:20:49 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Normalize forum, topic, and reply dropdown form fields and associated functions. Includes several new functions with _get_ equivalents to replace incorrectly named _select() functions.

First pass at adding custom topic status handling. Props jkudish. See #2187.

Also replaces $wpdb->update() calls with wp_update_post() in associated functions. Fixes #2351.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/extend/buddypress/groups.php

    r5056 r5060  
    749749
    750750                                        // Strip the super stickies from topic query
    751                                         add_filter( 'bbp_get_super_stickies',                 array( $this, 'no_super_stickies'  ), 10, 1 );
     751                                        add_filter( 'bbp_get_super_stickies', array( $this, 'no_super_stickies'  ), 10, 1 );
    752752
    753753                                        // Unset the super sticky option on topic form
    754                                         add_filter( 'bbp_after_topic_type_select_parse_args', array( $this, 'unset_super_sticky' ), 10, 1 );
     754                                        add_filter( 'bbp_get_topic_types',    array( $this, 'unset_super_sticky' ), 10, 1 );
    755755
    756756                                        // Query forums and show them if they exist
     
    808808
    809809                                                // Unset the super sticky link on edit topic template
    810                                                 add_filter( 'bbp_after_topic_type_select_parse_args', array( $this, 'unset_super_sticky' ), 10, 1 );
     810                                                add_filter( 'bbp_get_topic_types', array( $this, 'unset_super_sticky' ), 10, 1 );
    811811
    812812                                                // Set the edit switches
     
    922922         */
    923923        public function unset_super_sticky( $args = array() ) {
    924                 $args['super_text'] = '';
     924                if ( isset( $args['super'] ) ) {
     925                        unset( $args['super'] );
     926                }
    925927                return $args;
    926928        }
Note: See TracChangeset for help on using the changeset viewer.