Changeset 27141
- Timestamp:
- 02/09/2014 02:01:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r27125 r27141 3507 3507 3508 3508 /** 3509 * Retrieve the 'last_changed' value for the passed taxonomy. Retrieves 3510 * from cache, if present 3509 * Retrieve the 'last_changed' value for the passed taxonomy. 3510 * 3511 * Retrieves from cache, if present. 3511 3512 * 3512 3513 * @since 3.9.0 3513 3514 * 3514 * @param string $taxonomy 3515 * @return int 3515 * @param string $taxonomy Taxonomy slug. 3516 * @return int Unix timestamp with microseconds of the last taxonomy change. 3516 3517 */ 3517 3518 function get_taxonomy_last_changed( $taxonomy ) { … … 3525 3526 3526 3527 /** 3527 * Reset 'last_changed' for the passed taxonomy3528 * Reset 'last_changed' time for the passed taxonomy. 3528 3529 * 3529 3530 * @since 3.9.0 3530 3531 * 3531 * @param string $taxonomy 3532 * @return int 3532 * @param string $taxonomy Taxonomy slug. 3533 * @return int Unix timestamp with microseconds of the last taxonomy change. 3533 3534 */ 3534 3535 function set_taxonomy_last_changed( $taxonomy ) { … … 3538 3539 3539 3540 /** 3540 * Determine if a post's cache for the passed taxonomy 3541 * is in sync. 3541 * Determine if a post's cache for the passed taxonomy is in sync. 3542 * 3543 * 'Fresh'-ness is determined based on whether the 'last_changed' 3544 * times of the passed post and taxonomy are in sync. Times are 3545 * stored as Unix timestamps with microseconds. 3542 3546 * 3543 3547 * @since 3.9.0 3544 3548 * 3545 * @param int $id 3546 * @param string $taxonomy 3547 * @return boolean 3549 * @param int $id Post ID. 3550 * @param string $taxonomy Taxonomy slug. 3551 * @return bool True if the 'last_changed' times are in sync, or 'fresh'. 3552 * False if they are out of sync, or not cached. 3548 3553 */ 3549 3554 function post_taxonomy_is_fresh( $id, $taxonomy ) { … … 3558 3563 3559 3564 /** 3560 * Determine if a hierarchy's cache for the passed taxonomy 3561 * is in sync. 3565 * Determine if a hierarchy's cache for the passed taxonomy is in sync. 3566 * 3567 * 'Fresh'-ness is determined based on whether the 'last_changed' times 3568 * of the passed taxonomy and its hierarchy are in sync. Times are 3569 * stored as Unix timestamps with microseconds. 3562 3570 * 3563 3571 * @since 3.9.0 3564 3572 * 3565 * @param int $id 3566 * @param string $taxonomy 3567 * @return boolean 3573 * @param int $id Post ID. 3574 * @param string $taxonomy Taxonomy slug. 3575 * @return bool True if the 'last_changed' times are in sync, or 'fresh'. 3576 * False if they are out of sync, or not cached. 3568 3577 */ 3569 3578 function taxonomy_hierarchy_is_fresh( $taxonomy ) {
Note: See TracChangeset
for help on using the changeset viewer.