Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/19/2017 03:25:37 AM (7 years ago)
Author:
johnjamesjacoby
Message:

in_array(): be strict whenever possible.

Use wp_parse_id_list() on certain array values to ensure proper results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/common.php

    r6284 r6415  
    106106
    107107        // Skip our menu items
    108         } elseif ( ! in_array( $item, $custom_menus ) ) {
     108        } elseif ( ! in_array( $item, $custom_menus, true ) ) {
    109109            $bbp_menu_order[] = $item;
    110110        }
     
    247247
    248248    // This tweaks the Tools subnav menu to only show one bbPress menu item
    249     if ( ! in_array( $plugin_page, array( 'bbp-settings' ) ) ) {
     249    if ( ! in_array( $plugin_page, array( 'bbp-settings' ), true ) ) {
    250250        $submenu_file = 'bbp-repair';
    251251    }
Note: See TracChangeset for help on using the changeset viewer.