Make WordPress Core


Ignore:
Timestamp:
02/13/2010 10:35:10 AM (15 years ago)
Author:
nacin
Message:

Don't use deprecated functions. see #11388

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-sites.php

    r13039 r13106  
    169169                                if ( is_serialized($option->option_value) ) {
    170170                                    if ( is_serialized_string($option->option_value) ) {
    171                                         $option->option_value = wp_specialchars(maybe_unserialize($option->option_value), 'single');
     171                                        $option->option_value = esc_html(maybe_unserialize($option->option_value), 'single');
    172172                                    } else {
    173173                                        $option->option_value = "SERIALIZED DATA";
     
    211211                    $out = '';
    212212                    foreach ( $themes as $key => $theme ) {
    213                         $theme_key = wp_specialchars( $theme['Stylesheet'] );
     213                        $theme_key = esc_html( $theme['Stylesheet'] );
    214214                        if ( ! isset($allowed_themes[$theme_key] ) ) {
    215215                            $checked = ( isset($blog_allowed_themes[ $theme_key ]) ) ? 'checked="checked"' : '';
     
    254254                                    <select name="role[<?php echo $val->user_id ?>]" id="new_role"><?php
    255255                                        foreach ( $editblog_roles as $role => $role_assoc ){
    256                                             $name = translate_with_context($role_assoc['name']);
     256                                            $name = translate_user_role($role_assoc['name']);
    257257                                            $selected = ( $role == $existing_role ) ? 'selected="selected"' : '';
    258258                                            echo "<option {$selected} value=\"" . esc_attr($role) . "\">{$name}</option>";
Note: See TracChangeset for help on using the changeset viewer.