Changes from trunk/xmlrpc.php at r11528 to branches/2.8/xmlrpc.php at r11687
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/xmlrpc.php
r11528 r11687 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' ) ?>" />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' ) ) ?>" />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') ) ?>" /> 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 date 2578 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 } 2576 2583 2577 2584 $categories = array(); … … 3294 3301 $p = explode( "\n\n", $linea ); 3295 3302 3296 $preg_target = preg_quote($pagelinkedto );3303 $preg_target = preg_quote($pagelinkedto, '|'); 3297 3304 3298 3305 foreach ( $p as $para ) { … … 3316 3323 $excerpt = strip_tags($excerpt, '<wpcontext>'); // strip all tags but our context marker 3317 3324 $excerpt = trim($excerpt); 3318 $preg_marker = preg_quote($marker );3325 $preg_marker = preg_quote($marker, '|'); 3319 3326 $excerpt = preg_replace("|.*?\s(.{0,100}$preg_marker.{0,100})\s.*|s", '$1', $excerpt); 3320 3327 $excerpt = strip_tags($excerpt); // YES, again, to remove the marker wrapper
Note: See TracChangeset
for help on using the changeset viewer.