WordPress.org

Make WordPress Core

Changeset 15338


Ignore:
Timestamp:
06/27/10 04:21:33 (4 years ago)
Author:
nacin
Message:

Increment first, to avoid ++ later on when it conflicts with [25].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r15193 r15338  
    124124foreach ( (array) get_post_types( array('show_ui' => true, '_builtin' => false) ) as $ptype ) { 
    125125    $ptype_obj = get_post_type_object( $ptype ); 
    126     $ptype_menu_position = is_int( $ptype_obj->menu_position ) ? $ptype_obj->menu_position : $_wp_last_object_menu++; // If we're to use $_wp_last_object_menu, increment it first. 
     126    $ptype_menu_position = is_int( $ptype_obj->menu_position ) ? $ptype_obj->menu_position : ++$_wp_last_object_menu; // If we're to use $_wp_last_object_menu, increment it first. 
    127127    $ptype_for_id = sanitize_html_class( $ptype ); 
    128128    if ( is_string( $ptype_obj->menu_icon ) ) { 
Note: See TracChangeset for help on using the changeset viewer.