Make WordPress Core


Ignore:
Timestamp:
04/28/2009 06:37:51 AM (17 years ago)
Author:
ryan
Message:

attr escaping. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r11109 r11110  
    157157?>
    158158        </select>
    159         <input type="submit" name="Submit" value="<?php _e('Select') ?>" class="button" />
     159        <input type="submit" name="Submit" value="<?php _ea('Select') ?>" class="button" />
    160160    </form>
    161161</div>
     
    205205        <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1" class="codepress <?php echo $codepress_lang ?>"><?php echo $content ?></textarea>
    206206        <input type="hidden" name="action" value="update" />
    207         <input type="hidden" name="file" value="<?php echo $file ?>" />
    208         <input type="hidden" name="plugin" value="<?php echo $plugin ?>" />
     207        <input type="hidden" name="file" value="<?php echo attr($file) ?>" />
     208        <input type="hidden" name="plugin" value="<?php echo attr($plugin) ?>" />
    209209        </div>
    210210        <?php if ( count( $functions ) ) : ?>
    211         <div id="documentation"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value=" <?php echo attr(__( 'Lookup' )) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /></div>
     211        <div id="documentation"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php _ea( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /></div>
    212212        <?php endif; ?>
    213213<?php if ( is_writeable($real_file) ) : ?>
     
    218218    <?php
    219219        if ( isset($_GET['phperror']) )
    220             echo "<input type='hidden' name='phperror' value='1' /><input type='submit' name='submit' class='button-primary' value='" . __('Update File and Attempt to Reactivate') . "' tabindex='2' />";
    221         else
    222             echo "<input type='submit' name='submit' class='button-primary' value='" . __('Update File') . "' tabindex='2' />";
     220            echo "<input type='hidden' name='phperror' value='1' /><input type='submit' name='submit' class='button-primary' value='" . _a('Update File and Attempt to Reactivate') . "' tabindex='2' />";
     221        else
     222            echo "<input type='submit' name='submit' class='button-primary' value='" . _a('Update File') . "' tabindex='2' />";
    223223    ?>
    224224    </p>
Note: See TracChangeset for help on using the changeset viewer.