Changeset 38307 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 08/22/2016 06:24:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r38292 r38307 872 872 * @param string $taxonomy The taxonomy slug. 873 873 */ 874 $_term = apply_filters( "get_ $taxonomy", $_term, $taxonomy );874 $_term = apply_filters( "get_{$taxonomy}", $_term, $taxonomy ); 875 875 876 876 // Bail if a filter callback has changed the type of the `$_term` object. … … 1916 1916 * @param array $object_ids List of term object IDs. 1917 1917 */ 1918 do_action( "delete_ $taxonomy", $term, $tt_id, $deleted_term, $object_ids );1918 do_action( "delete_{$taxonomy}", $term, $tt_id, $deleted_term, $object_ids ); 1919 1919 1920 1920 return true; … … 2407 2407 * @param int $tt_id Term taxonomy ID. 2408 2408 */ 2409 do_action( "create_ $taxonomy", $term_id, $tt_id );2409 do_action( "create_{$taxonomy}", $term_id, $tt_id ); 2410 2410 2411 2411 /** … … 2443 2443 * @param int $tt_id Term taxonomy ID. 2444 2444 */ 2445 do_action( "created_ $taxonomy", $term_id, $tt_id );2445 do_action( "created_{$taxonomy}", $term_id, $tt_id ); 2446 2446 2447 2447 return array('term_id' => $term_id, 'term_taxonomy_id' => $tt_id); … … 2988 2988 * @param int $tt_id Term taxonomy ID. 2989 2989 */ 2990 do_action( "edit_ $taxonomy", $term_id, $tt_id );2990 do_action( "edit_{$taxonomy}", $term_id, $tt_id ); 2991 2991 2992 2992 /** This filter is documented in wp-includes/taxonomy.php */ … … 3017 3017 * @param int $tt_id Term taxonomy ID. 3018 3018 */ 3019 do_action( "edited_ $taxonomy", $term_id, $tt_id );3019 do_action( "edited_{$taxonomy}", $term_id, $tt_id ); 3020 3020 3021 3021 return array('term_id' => $term_id, 'term_taxonomy_id' => $tt_id);
Note: See TracChangeset
for help on using the changeset viewer.