X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..7f1521bf193b382565eb753043c161f4cb3fcda7:/wp-admin/includes/export.php?ds=sidebyside diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 397e9e7a..cd50e61b 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -16,11 +16,11 @@ define( 'WXR_VERSION', '1.2' ); /** - * Generates the WXR export file for download + * Generates the WXR export file for download. * * @since 2.1.0 * - * @param array $args Filters defining what should be included in the export + * @param array $args Filters defining what should be included in the export. */ function export_wp( $args = array() ) { global $wpdb, $post; @@ -95,7 +95,7 @@ function export_wp( $args = array() ) { $cat = get_term( $term['term_id'], 'category' ); $cats = array( $cat->term_id => $cat ); unset( $term, $cat ); - } else if ( 'all' == $args['content'] ) { + } elseif ( 'all' == $args['content'] ) { $categories = (array) get_categories( array( 'get' => 'all' ) ); $tags = (array) get_tags( array( 'get' => 'all' ) ); @@ -391,8 +391,10 @@ function export_wp( $args = array() ) { $is_sticky = is_sticky( $post->ID ) ? 1 : 0; ?> - - <?php echo apply_filters( 'the_title_rss', $post->post_title ); ?> + <?php + /** This filter is documented in wp-includes/feed.php */ + echo apply_filters( 'the_title_rss', $post->post_title ); + ?>