Changeset 36896
- Timestamp:
- 03/09/2016 04:16:29 PM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r36727 r36896 3867 3867 * @param bool $append Optional. If true, don't delete existing tags, just add on. If false, 3868 3868 * replace the tags with the new tags. Default false. 3869 * @return array|false|WP_Error Array of affected term IDs. WP_Error or false on failure.3869 * @return array|false|WP_Error Array of term taxonomy IDs of affected terms. WP_Error or false on failure. 3870 3870 */ 3871 3871 function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) { … … 3886 3886 * @param bool $append Optional. If true, don't delete existing terms, just add on. If false, 3887 3887 * replace the terms with the new terms. Default false. 3888 * @return array|false|WP_Error Array of affected term IDs. WP_Error or false on failure.3888 * @return array|false|WP_Error Array of term taxonomy IDs of affected terms. WP_Error or false on failure. 3889 3889 */ 3890 3890 function wp_set_post_terms( $post_id = 0, $tags = '', $taxonomy = 'post_tag', $append = false ) { … … 3929 3929 * @param bool $append If true, don't delete existing categories, just add on. 3930 3930 * If false, replace the categories with the new categories. 3931 * @return array| bool|WP_Error3931 * @return array|false|WP_Error Array of term taxonomy IDs of affected categories. WP_Error or false on failure. 3932 3932 */ 3933 3933 function wp_set_post_categories( $post_ID = 0, $post_categories = array(), $append = false ) { -
trunk/src/wp-includes/taxonomy.php
r36712 r36896 2974 2974 * @param string $taxonomy The context in which to relate the term to the object. 2975 2975 * @param bool $append Optional. If false will delete difference of terms. Default false. 2976 * @return array|WP_Error Affected Term IDs.2976 * @return array|WP_Error Term taxonomy IDs of the affected terms. 2977 2977 */ 2978 2978 function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) { … … 3095 3095 * @param array|int|string $terms The slug(s) or ID(s) of the term(s) to add. 3096 3096 * @param array|string $taxonomy Taxonomy name. 3097 * @return array|WP_Error Affected Term IDs3097 * @return array|WP_Error Term taxonomy IDs of the affected terms. 3098 3098 */ 3099 3099 function wp_add_object_terms( $object_id, $terms, $taxonomy ) {
Note: See TracChangeset
for help on using the changeset viewer.