Changes from tags/5.0.3/src/wp-admin/includes/export.php at r45013 to tags/5.1.1/src/wp-admin/includes/export.php at r45013
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/5.1.1/src/wp-admin/includes/export.php
r45013 r45013 57 57 global $wpdb, $post; 58 58 59 $defaults = array( 'content' => 'all', 'author' => false, 'category' => false, 60 'start_date' => false, 'end_date' => false, 'status' => false, 59 $defaults = array( 60 'content' => 'all', 61 'author' => false, 62 'category' => false, 63 'start_date' => false, 64 'end_date' => false, 65 'status' => false, 61 66 ); 62 $args = wp_parse_args( $args, $defaults );67 $args = wp_parse_args( $args, $defaults ); 63 68 64 69 /** … … 75 80 $sitename .= '.'; 76 81 } 77 $date = date( 'Y-m-d' );78 $wp_filename = $sitename . ' wordpress.' . $date . '.xml';82 $date = date( 'Y-m-d' ); 83 $wp_filename = $sitename . 'WordPress.' . $date . '.xml'; 79 84 /** 80 85 * Filters the export filename. … … 94 99 if ( 'all' != $args['content'] && post_type_exists( $args['content'] ) ) { 95 100 $ptype = get_post_type_object( $args['content'] ); 96 if ( ! $ptype->can_export ) 101 if ( ! $ptype->can_export ) { 97 102 $args['content'] = 'post'; 103 } 98 104 99 105 $where = $wpdb->prepare( "{$wpdb->posts}.post_type = %s", $args['content'] ); 100 106 } else { 101 107 $post_types = get_post_types( array( 'can_export' => true ) ); 102 $esses = array_fill( 0, count($post_types), '%s' );103 $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types );104 } 105 106 if ( $args['status'] && ( 'post' == $args['content'] || 'page' == $args['content'] ) ) 108 $esses = array_fill( 0, count( $post_types ), '%s' ); 109 $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types ); 110 } 111 112 if ( $args['status'] && ( 'post' == $args['content'] || 'page' == $args['content'] ) ) { 107 113 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_status = %s", $args['status'] ); 108 else114 } else { 109 115 $where .= " AND {$wpdb->posts}.post_status != 'auto-draft'"; 116 } 110 117 111 118 $join = ''; 112 119 if ( $args['category'] && 'post' == $args['content'] ) { 113 120 if ( $term = term_exists( $args['category'], 'category' ) ) { 114 $join = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)";121 $join = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)"; 115 122 $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] ); 116 123 } … … 118 125 119 126 if ( 'post' == $args['content'] || 'page' == $args['content'] || 'attachment' == $args['content'] ) { 120 if ( $args['author'] ) 127 if ( $args['author'] ) { 121 128 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_author = %d", $args['author'] ); 122 123 if ( $args['start_date'] ) 124 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date >= %s", date( 'Y-m-d', strtotime($args['start_date']) ) ); 125 126 if ( $args['end_date'] ) 127 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date < %s", date( 'Y-m-d', strtotime('+1 month', strtotime($args['end_date'])) ) ); 129 } 130 131 if ( $args['start_date'] ) { 132 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date >= %s", date( 'Y-m-d', strtotime( $args['start_date'] ) ) ); 133 } 134 135 if ( $args['end_date'] ) { 136 $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date < %s", date( 'Y-m-d', strtotime( '+1 month', strtotime( $args['end_date'] ) ) ) ); 137 } 128 138 } 129 139 … … 137 147 $cats = $tags = $terms = array(); 138 148 if ( isset( $term ) && $term ) { 139 $cat = get_term( $term['term_id'], 'category' );149 $cat = get_term( $term['term_id'], 'category' ); 140 150 $cats = array( $cat->term_id => $cat ); 141 151 unset( $term, $cat ); 142 152 } elseif ( 'all' == $args['content'] ) { 143 153 $categories = (array) get_categories( array( 'get' => 'all' ) ); 144 $tags = (array) get_tags( array( 'get' => 'all' ) );154 $tags = (array) get_tags( array( 'get' => 'all' ) ); 145 155 146 156 $custom_taxonomies = get_taxonomies( array( '_builtin' => false ) ); 147 $custom_terms = (array) get_terms( $custom_taxonomies, array( 'get' => 'all' ) );157 $custom_terms = (array) get_terms( $custom_taxonomies, array( 'get' => 'all' ) ); 148 158 149 159 // Put categories in order with no child going before its parent. 150 160 while ( $cat = array_shift( $categories ) ) { 151 if ( $cat->parent == 0 || isset( $cats[ $cat->parent] ) )152 $cats[ $cat->term_id] = $cat;153 else161 if ( $cat->parent == 0 || isset( $cats[ $cat->parent ] ) ) { 162 $cats[ $cat->term_id ] = $cat; 163 } else { 154 164 $categories[] = $cat; 165 } 155 166 } 156 167 157 168 // Put terms in order with no child going before its parent. 158 169 while ( $t = array_shift( $custom_terms ) ) { 159 if ( $t->parent == 0 || isset( $terms[ $t->parent] ) )160 $terms[ $t->term_id] = $t;161 else170 if ( $t->parent == 0 || isset( $terms[ $t->parent ] ) ) { 171 $terms[ $t->term_id ] = $t; 172 } else { 162 173 $custom_terms[] = $t; 174 } 163 175 } 164 176 … … 192 204 */ 193 205 function wxr_site_url() { 194 // Multisite: the base URL.195 if ( is_multisite() )206 if ( is_multisite() ) { 207 // Multisite: the base URL. 196 208 return network_home_url(); 197 // WordPress (single site): the blog URL.198 else209 } else { 210 // WordPress (single site): the blog URL. 199 211 return get_bloginfo_rss( 'url' ); 212 } 200 213 } 201 214 … … 208 221 */ 209 222 function wxr_cat_name( $category ) { 210 if ( empty( $category->name ) ) 211 return; 223 if ( empty( $category->name ) ) { 224 return; 225 } 212 226 213 227 echo '<wp:cat_name>' . wxr_cdata( $category->name ) . "</wp:cat_name>\n"; … … 222 236 */ 223 237 function wxr_category_description( $category ) { 224 if ( empty( $category->description ) ) 225 return; 238 if ( empty( $category->description ) ) { 239 return; 240 } 226 241 227 242 echo '<wp:category_description>' . wxr_cdata( $category->description ) . "</wp:category_description>\n"; … … 236 251 */ 237 252 function wxr_tag_name( $tag ) { 238 if ( empty( $tag->name ) ) 239 return; 253 if ( empty( $tag->name ) ) { 254 return; 255 } 240 256 241 257 echo '<wp:tag_name>' . wxr_cdata( $tag->name ) . "</wp:tag_name>\n"; … … 250 266 */ 251 267 function wxr_tag_description( $tag ) { 252 if ( empty( $tag->description ) ) 253 return; 268 if ( empty( $tag->description ) ) { 269 return; 270 } 254 271 255 272 echo '<wp:tag_description>' . wxr_cdata( $tag->description ) . "</wp:tag_description>\n"; … … 264 281 */ 265 282 function wxr_term_name( $term ) { 266 if ( empty( $term->name ) ) 267 return; 283 if ( empty( $term->name ) ) { 284 return; 285 } 268 286 269 287 echo '<wp:term_name>' . wxr_cdata( $term->name ) . "</wp:term_name>\n"; … … 278 296 */ 279 297 function wxr_term_description( $term ) { 280 if ( empty( $term->description ) ) 281 return; 298 if ( empty( $term->description ) ) { 299 return; 300 } 282 301 283 302 echo "\t\t<wp:term_description>" . wxr_cdata( $term->description ) . "</wp:term_description>\n"; … … 322 341 * @global wpdb $wpdb WordPress database abstraction object. 323 342 * 324 * @param array $post_ids Array of post IDs to filter the query by. Optional.343 * @param int[] $post_ids Optional. Array of post IDs to filter the query by. 325 344 */ 326 345 function wxr_authors_list( array $post_ids = null ) { 327 346 global $wpdb; 328 347 329 if ( ! empty( $post_ids ) ) {348 if ( ! empty( $post_ids ) ) { 330 349 $post_ids = array_map( 'absint', $post_ids ); 331 $and = 'AND ID IN ( ' . implode( ', ', $post_ids ) . ')';350 $and = 'AND ID IN ( ' . implode( ', ', $post_ids ) . ')'; 332 351 } else { 333 352 $and = ''; … … 336 355 $authors = array(); 337 356 $results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_status != 'auto-draft' $and" ); 338 foreach ( (array) $results as $result ) 357 foreach ( (array) $results as $result ) { 339 358 $authors[] = get_userdata( $result->post_author ); 359 } 340 360 341 361 $authors = array_filter( $authors ); … … 360 380 function wxr_nav_menu_terms() { 361 381 $nav_menus = wp_get_nav_menus(); 362 if ( empty( $nav_menus ) || ! is_array( $nav_menus ) ) 363 return; 382 if ( empty( $nav_menus ) || ! is_array( $nav_menus ) ) { 383 return; 384 } 364 385 365 386 foreach ( $nav_menus as $menu ) { … … 382 403 383 404 $taxonomies = get_object_taxonomies( $post->post_type ); 384 if ( empty( $taxonomies ) ) 385 return; 405 if ( empty( $taxonomies ) ) { 406 return; 407 } 386 408 $terms = wp_get_object_terms( $post->ID, $taxonomies ); 387 409 … … 392 414 393 415 /** 394 *395 416 * @param bool $return_me 396 417 * @param string $meta_key … … 398 419 */ 399 420 function wxr_filter_postmeta( $return_me, $meta_key ) { 400 if ( '_edit_lock' == $meta_key ) 421 if ( '_edit_lock' == $meta_key ) { 401 422 $return_me = true; 423 } 402 424 return $return_me; 403 425 } 404 426 add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 ); 405 427 406 echo '<?xml version="1.0" encoding="' . get_bloginfo( 'charset') . "\" ?>\n";428 echo '<?xml version="1.0" encoding="' . get_bloginfo( 'charset' ) . "\" ?>\n"; 407 429 408 430 ?> … … 424 446 <!-- contained in this file into your site. --> 425 447 426 <?php the_generator( 'export' ); ?>448 <?php the_generator( 'export' ); ?> 427 449 <rss version="2.0" 428 450 xmlns:excerpt="http://wordpress.org/export/<?php echo WXR_VERSION; ?>/excerpt/" … … 443 465 <wp:base_blog_url><?php bloginfo_rss( 'url' ); ?></wp:base_blog_url> 444 466 445 <?php wxr_authors_list( $post_ids ); ?>446 447 <?php foreach ( $cats as $c ) : ?>467 <?php wxr_authors_list( $post_ids ); ?> 468 469 <?php foreach ( $cats as $c ) : ?> 448 470 <wp:category> 449 471 <wp:term_id><?php echo intval( $c->term_id ); ?></wp:term_id> 450 472 <wp:category_nicename><?php echo wxr_cdata( $c->slug ); ?></wp:category_nicename> 451 <wp:category_parent><?php echo wxr_cdata( $c->parent ? $cats[$c->parent]->slug : '' ); ?></wp:category_parent> 452 <?php wxr_cat_name( $c ); 473 <wp:category_parent><?php echo wxr_cdata( $c->parent ? $cats[ $c->parent ]->slug : '' ); ?></wp:category_parent> 474 <?php 475 wxr_cat_name( $c ); 453 476 wxr_category_description( $c ); 454 wxr_term_meta( $c ); ?> 477 wxr_term_meta( $c ); 478 ?> 455 479 </wp:category> 456 <?php endforeach; ?>457 <?php foreach ( $tags as $t ) : ?>480 <?php endforeach; ?> 481 <?php foreach ( $tags as $t ) : ?> 458 482 <wp:tag> 459 483 <wp:term_id><?php echo intval( $t->term_id ); ?></wp:term_id> 460 484 <wp:tag_slug><?php echo wxr_cdata( $t->slug ); ?></wp:tag_slug> 461 <?php wxr_tag_name( $t ); 485 <?php 486 wxr_tag_name( $t ); 462 487 wxr_tag_description( $t ); 463 wxr_term_meta( $t ); ?> 488 wxr_term_meta( $t ); 489 ?> 464 490 </wp:tag> 465 <?php endforeach; ?>466 <?php foreach ( $terms as $t ) : ?>491 <?php endforeach; ?> 492 <?php foreach ( $terms as $t ) : ?> 467 493 <wp:term> 468 494 <wp:term_id><?php echo wxr_cdata( $t->term_id ); ?></wp:term_id> 469 495 <wp:term_taxonomy><?php echo wxr_cdata( $t->taxonomy ); ?></wp:term_taxonomy> 470 496 <wp:term_slug><?php echo wxr_cdata( $t->slug ); ?></wp:term_slug> 471 <wp:term_parent><?php echo wxr_cdata( $t->parent ? $terms[$t->parent]->slug : '' ); ?></wp:term_parent> 472 <?php wxr_term_name( $t ); 497 <wp:term_parent><?php echo wxr_cdata( $t->parent ? $terms[ $t->parent ]->slug : '' ); ?></wp:term_parent> 498 <?php 499 wxr_term_name( $t ); 473 500 wxr_term_description( $t ); 474 wxr_term_meta( $t ); ?> 501 wxr_term_meta( $t ); 502 ?> 475 503 </wp:term> 476 <?php endforeach; ?> 477 <?php if ( 'all' == $args['content'] ) wxr_nav_menu_terms(); ?> 504 <?php endforeach; ?> 505 <?php 506 if ( 'all' == $args['content'] ) { 507 wxr_nav_menu_terms();} 508 ?> 478 509 479 510 <?php … … 482 513 ?> 483 514 484 <?php if ( $post_ids ) { 485 /** 486 * @global WP_Query $wp_query 487 */ 488 global $wp_query; 489 490 // Fake being in the loop. 491 $wp_query->in_the_loop = true; 492 493 // Fetch 20 posts at a time rather than loading the entire table into memory. 494 while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) { 495 $where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')'; 496 $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" ); 497 498 // Begin Loop. 499 foreach ( $posts as $post ) { 500 setup_postdata( $post ); 501 $is_sticky = is_sticky( $post->ID ) ? 1 : 0; 502 ?> 515 <?php 516 if ( $post_ids ) { 517 /** 518 * @global WP_Query $wp_query 519 */ 520 global $wp_query; 521 522 // Fake being in the loop. 523 $wp_query->in_the_loop = true; 524 525 // Fetch 20 posts at a time rather than loading the entire table into memory. 526 while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) { 527 $where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')'; 528 $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" ); 529 530 // Begin Loop. 531 foreach ( $posts as $post ) { 532 setup_postdata( $post ); 533 $is_sticky = is_sticky( $post->ID ) ? 1 : 0; 534 ?> 503 535 <item> 504 <title><?php 505 /** This filter is documented in wp-includes/feed.php */ 506 echo apply_filters( 'the_title_rss', $post->post_title ); 507 ?></title> 508 <link><?php the_permalink_rss() ?></link> 536 <title> 537 <?php 538 /** This filter is documented in wp-includes/feed.php */ 539 echo apply_filters( 'the_title_rss', $post->post_title ); 540 ?> 541 </title> 542 <link><?php the_permalink_rss(); ?></link> 509 543 <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate> 510 544 <dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator> 511 545 <guid isPermaLink="false"><?php the_guid(); ?></guid> 512 546 <description></description> 513 <content:encoded><?php 514 /** 515 * Filters the post content used for WXR exports. 516 * 517 * @since 2.5.0 518 * 519 * @param string $post_content Content of the current post. 520 */ 521 echo wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); 522 ?></content:encoded> 523 <excerpt:encoded><?php 524 /** 525 * Filters the post excerpt used for WXR exports. 526 * 527 * @since 2.6.0 528 * 529 * @param string $post_excerpt Excerpt for the current post. 530 */ 531 echo wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) ); 532 ?></excerpt:encoded> 547 <content:encoded> 548 <?php 549 /** 550 * Filters the post content used for WXR exports. 551 * 552 * @since 2.5.0 553 * 554 * @param string $post_content Content of the current post. 555 */ 556 echo wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); 557 ?> 558 </content:encoded> 559 <excerpt:encoded> 560 <?php 561 /** 562 * Filters the post excerpt used for WXR exports. 563 * 564 * @since 2.6.0 565 * 566 * @param string $post_excerpt Excerpt for the current post. 567 */ 568 echo wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) ); 569 ?> 570 </excerpt:encoded> 533 571 <wp:post_id><?php echo intval( $post->ID ); ?></wp:post_id> 534 572 <wp:post_date><?php echo wxr_cdata( $post->post_date ); ?></wp:post_date> … … 543 581 <wp:post_password><?php echo wxr_cdata( $post->post_password ); ?></wp:post_password> 544 582 <wp:is_sticky><?php echo intval( $is_sticky ); ?></wp:is_sticky> 545 <?php if ( $post->post_type == 'attachment' ) : ?>583 <?php if ( $post->post_type == 'attachment' ) : ?> 546 584 <wp:attachment_url><?php echo wxr_cdata( wp_get_attachment_url( $post->ID ) ); ?></wp:attachment_url> 547 <?php endif; ?> 548 <?php wxr_post_taxonomy(); ?> 549 <?php $postmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->postmeta WHERE post_id = %d", $post->ID ) ); 550 foreach ( $postmeta as $meta ) : 551 /** 552 * Filters whether to selectively skip post meta used for WXR exports. 553 * 554 * Returning a truthy value to the filter will skip the current meta 555 * object from being exported. 556 * 557 * @since 3.3.0 558 * 559 * @param bool $skip Whether to skip the current post meta. Default false. 560 * @param string $meta_key Current meta key. 561 * @param object $meta Current meta object. 562 */ 563 if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) ) 564 continue; 565 ?> 585 <?php endif; ?> 586 <?php wxr_post_taxonomy(); ?> 587 <?php 588 $postmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->postmeta WHERE post_id = %d", $post->ID ) ); 589 foreach ( $postmeta as $meta ) : 590 /** 591 * Filters whether to selectively skip post meta used for WXR exports. 592 * 593 * Returning a truthy value to the filter will skip the current meta 594 * object from being exported. 595 * 596 * @since 3.3.0 597 * 598 * @param bool $skip Whether to skip the current post meta. Default false. 599 * @param string $meta_key Current meta key. 600 * @param object $meta Current meta object. 601 */ 602 if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) ) { 603 continue; 604 } 605 ?> 566 606 <wp:postmeta> 567 568 607 <wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key> 608 <wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value> 569 609 </wp:postmeta> 570 <?php endforeach; 571 572 $_comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) ); 573 $comments = array_map( 'get_comment', $_comments ); 574 foreach ( $comments as $c ) : ?> 610 <?php 611 endforeach; 612 613 $_comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) ); 614 $comments = array_map( 'get_comment', $_comments ); 615 foreach ( $comments as $c ) : 616 ?> 575 617 <wp:comment> 576 618 <wp:comment_id><?php echo intval( $c->comment_ID ); ?></wp:comment_id> … … 581 623 <wp:comment_date><?php echo wxr_cdata( $c->comment_date ); ?></wp:comment_date> 582 624 <wp:comment_date_gmt><?php echo wxr_cdata( $c->comment_date_gmt ); ?></wp:comment_date_gmt> 583 <wp:comment_content><?php echo wxr_cdata( $c->comment_content ) ?></wp:comment_content>625 <wp:comment_content><?php echo wxr_cdata( $c->comment_content ); ?></wp:comment_content> 584 626 <wp:comment_approved><?php echo wxr_cdata( $c->comment_approved ); ?></wp:comment_approved> 585 627 <wp:comment_type><?php echo wxr_cdata( $c->comment_type ); ?></wp:comment_type> 586 628 <wp:comment_parent><?php echo intval( $c->comment_parent ); ?></wp:comment_parent> 587 629 <wp:comment_user_id><?php echo intval( $c->user_id ); ?></wp:comment_user_id> 588 <?php $c_meta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->commentmeta WHERE comment_id = %d", $c->comment_ID ) ); 589 foreach ( $c_meta as $meta ) : 590 /** 591 * Filters whether to selectively skip comment meta used for WXR exports. 592 * 593 * Returning a truthy value to the filter will skip the current meta 594 * object from being exported. 595 * 596 * @since 4.0.0 597 * 598 * @param bool $skip Whether to skip the current comment meta. Default false. 599 * @param string $meta_key Current meta key. 600 * @param object $meta Current meta object. 601 */ 602 if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) { 603 continue; 604 } 605 ?> 606 <wp:commentmeta> 607 <wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key> 608 <wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value> 630 <?php 631 $c_meta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->commentmeta WHERE comment_id = %d", $c->comment_ID ) ); 632 foreach ( $c_meta as $meta ) : 633 /** 634 * Filters whether to selectively skip comment meta used for WXR exports. 635 * 636 * Returning a truthy value to the filter will skip the current meta 637 * object from being exported. 638 * 639 * @since 4.0.0 640 * 641 * @param bool $skip Whether to skip the current comment meta. Default false. 642 * @param string $meta_key Current meta key. 643 * @param object $meta Current meta object. 644 */ 645 if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) { 646 continue; 647 } 648 ?> 649 <wp:commentmeta> 650 <wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key> 651 <wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value> 609 652 </wp:commentmeta> 610 <?phpendforeach; ?>653 <?php endforeach; ?> 611 654 </wp:comment> 612 <?php endforeach; ?> 613 </item> 614 <?php 615 } 616 } 617 } ?> 655 <?php endforeach; ?> 656 </item> 657 <?php 658 } 659 } 660 } 661 ?> 618 662 </channel> 619 663 </rss> 620 <?php664 <?php 621 665 }
Note: See TracChangeset
for help on using the changeset viewer.