Changeset 762206
- Timestamp:
- 08/26/2013 02:29:56 AM (13 years ago)
- File:
-
- 1 edited
-
bbpress-post-topics/trunk/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbpress-post-topics/trunk/index.php
r751131 r762206 242 242 243 243 $bbppt_options = $this->get_topic_options_for_post( $post_ID ); 244 $create_topic = ( isset($bbppt_options['enabled']) && $bbppt_options['enabled']);244 $create_topic = ( ! empty( $bbppt_options['enabled'] ) ); 245 245 $use_defaults = ( isset( $bbppt_options['use_defaults'] ) && $bbppt_options['use_defaults'] ); 246 246 … … 254 254 255 255 $bbppt_options = $this->get_draft_settings( $post ); 256 $create_topic = ( isset($bbppt_options['enabled']) && $bbppt_options['enabled'] == 'open');256 $create_topic = ( ! empty( $bbppt_options['enabled'] ) ); 257 257 $use_defaults = ( isset( $bbppt_options['use_defaults'] ) && $bbppt_options['use_defaults'] ); 258 258 … … 266 266 267 267 $bbppt_options = get_option( 'bbpress_discussion_defaults' ); 268 $create_topic = ( isset($bbppt_options['enabled']) && $bbppt_options['enabled'] == 'on');268 $create_topic = ( ! empty( $bbppt_options['enabled'] ) ); 269 269 $use_defaults = true; 270 $bbppt_options['use_defaults'] = $use_defaults; 270 271 271 272 bbppt_debug( 'Processing a topic for unattended post ' . $post_ID . ' with the following settings: ' . print_r( $bbppt_options, true ) ); … … 580 581 ); 581 582 582 $ex_options = array_merge( $ex_options, get_option( 'bbpress_discussion_defaults' ));583 $ex_options = wp_parse_args( get_option( 'bbpress_discussion_defaults' ), $ex_options ); 583 584 584 585 $forum_dropdown_options = array(
Note: See TracChangeset
for help on using the changeset viewer.