Changeset 743

Show
Ignore:
Timestamp:
09/12/06 15:36:57 (2 years ago)
Author:
donncha
Message:

WP Merge to rev 4185

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin.php

    r729 r743  
    1515        } 
    1616} 
    17  
    1817 
    1918require_once(ABSPATH . 'wp-admin/admin-functions.php'); 
     
    111110 
    112111        exit(); 
     112} else { 
     113        do_action("load-$pagenow"); 
    113114} 
    114115 
  • trunk/wp-includes/formatting.php

    r734 r743  
    742742        global $post; 
    743743        if ( '' == $text ) { 
    744                 $text = $post->post_content
     744                $text = get_the_content('')
    745745                $text = apply_filters('the_content', $text); 
    746746                $text = str_replace(']]>', ']]>', $text); 
  • trunk/wp-includes/js/autosave.js.php

    r729 r743  
    104104        autosaveAjax.setVar("post_title", form.post_title.value); 
    105105        autosaveAjax.setVar("post_type", form.post_type.value); 
     106        if ( form.comment_status.checked ) 
     107                autosaveAjax.setVar("comment_status", 'open'); 
     108        if ( form.ping_status.checked ) 
     109                autosaveAjax.setVar("ping_status", 'open'); 
    106110        if(form.excerpt) 
    107111                autosaveAjax.setVar("excerpt", form.excerpt.value);              
  • trunk/wp-includes/post-template.php

    r736 r743  
    8383        if ( preg_match('/<!--more(.+?)?-->/', $content, $matches) ) { 
    8484                $content = explode($matches[0], $content, 2); 
    85                 if ( !empty($matches[1])
     85                if ( !empty($matches[1]) && !empty($more_link_text)
    8686                        $more_link_text = strip_tags(wp_kses_no_null(trim($matches[1]))); 
    8787        } else { 
     
    9595        $output .= $teaser; 
    9696        if ( count($content) > 1 ) { 
    97                 if ( $more ) 
     97                if ( $more ) { 
    9898                        $output .= '<a id="more-'.$id.'"></a>'.$content[1]; 
    99                 else 
    100                         $output = balanceTags($output . ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>"); 
     99                } else { 
     100                        $output = balanceTags($output); 
     101                        if ( ! empty($more_link_text) ) 
     102                                $output .= ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>"; 
     103                } 
     104                         
    101105        } 
    102106        if ( $preview ) // preview fix for javascript bug with foreign languages 
  • trunk/wp-includes/script-loader.php

    r729 r743  
    6767                                        $ver .= '&amp;' . $this->args[$handle]; 
    6868                                $src = 0 === strpos($this->scripts[$handle]->src, 'http://') ? $this->scripts[$handle]->src : get_option( 'siteurl' ) . $this->scripts[$handle]->src; 
    69                                 echo "<script type='text/javascript' src='$src?ver=$ver'></script>\n"; 
     69                                $src = add_query_arg('ver', $ver, $src); 
     70                                echo "<script type='text/javascript' src='$src'></script>\n"; 
    7071                                $this->printed[] = $handle; 
    7172                        } 
     
    133134                        $handle = explode('?', $handle); 
    134135                        if ( !in_array($handle[0], $this->queue) && isset($this->scripts[$handle[0]]) ) { 
    135                                 $this->queue[] = $handle[0]; 
     136                                if ( 'wp_tiny_mce' == $handle[0] ) // HACK: Put tinyMCE first. 
     137                                        array_unshift($this->queue, $handle[0]); 
     138                                else 
     139                                        $this->queue[] = $handle[0]; 
    136140                                if ( isset($handle[1]) ) 
    137141                                        $this->args[$handle[0]] = $handle[1]; 
  • trunk/wp-rss2.php

    r729 r743  
    4343                <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 
    4444        <?php if ( strlen( $post->post_content ) > 0 ) : ?> 
    45                 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> 
     45                <content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded> 
    4646        <?php else : ?> 
    4747                <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>