Changeset 5908 for trunk/src/includes/admin/settings.php
- Timestamp:
- 08/11/2015 08:17:53 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/settings.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/settings.php
r5884 r5908 442 442 443 443 $fields = bbp_admin_get_settings_fields(); 444 $retval = isset( $fields[$section_id] ) ? $fields[$section_id] : false; 444 $retval = isset( $fields[ $section_id ] ) 445 ? $fields[ $section_id ] 446 : false; 445 447 446 448 return (array) apply_filters( 'bbp_admin_get_settings_fields_for_section', $retval, $section_id ); … … 1630 1632 */ 1631 1633 function bbp_maybe_admin_setting_disabled( $option_key = '' ) { 1632 disabled( isset( bbpress()->options[ $option_key] ) );1634 disabled( isset( bbpress()->options[ $option_key ] ) ); 1633 1635 } 1634 1636 … … 1758 1760 $page_base = $page . '_base'; 1759 1761 $page_title = sprintf( __( '%s page', 'bbpress' ), $page_data->title ); 1760 $core_slugs[$page_base] = array( 'name' => $page_title, 'default' => $page_data->slug, 'context' => 'BuddyPress' ); 1762 $core_slugs[ $page_base ] = array( 1763 'name' => $page_title, 1764 'default' => $page_data->slug, 1765 'context' => 'BuddyPress' 1766 ); 1761 1767 } 1762 1768 }
Note: See TracChangeset
for help on using the changeset viewer.