WordPress.org

Make WordPress Core

Changeset 7281


Ignore:
Timestamp:
03/14/08 06:48:23 (7 years ago)
Author:
ryan
Message:

Avoid integer overflow with widget IDs. Props mdawaffe. fixes #6210

File:
1 edited

Legend:

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

    r7219 r7281  
    252252        <p class="submit"> 
    253253            <input type="hidden" id='sidebar' name='sidebar' value="<?php echo $sidebar; ?>" /> 
    254             <input type="hidden" id="generated-time" name="generated-time" value="<?php echo time(); ?>" /> 
     254            <input type="hidden" id="generated-time" name="generated-time" value="<?php echo time() - 1199145600; // Jan 1, 2008 ?>" /> 
    255255            <input type="submit" name="save-widgets" value="<?php _e( 'Save Changes' ); ?>" /> 
    256256        </p> 
Note: See TracChangeset for help on using the changeset viewer.