Make WordPress Core


Ignore:
Timestamp:
08/05/2006 04:11:51 AM (18 years ago)
Author:
ryan
Message:

More more for xmlrpc. fixes #2991

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.