Changeset 28500 for trunk/src/wp-admin/includes/taxonomy.php
- Timestamp:
- 05/19/2014 05:03:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/taxonomy.php
r28474 r28500 237 237 $tags = wp_get_post_terms($post_id, $taxonomy, array()); 238 238 239 if ( !$tags ) 239 if ( !$tags ) { 240 240 return false; 241 242 if ( is_wp_error($tags) ) 241 } 242 if ( is_wp_error($tags) ) { 243 243 return $tags; 244 245 foreach ( $tags as $tag ) 244 } 245 $tag_names = array(); 246 foreach ( $tags as $tag ) { 246 247 $tag_names[] = $tag->name; 247 $tags_to_edit = join( ',', $tag_names ); 248 $tags_to_edit = esc_attr( $tags_to_edit ); 248 } 249 250 $tags_to_edit = esc_attr( join( ',', $tag_names ) ); 249 251 250 252 /**
Note: See TracChangeset
for help on using the changeset viewer.