Changeset 11204 for trunk/wp-admin/theme-editor.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r11173 r11204 95 95 96 96 $docs_select = '<select name="docs-list" id="docs-list">'; 97 $docs_select .= '<option value="">' . _a( 'Function Name...' ) . '</option>';97 $docs_select .= '<option value="">' . esc_attr__( 'Function Name...' ) . '</option>'; 98 98 foreach ( $functions as $function ) { 99 $docs_select .= '<option value="' . attr( urlencode( $function ) ) . '">' . htmlspecialchars( $function ) . '()</option>';99 $docs_select .= '<option value="' . esc_attr( urlencode( $function ) ) . '">' . htmlspecialchars( $function ) . '()</option>'; 100 100 } 101 101 $docs_select .= '</select>'; … … 126 126 if ($theme_name == $theme) $selected = " selected='selected'"; 127 127 else $selected = ''; 128 $theme_name = attr($theme_name);128 $theme_name = esc_attr($theme_name); 129 129 echo "\n\t<option value=\"$theme_name\" $selected>$theme_name</option>"; 130 130 } 131 131 ?> 132 132 </select> 133 <input type="submit" name="Submit" value="<?php _ea('Select') ?>" class="button" />133 <input type="submit" name="Submit" value="<?php esc_attr_e('Select') ?>" class="button" /> 134 134 </form> 135 135 </div> … … 200 200 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1" class="codepress <?php echo $codepress_lang ?>"><?php echo $content ?></textarea> 201 201 <input type="hidden" name="action" value="update" /> 202 <input type="hidden" name="file" value="<?php echo attr($file) ?>" />203 <input type="hidden" name="theme" value="<?php echo attr($theme) ?>" />202 <input type="hidden" name="file" value="<?php echo esc_attr($file) ?>" /> 203 <input type="hidden" name="theme" value="<?php echo esc_attr($theme) ?>" /> 204 204 </div> 205 205 <?php if ( isset($functions ) && count($functions) ) { ?> … … 207 207 <label for="docs-list"><?php _e('Documentation:') ?></label> 208 208 <?php echo $docs_select; ?> 209 <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'); }" />209 <input type="button" class="button" value=" <?php esc_attr_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'); }" /> 210 210 </div> 211 211 <?php } ?> … … 215 215 <p class="submit"> 216 216 <?php 217 echo "<input type='submit' name='submit' class='button-primary' value='" . _a('Update File') . "' tabindex='2' />";217 echo "<input type='submit' name='submit' class='button-primary' value='" . esc_attr__('Update File') . "' tabindex='2' />"; 218 218 ?> 219 219 </p>
Note: See TracChangeset
for help on using the changeset viewer.