Changeset 5440 for trunk/src/includes/admin/functions.php
- Timestamp:
- 07/09/2014 11:58:59 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/functions.php
r5401 r5440 54 54 */ 55 55 function bbp_admin_custom_menu_order( $menu_order = false ) { 56 if ( false === bbpress()->admin->show_separator ) 56 if ( false === bbpress()->admin->show_separator ) { 57 57 return $menu_order; 58 } 58 59 59 60 return true; … … 72 73 73 74 // Bail if user cannot see any top level bbPress menus 74 if ( empty( $menu_order ) || ( false === bbpress()->admin->show_separator ) ) 75 if ( empty( $menu_order ) || ( false === bbpress()->admin->show_separator ) ) { 75 76 return $menu_order; 77 } 76 78 77 79 // Initialize our custom order array … … 131 133 132 134 // Bail if not on an admin page and not getting a sample permalink 133 if ( !empty( $sample ) && is_admin() && bbp_is_custom_post_type() ) 135 if ( !empty( $sample ) && is_admin() && bbp_is_custom_post_type() ) { 134 136 return urldecode( $post_link ); 137 } 135 138 136 139 // Return post link … … 175 178 */ 176 179 function bbp_do_uninstall( $site_id = 0 ) { 177 if ( empty( $site_id ) ) 180 if ( empty( $site_id ) ) { 178 181 $site_id = get_current_blog_id(); 182 } 179 183 180 184 switch_to_blog( $site_id ); … … 241 245 242 246 // This tweaks the Tools subnav menu to only show one bbPress menu item 243 if ( ! in_array( $plugin_page, array( 'bbp-settings' ) ) ) 247 if ( ! in_array( $plugin_page, array( 'bbp-settings' ) ) ) { 244 248 $submenu_file = 'bbp-repair'; 249 } 245 250 } 246 251
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)