Make WordPress Core

Changeset 4242


Ignore:
Timestamp:
09/25/2006 02:43:26 AM (19 years ago)
Author:
ryan
Message:

Validate good times, come on. Props Viper007Bond. fixes #3113

Location:
branches/2.0/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/edit-form-advanced.php

    r4229 r4242  
    227227    $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
    228228    if ( false != $uploading_iframe_src )
    229         echo '<iframe id="uploading" border="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>';
     229        echo '<iframe id="uploading" frameborder="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>';
    230230}
    231231?>
  • branches/2.0/wp-admin/edit-page-form.php

    r4028 r4242  
    194194    $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
    195195    if ( false != $uploading_iframe_src )
    196         echo '<iframe id="uploading" border="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>';
     196        echo '<iframe id="uploading" frameborder="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>';
    197197}
    198198?>
     
    225225    <input name="deletepost" class="button" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"if ( confirm('" . sprintf(__("You are about to delete this page \'%s\'\\n  \'Cancel\' to stop, \'OK\' to delete."), js_escape($post->post_title) ) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />
    226226<?php endif; ?>
     227</div>
     228
    227229</form>
    228230
    229231</div>
    230 
    231 </div>
  • branches/2.0/wp-admin/post.php

    r4239 r4242  
    8282    <div id='preview' class='wrap'>
    8383    <h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit &uarr;'); ?></a></small></h2>
    84         <iframe src="<?php echo apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID))); ?>" width="100%" height="600" ></iframe>
     84        <iframe src="<?php echo wp_specialchars(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" width="100%" height="600" ></iframe>
    8585    </div>
    8686    <?php
Note: See TracChangeset for help on using the changeset viewer.