WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/21/2010 05:17:58 PM (9 years ago)
Author:
ryan
Message:

Translations in title attributes require esc_attr().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r17082 r17102  
    954954                    $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
    955955                    echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
    956                     echo '<div class="handlediv" title="' . __('Click to toggle') . '"><br /></div>';
     956                    echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>';
    957957                    echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
    958958                    echo '<div class="inside">' . "\n";
Note: See TracChangeset for help on using the changeset viewer.