Changeset 45583 for trunk/src/wp-admin/includes/export.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/export.php
r45424 r45583 118 118 $join = ''; 119 119 if ( $args['category'] && 'post' == $args['content'] ) { 120 if ( $term = term_exists( $args['category'], 'category' ) ) { 120 $term = term_exists( $args['category'], 'category' ); 121 if ( $term ) { 121 122 $join = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)"; 122 123 $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] ); … … 145 146 * or all content. 146 147 */ 147 $cats = $tags = $terms = array(); 148 $cats = array(); 149 $tags = array(); 150 $terms = array(); 148 151 if ( isset( $term ) && $term ) { 149 152 $cat = get_term( $term['term_id'], 'category' );
Note: See TracChangeset
for help on using the changeset viewer.