Changeset 5440 for trunk/src/includes/admin/settings.php
- Timestamp:
- 07/09/2014 11:58:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/settings.php
r5365 r5440 429 429 430 430 // Bail if section is empty 431 if ( empty( $section_id ) ) 431 if ( empty( $section_id ) ) { 432 432 return false; 433 } 433 434 434 435 $fields = bbp_admin_get_settings_fields(); … … 855 856 856 857 // Flush rewrite rules when this section is saved 857 if ( isset( $_GET['settings-updated'] ) && isset( $_GET['page'] ) ) 858 flush_rewrite_rules(); ?> 858 if ( isset( $_GET['settings-updated'] ) && isset( $_GET['page'] ) ) { 859 flush_rewrite_rules(); 860 } ?> 859 861 860 862 <p><?php esc_html_e( 'Customize your Forums root. Partner with a WordPress Page and use Shortcodes for more flexibility.', 'bbpress' ); ?></p> … … 873 875 ?> 874 876 875 877 <input name="_bbp_root_slug" id="_bbp_root_slug" type="text" class="regular-text code" value="<?php bbp_form_option( '_bbp_root_slug', 'forums', true ); ?>"<?php bbp_maybe_admin_setting_disabled( '_bbp_root_slug' ); ?> /> 876 878 877 879 <?php … … 1297 1299 1298 1300 // Bail if no directory was found (how did this happen?) 1299 if ( empty( $curdir ) ) 1301 if ( empty( $curdir ) ) { 1300 1302 return; 1303 } 1301 1304 1302 1305 // Loop through files in the converters folder and assemble some options … … 1535 1538 1536 1539 // Bail if current screen could not be found 1537 if ( empty( $current_screen ) ) 1540 if ( empty( $current_screen ) ) { 1538 1541 return; 1542 } 1539 1543 1540 1544 // Overview … … 1647 1651 1648 1652 // Fallback to default 1649 if ( empty( $value ) ) 1653 if ( empty( $value ) ) { 1650 1654 $value = $default; 1655 } 1651 1656 1652 1657 // Allow plugins to further filter the output
Note: See TracChangeset
for help on using the changeset viewer.