Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove custom URL field for header image to implement wordpress built…
…-in header functionality.
  • Loading branch information
tlongren committed Jun 7, 2013
1 parent e3e9303 commit 9e31e67
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions theme-options.php
Expand Up @@ -10,7 +10,6 @@ function html5press_get_default_options() {
'show_query_stats' => false,
'fuzzy_timestamps' => false,
'maintenance_mode' => false,
'custom_logo_url' => '',
'featured_image_size' => 'large',
'theme_color' => 'black',
'theme_font' => 'open-sans',
Expand Down Expand Up @@ -396,11 +395,6 @@ function html5press_theme_options_page() {
<label for="maintenance_mode">Enabled</label>
</td>
</tr>
<tr valign="top"><th scope="row"><label for="custom_logo_url">Custom Logo URL</label></th>
<td>
<input type="text" id="custom_logo_url" name="html5press_options[custom_logo_url]" value="<?php echo esc_attr($options['custom_logo_url']); ?>" />
</td>
</tr>
<tr valign="top"><th scope="row"><label for="featured_image_size">Linked Featured Image Size</label></th>
<td>
<select id="featured_image_size" name="html5press_options[featured_image_size]">
Expand Down Expand Up @@ -495,8 +489,6 @@ function html5press_theme_options_page() {
function html5press_validate_options( $input ) {
global $html5press_image_sizes, $html5press_categories, $html5press_num_featured_options, $html5press_theme_colors, $html5press_theme_fonts;

$input['custom_logo_url'] = wp_filter_nohtml_kses( $input['custom_logo_url'] );

// We select the previous value of the field, to restore it in case an invalid entry has been given
$prev = $options['featured_cat'];
// We verify if the given value exists in the categories array
Expand Down

0 comments on commit 9e31e67

Please sign in to comment.