Changes from branches/2.8/xmlrpc.php at r11687 to trunk/xmlrpc.php at r11528
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r11687 r11528 40 40 <homePageLink><?php bloginfo_rss('url') ?></homePageLink> 41 41 <apis> 42 <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url('xmlrpc.php' , 'rpc') ?>" />43 <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php' , 'rpc') ?>" />44 <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php' , 'rpc') ?>" />45 <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php' , 'rpc') ?>" />46 <api name="Atom" blogID="" preferred="false" apiLink="<?php echo apply_filters('atom_service_url', site_url('wp-app.php/service' , 'rpc') ) ?>" />42 <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url('xmlrpc.php') ?>" /> 43 <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php') ?>" /> 44 <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php') ?>" /> 45 <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php') ?>" /> 46 <api name="Atom" blogID="" preferred="false" apiLink="<?php echo apply_filters('atom_service_url', site_url('wp-app.php/service') ) ?>" /> 47 47 </apis> 48 48 </service> … … 2574 2574 $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date'], false); 2575 2575 $post_date_gmt = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt'], false); 2576 2577 // For drafts use the GMT version of the post date2578 if ( $postdata['post_status'] == 'draft' ) {2579 $post_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $postdata['post_date'] ) );2580 $post_date_gmt = preg_replace( '|\-|', '', $post_date_gmt );2581 $post_date_gmt = preg_replace( '| |', 'T', $post_date_gmt );2582 }2583 2576 2584 2577 $categories = array(); … … 3301 3294 $p = explode( "\n\n", $linea ); 3302 3295 3303 $preg_target = preg_quote($pagelinkedto , '|');3296 $preg_target = preg_quote($pagelinkedto); 3304 3297 3305 3298 foreach ( $p as $para ) { … … 3323 3316 $excerpt = strip_tags($excerpt, '<wpcontext>'); // strip all tags but our context marker 3324 3317 $excerpt = trim($excerpt); 3325 $preg_marker = preg_quote($marker , '|');3318 $preg_marker = preg_quote($marker); 3326 3319 $excerpt = preg_replace("|.*?\s(.{0,100}$preg_marker.{0,100})\s.*|s", '$1', $excerpt); 3327 3320 $excerpt = strip_tags($excerpt); // YES, again, to remove the marker wrapper
Note: See TracChangeset
for help on using the changeset viewer.