Skip to content

Commit abd6262

Browse files
committed
Taxonomy: Standardise the format used to describe arguments passed to actions and filters inside wp_insert_term() and wp_update_term().
Props SergeyBiryukov, mboynes Fixes #55441 git-svn-id: https://develop.svn.wordpress.org/trunk@54266 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d013b20 commit abd6262

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/wp-includes/taxonomy.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,7 +2347,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
23472347
*
23482348
* @param string|WP_Error $term The term name to add, or a WP_Error object if there's an error.
23492349
* @param string $taxonomy Taxonomy slug.
2350-
* @param array|string $args Array or query string of arguments for inserting a term.
2350+
* @param array|string $args Array or query string of arguments passed to wp_insert_term().
23512351
*/
23522352
$term = apply_filters( 'pre_insert_term', $term, $taxonomy, $args );
23532353

@@ -2547,7 +2547,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
25472547
* @param object $duplicate_term Duplicate term row from terms table, if found.
25482548
* @param string $term Term being inserted.
25492549
* @param string $taxonomy Taxonomy name.
2550-
* @param array $args Term arguments passed to the function.
2550+
* @param array $args Arguments passed to wp_insert_term().
25512551
* @param int $tt_id term_taxonomy_id for the newly created term.
25522552
*/
25532553
$duplicate_term = apply_filters( 'wp_insert_term_duplicate_term_check', $duplicate_term, $term, $taxonomy, $args, $tt_id );
@@ -2578,7 +2578,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
25782578
* @param int $term_id Term ID.
25792579
* @param int $tt_id Term taxonomy ID.
25802580
* @param string $taxonomy Taxonomy slug.
2581-
* @param array $args Term arguments passed to the function.
2581+
* @param array $args Arguments passed to wp_insert_term().
25822582
*/
25832583
do_action( 'create_term', $term_id, $tt_id, $taxonomy, $args );
25842584

@@ -2598,7 +2598,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
25982598
*
25992599
* @param int $term_id Term ID.
26002600
* @param int $tt_id Term taxonomy ID.
2601-
* @param array $args Term arguments passed to the function.
2601+
* @param array $args Arguments passed to wp_insert_term().
26022602
*/
26032603
do_action( "create_{$taxonomy}", $term_id, $tt_id, $args );
26042604

@@ -2610,7 +2610,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
26102610
*
26112611
* @param int $term_id Term ID.
26122612
* @param int $tt_id Term taxonomy ID.
2613-
* @param array $args Term arguments passed to the function.
2613+
* @param array $args Arguments passed to wp_insert_term().
26142614
*/
26152615
$term_id = apply_filters( 'term_id_filter', $term_id, $tt_id, $args );
26162616

@@ -2628,7 +2628,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
26282628
* @param int $term_id Term ID.
26292629
* @param int $tt_id Term taxonomy ID.
26302630
* @param string $taxonomy Taxonomy slug.
2631-
* @param array $args Term arguments passed to the function.
2631+
* @param array $args Arguments passed to wp_insert_term().
26322632
*/
26332633
do_action( 'created_term', $term_id, $tt_id, $taxonomy, $args );
26342634

@@ -2648,7 +2648,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
26482648
*
26492649
* @param int $term_id Term ID.
26502650
* @param int $tt_id Term taxonomy ID.
2651-
* @param array $args Term arguments passed to the function.
2651+
* @param array $args Arguments passed to wp_insert_term().
26522652
*/
26532653
do_action( "created_{$taxonomy}", $term_id, $tt_id, $args );
26542654

@@ -2665,7 +2665,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
26652665
* @param int $tt_id Term taxonomy ID.
26662666
* @param string $taxonomy Taxonomy slug.
26672667
* @param bool $update Whether this is an existing term being updated.
2668-
* @param array $args Term arguments passed to the function.
2668+
* @param array $args Arguments passed to wp_insert_term().
26692669
*/
26702670
do_action( 'saved_term', $term_id, $tt_id, $taxonomy, false, $args );
26712671

@@ -2686,7 +2686,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
26862686
* @param int $term_id Term ID.
26872687
* @param int $tt_id Term taxonomy ID.
26882688
* @param bool $update Whether this is an existing term being updated.
2689-
* @param array $args Term arguments passed to the function.
2689+
* @param array $args Arguments passed to wp_insert_term().
26902690
*/
26912691
do_action( "saved_{$taxonomy}", $term_id, $tt_id, false, $args );
26922692

@@ -3218,7 +3218,7 @@ function wp_update_term( $term_id, $taxonomy, $args = array() ) {
32183218
* @param int $term_id Term ID.
32193219
* @param string $taxonomy Taxonomy slug.
32203220
* @param array $parsed_args An array of potentially altered update arguments for the given term.
3221-
* @param array $args An array of update arguments for the given term.
3221+
* @param array $args Arguments passed to wp_update_term().
32223222
*/
32233223
$parent = (int) apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args );
32243224

0 commit comments

Comments
 (0)