Changeset 16365 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 11/14/2010 03:50:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r16322 r16365 1384 1384 1385 1385 if ( 'edit' == $context ) { 1386 $value = apply_filters("edit_term_ $field", $value, $term_id, $taxonomy);1387 $value = apply_filters("edit_ ${taxonomy}_$field", $value, $term_id);1386 $value = apply_filters("edit_term_{$field}", $value, $term_id, $taxonomy); 1387 $value = apply_filters("edit_{$taxonomy}_{$field}", $value, $term_id); 1388 1388 if ( 'description' == $field ) 1389 1389 $value = format_to_edit($value); … … 1391 1391 $value = esc_attr($value); 1392 1392 } else if ( 'db' == $context ) { 1393 $value = apply_filters("pre_term_ $field", $value, $taxonomy);1394 $value = apply_filters("pre_ ${taxonomy}_$field", $value);1393 $value = apply_filters("pre_term_{$field}", $value, $taxonomy); 1394 $value = apply_filters("pre_{$taxonomy}_{$field}", $value); 1395 1395 // Back compat filters 1396 1396 if ( 'slug' == $field ) … … 1398 1398 1399 1399 } else if ( 'rss' == $context ) { 1400 $value = apply_filters("term_ ${field}_rss", $value, $taxonomy);1401 $value = apply_filters(" ${taxonomy}_${field}_rss", $value);1400 $value = apply_filters("term_{$field}_rss", $value, $taxonomy); 1401 $value = apply_filters("{$taxonomy}_{$field}_rss", $value); 1402 1402 } else { 1403 1403 // Use display filters by default. 1404 $value = apply_filters("term_ $field", $value, $term_id, $taxonomy, $context);1405 $value = apply_filters(" ${taxonomy}_$field", $value, $term_id, $context);1404 $value = apply_filters("term_{$field}", $value, $term_id, $taxonomy, $context); 1405 $value = apply_filters("{$taxonomy}_{$field}", $value, $term_id, $context); 1406 1406 } 1407 1407
Note: See TracChangeset
for help on using the changeset viewer.