Changeset 34163 for trunk/src/wp-includes/post-functions.php
- Timestamp:
- 09/15/2015 02:49:12 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-functions.php
r34158 r34163 4649 4649 wp_delete_comment( $comment_id, true ); 4650 4650 } 4651 4651 4652 4652 wp_defer_comment_counting( false ); 4653 4653 … … 4975 4975 if ( $post = get_post( $mime ) ) { 4976 4976 $post_id = (int) $post->ID; 4977 $ext = preg_replace('/^.+?\.([^.]+)$/', '$1', $post->guid); 4977 $file = get_attached_file( $post_id ); 4978 $ext = preg_replace('/^.+?\.([^.]+)$/', '$1', $file); 4978 4979 if ( !empty($ext) ) { 4979 4980 $post_mimes[] = $ext;
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)