WordPress.org

Make WordPress Core

Ticket #2200: post.patch

File post.patch, 694 bytes (added by hypercubed, 15 years ago)

Patch for verson 2.0.5

Line 
184,95c84
2<               <script type="text/javascript">
3< <!--
4<   function show_preview() {
5<     var elm = document.getElementById("frm_preview");
6<     elm.src = "<?php echo wp_specialchars(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>";
7<     elm.height = "600";
8<     return false;
9<   }
10< -->
11< </script>
12< <a href="#preview-post" onclick="show_preview();">Show Preview</a>
13< <iframe id="frm_preview" src="" width="100%" height="10" ></iframe>
14---
15>               <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>