Changeset 25697
- Timestamp:
- 10/06/2013 12:55:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r25694 r25697 749 749 * @access private 750 750 * 751 * @param unknown_type $post_ID752 * @return unknown753 */ 754 function _fix_attachment_links( $post _ID) {755 $post = get_post( $post _ID, ARRAY_A );751 * @param int|object $post Post ID or post object. 752 * @return void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success. 753 */ 754 function _fix_attachment_links( $post ) { 755 $post = get_post( $post, ARRAY_A ); 756 756 $content = $post['post_content']; 757 757 758 // quick sanity check, don't run if no pretty permalinks or post is not published759 if ( ! get_option('permalink_structure') || $post['post_status'] != 'publish')758 // Don't run if no pretty permalinks or post is not published, scheduled, or privately published. 759 if ( ! get_option( 'permalink_structure' ) || ! in_array( $post['post_status'], array( 'publish', 'future', 'private' ) ) ) 760 760 return; 761 761
Note: See TracChangeset
for help on using the changeset viewer.