WordPress.org

Make WordPress Core

Ticket #9432: qcop-r00-ampersand-andthelike-plugin-editor.patch

File qcop-r00-ampersand-andthelike-plugin-editor.patch, 2.4 KB (added by hakre, 5 years ago)

plugin editor multiple ampersands and a missing ID (accidently taken over from the theme editor, had to be named plugin)

  • wp-admin/plugin-editor.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress
     
    123123<h2><?php echo wp_specialchars( $title ); ?></h2> 
    124124<div class="bordertitle"> 
    125125        <form id="themeselector" action="plugin-editor.php" method="post"> 
    126                 <strong><label for="theme"><?php _e('Select plugin to edit:'); ?> </label></strong> 
     126                <strong><label for="plugin"><?php _e('Select plugin to edit:'); ?> </label></strong> 
    127127                <select name="plugin" id="plugin"> 
    128128<?php 
    129129        foreach ($plugins as $plugin_key => $a_plugin) { 
     
    162162 
    163163        <ul> 
    164164<?php foreach($plugin_files as $plugin_file) : ?> 
    165                 <li<?php echo $file == $plugin_file ? ' class="highlight"' : ''; ?>><a href="plugin-editor.php?file=<?php echo $plugin_file; ?>&plugin=<?php echo $plugin; ?>"><?php echo $plugin_file ?></a></li> 
     165                <li<?php echo $file == $plugin_file ? ' class="highlight"' : ''; ?>><a href="plugin-editor.php?file=<?php echo $plugin_file; ?>&amp;plugin=<?php echo $plugin; ?>"><?php echo $plugin_file ?></a></li> 
    166166<?php endforeach; ?> 
    167167        </ul> 
    168168        </div> 
     
    175175                <input type="hidden" name="plugin" value="<?php echo $plugin ?>" /> 
    176176                </div> 
    177177                <?php if ( count( $functions ) ) : ?> 
    178                 <div id="documentation"><label for="docs-list">Documentation:</label> <?php echo $docs_select ?> <input type="button" class="button" value=" <?php _e( '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> 
     178                <div id="documentation"><label for="docs-list">Documentation:</label> <?php echo $docs_select ?> <input type="button" class="button" value=" <?php _e( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" /></div> 
    179179                <?php endif; ?> 
    180180<?php if ( is_writeable($real_file) ) : ?> 
    181181        <?php if ( in_array($file, (array) get_option('active_plugins')) ) { ?>