Changeset 11109 for trunk/wp-admin/plugin-editor.php
- Timestamp:
- 04/28/2009 05:58:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugin-editor.php
r10879 r11109 117 117 $docs_select .= '<option value="">' . __( 'Function Name...' ) . '</option>'; 118 118 foreach ( $functions as $function) { 119 $docs_select .= '<option value="' . attr ibute_escape( $function ) . '">' . htmlspecialchars( $function ) . '()</option>';119 $docs_select .= '<option value="' . attr( $function ) . '">' . htmlspecialchars( $function ) . '()</option>'; 120 120 } 121 121 $docs_select .= '</select>'; … … 133 133 <?php 134 134 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?> 135 <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo attr ibute_escape($file); ?>&_wpnonce=<?php echo attribute_escape($_GET['_error_nonce']); ?>"></iframe>135 <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo attr($file); ?>&_wpnonce=<?php echo attr($_GET['_error_nonce']); ?>"></iframe> 136 136 <?php } ?> 137 137 </div> … … 151 151 else 152 152 $selected = ''; 153 $plugin_name = attr ibute_escape($plugin_name);154 $plugin_key = attr ibute_escape($plugin_key);153 $plugin_name = attr($plugin_name); 154 $plugin_key = attr($plugin_key); 155 155 echo "\n\t<option value=\"$plugin_key\" $selected>$plugin_name</option>"; 156 156 } … … 209 209 </div> 210 210 <?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 ibute_escape(__( '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 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> 212 212 <?php endif; ?> 213 213 <?php if ( is_writeable($real_file) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.