Changeset 15831
- Timestamp:
- 10/18/2010 11:24:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r15819 r15831 3812 3812 3813 3813 /** 3814 * Checked for changed slugs for published posts and save old slug. 3815 * 3816 * The function is used along with form POST data. It checks for the wp-old-slug 3817 * POST field. Will only be concerned with published posts and the slug actually 3818 * changing. 3814 * Checked for changed slugs for published post objects and save the old slug. 3815 * 3816 * The function is used when a post object of any type is updated, 3817 * by comparing the current and previous post objects. 3819 3818 * 3820 3819 * If the slug was changed and not already part of the old slugs then it will be … … 3822 3821 * post. 3823 3822 * 3824 * The most logically usage of this function is redirecting changed post s, so3823 * The most logically usage of this function is redirecting changed post objects, so 3825 3824 * that those that linked to an changed post will be redirected to the new post. 3826 3825 * … … 3828 3827 * 3829 3828 * @param int $post_id Post ID. 3829 * @param object $post The Post Object 3830 * @param object $post_before The Previous Post Object 3830 3831 * @return int Same as $post_id 3831 3832 */ … … 3835 3836 return; 3836 3837 3837 // we're only concerned with published posts3838 if ( $post->post_status != 'publish' || $post->post_type != 'post')3838 // we're only concerned with published objects 3839 if ( $post->post_status != 'publish' ) 3839 3840 return; 3840 3841
Note: See TracChangeset
for help on using the changeset viewer.