WordPress.org

Plugin Directory

Changeset 388696


Ignore:
Timestamp:
05/24/11 20:07:57 (3 years ago)
Author:
ozh
Message:

3.5.4
Fixed: deprecated function calls removed

Location:
ozh-admin-drop-down-menu/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ozh-admin-drop-down-menu/trunk/inc/core.php

    r356906 r388696  
    409409            $k = str_replace('oam_','',$k); 
    410410            if (array_key_exists($k, $defaults)) { 
    411                 $options[$k] = attribute_escape($v); 
     411                $options[$k] = esc_attr( $v ); 
    412412            } 
    413413        } 
  • ozh-admin-drop-down-menu/trunk/inc/options.php

    r298644 r388696  
    268268    <li><?php echo wp_ozh_adminmenu__('you want all settings to be reverted to their default values');?></li> 
    269269    </ul> 
    270     <p class="submit" style="border-top:0px;padding:0;"><input style="color:red" name="submit" value="<?php echo wp_ozh_adminmenu__('Reset Settings');?>" onclick="return(confirm('<?php echo js_escape(wp_ozh_adminmenu__('Really do?'));?>'))" type="submit" /></p> 
     270    <p class="submit" style="border-top:0px;padding:0;"><input style="color:red" name="submit" value="<?php echo wp_ozh_adminmenu__('Reset Settings');?>" onclick="return(confirm('<?php echo esc_js(wp_ozh_adminmenu__('Really do?'));?>'))" type="submit" /></p> 
    271271    <p><?php echo wp_ozh_adminmenu__('There is no undo, so be very sure you want to click the button!');?></p> 
    272272     
     
    278278 
    279279// Sanitize string for display: escape HTML but preserve UTF8 (or whatever) 
    280 function wp_ozh_adminmenu_sanitize($string) { 
    281     return stripslashes(attribute_escape($string)); 
     280function wp_ozh_adminmenu_sanitize( $string ) { 
     281    return stripslashes( esc_attr( $string ) ); 
    282282    //return stripslashes(htmlentities($string, ENT_COMPAT, get_bloginfo('charset'))); 
    283283} 
  • ozh-admin-drop-down-menu/trunk/wp_ozh_adminmenu.php

    r358839 r388696  
    44Plugin URI: http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/ 
    55Description: All admin links available in a neat horizontal drop down menu. Saves lots of screen real estate! <strong>For WordPress 3.0+</strong> 
    6 Version: 3.5.3 
     6Version: 3.5.4 
    77Author: Ozh 
    88Author URI: http://ozh.org/ 
     
    108108 * 3.5.2:     Added: version constant 
    109109 * 3.5.3:     Removed: a console.debug might be problematic 
     110 * 3.5.4:     Fixed: deprecated function calls removed 
    110111 */ 
    111112 
    112113 
    113 define( 'OZH_MENU_VER', '3.5.3' ); 
     114define( 'OZH_MENU_VER', '3.5.4' ); 
    114115  
    115116/***** Hook things in when visiting an admin page. When viewing a blog page, nothing even loads in memory. ****/ 
Note: See TracChangeset for help on using the changeset viewer.