Ticket #26894: export.diff
File export.diff, 2.6 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/export.php
30 30 ); 31 31 $args = wp_parse_args( $args, $defaults ); 32 32 33 /** 34 * Fires at the beginning of an export 35 * 36 * @since 2.3.0 37 * 38 * @param array $args Filters defining what should be included in the export 39 */ 33 40 do_action( 'export_wp', $args ); 34 41 35 42 $sitename = sanitize_key( get_bloginfo( 'name' ) ); … … 350 357 <?php endforeach; ?> 351 358 <?php if ( 'all' == $args['content'] ) wxr_nav_menu_terms(); ?> 352 359 353 <?php do_action( 'rss2_head' ); ?> 360 <?php 361 /** This action is documented in wp-includes/feed-rss2.php */ 362 do_action( 'rss2_head' ); 363 ?> 354 364 355 365 <?php if ( $post_ids ) { 356 366 global $wp_query; … … 374 384 <dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator> 375 385 <guid isPermaLink="false"><?php the_guid(); ?></guid> 376 386 <description></description> 377 <content:encoded><?php echo wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); ?></content:encoded> 378 <excerpt:encoded><?php echo wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) ); ?></excerpt:encoded> 387 <content:encoded><?php 388 /** 389 * Filter the post content during export 390 * 391 * @since 2.5.0 392 * 393 * @param string $content Content of the current post 394 */ 395 echo wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); 396 ?></content:encoded> 397 <excerpt:encoded><?php 398 /** 399 * Filter the post excerpt during export 400 * 401 * @since 2.6.0 402 * 403 * @param string $post_excerpt Excerpt for the current post 404 */ 405 echo wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) ); 406 ?></excerpt:encoded> 379 407 <wp:post_id><?php echo $post->ID; ?></wp:post_id> 380 408 <wp:post_date><?php echo $post->post_date; ?></wp:post_date> 381 409 <wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt> … … 394 422 <?php wxr_post_taxonomy(); ?> 395 423 <?php $postmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->postmeta WHERE post_id = %d", $post->ID ) ); 396 424 foreach ( $postmeta as $meta ) : 425 /** 426 * Selectively skip post meta during export 427 * 428 * @since 3.3.0 429 * 430 * @param bool $skip Whether or not to skip the current post meta 431 * @param string $meta_key Current meta key 432 * @param string $meta Value associated with the meta key 433 */ 397 434 if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) ) 398 435 continue; 399 436 ?>