Changeset 19593 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 12/13/2011 11:45:31 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r19077 r19593 1084 1084 * terms whose count is 0 according to the given taxonomy. 1085 1085 * 1086 * exclude - Default is an empty array. An array, comma- or space-delimited string1087 * of term ids to exclude from the return array. If 'include' is non-empty,1086 * exclude - Default is an empty array. An array, comma- or space-delimited string 1087 * of term ids to exclude from the return array. If 'include' is non-empty, 1088 1088 * 'exclude' is ignored. 1089 1089 * 1090 * exclude_tree - Default is an empty array. An array, comma- or space-delimited1090 * exclude_tree - Default is an empty array. An array, comma- or space-delimited 1091 1091 * string of term ids to exclude from the return array, along with all of their 1092 * descendant terms according to the primary taxonomy. If 'include' is non-empty,1092 * descendant terms according to the primary taxonomy. If 'include' is non-empty, 1093 1093 * 'exclude_tree' is ignored. 1094 1094 * 1095 * include - Default is an empty array. An array, comma- or space-delimited string1095 * include - Default is an empty array. An array, comma- or space-delimited string 1096 1096 * of term ids to include in the return array. 1097 1097 * 1098 * number - The maximum number of terms to return. Default is to return them all.1098 * number - The maximum number of terms to return. Default is to return them all. 1099 1099 * 1100 1100 * offset - The number by which to offset the terms query. … … 1110 1110 * 1111 1111 * search - Returned terms' names will contain the value of 'search', 1112 * case-insensitive. Default is an empty string.1112 * case-insensitive. Default is an empty string. 1113 1113 * 1114 1114 * name__like - Returned terms' names will begin with the value of 'name__like', … … 1121 1121 * returns terms regardless of ancestry or whether the terms are empty. 1122 1122 * 1123 * The 'child_of' argument, when used, should be set to the integer of a term ID. Its default1124 * is 0. If set to a non-zero value, all returned terms will be descendants1125 * of that term according to the given taxonomy. Hence 'child_of' is set to 01123 * The 'child_of' argument, when used, should be set to the integer of a term ID. Its default 1124 * is 0. If set to a non-zero value, all returned terms will be descendants 1125 * of that term according to the given taxonomy. Hence 'child_of' is set to 0 1126 1126 * if more than one taxonomy is passed in $taxonomies, because multiple taxonomies 1127 1127 * make term ancestry ambiguous. 1128 1128 * 1129 * The 'parent' argument, when used, should be set to the integer of a term ID. Its default is1129 * The 'parent' argument, when used, should be set to the integer of a term ID. Its default is 1130 1130 * the empty string '', which has a different meaning from the integer 0. 1131 1131 * If set to an integer value, all returned terms will have as an immediate … … 3095 3095 * @param int $object_id ID of the object (post ID, link ID, ...) 3096 3096 * @param string $taxonomy Single taxonomy name 3097 * @param int|string|array $terms Optional. Term term_id, name, slug or array of said3097 * @param int|string|array $terms Optional. Term term_id, name, slug or array of said 3098 3098 * @return bool|WP_Error. WP_Error on input error. 3099 3099 */ … … 3241 3241 return 0; 3242 3242 3243 // There's a loop, but it doesn't contain $term_id. Break the loop.3243 // There's a loop, but it doesn't contain $term_id. Break the loop. 3244 3244 foreach ( array_keys( $loop ) as $loop_member ) 3245 3245 wp_update_term( $loop_member, $taxonomy, array( 'parent' => 0 ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)