Changeset 4074

Show
Ignore:
Timestamp:
08/05/06 04:11:51 (2 years ago)
Author:
ryan
Message:

More more for xmlrpc. fixes #2991

Files:

Legend:

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

    r4027 r4074  
    5555// get extended entry info (<!--more-->) 
    5656function get_extended($post) { 
    57     list($main,$extended) = explode('<!--more-->', $post, 2); 
    58  
     57    //Match the new style more links 
     58    if (preg_match('/<!--more(.+?)?-->/', $post, $matches)) { 
     59        list($main,$extended) = explode($matches[0],$post,2); 
     60    } else { 
     61        $main = $post; 
     62        $extended = ''; 
     63    } 
     64     
    5965    // Strip leading and trailing whitespace 
    6066    $main = preg_replace('/^[\s]*(.*)[\s]*$/','\\1',$main);