Changeset 45583 for trunk/src/wp-admin/menu-header.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu-header.php
r44331 r45583 109 109 $class = $class ? ' class="' . join( ' ', $class ) . '"' : ''; 110 110 $id = ! empty( $item[5] ) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : ''; 111 $img = $img_style = ''; 111 $img = ''; 112 $img_style = ''; 112 113 $img_class = ' dashicons-before'; 113 114 … … 153 154 $menu_hook = get_plugin_page_hook( $submenu_items[0][2], $item[2] ); 154 155 $menu_file = $submenu_items[0][2]; 155 if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) { 156 $pos = strpos( $menu_file, '?' ); 157 if ( false !== $pos ) { 156 158 $menu_file = substr( $menu_file, 0, $pos ); 157 159 } … … 165 167 $menu_hook = get_plugin_page_hook( $item[2], 'admin.php' ); 166 168 $menu_file = $item[2]; 167 if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) { 169 $pos = strpos( $menu_file, '?' ); 170 if ( false !== $pos ) { 168 171 $menu_file = substr( $menu_file, 0, $pos ); 169 172 } … … 197 200 $menu_file = $item[2]; 198 201 199 if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) { 202 $pos = strpos( $menu_file, '?' ); 203 if ( false !== $pos ) { 200 204 $menu_file = substr( $menu_file, 0, $pos ); 201 205 } … … 227 231 $menu_hook = get_plugin_page_hook( $sub_item[2], $item[2] ); 228 232 $sub_file = $sub_item[2]; 229 if ( false !== ( $pos = strpos( $sub_file, '?' ) ) ) { 233 $pos = strpos( $sub_file, '?' ); 234 if ( false !== $pos ) { 230 235 $sub_file = substr( $sub_file, 0, $pos ); 231 236 }
Note: See TracChangeset
for help on using the changeset viewer.