Changeset 24554 for trunk/wp-includes/media.php
- Timestamp:
- 07/03/2013 10:36:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r24550 r24554 2425 2425 if ( ! $matched ) 2426 2426 $matched = do_shortcode_tag( $shortcode ); 2427 // $content = str_replace( $shortcode[0], '', $content, $count );2428 2427 } 2429 2428 } … … 2439 2438 if ( ! $matched ) 2440 2439 $matched = $match[0]; 2441 // $content = str_replace( $match[0], '', $content, $count );2442 2440 } 2443 2441 } … … 2506 2504 return $attachment_id; 2507 2505 2508 $classes = $matches[2]; 2509 if ( ! empty( $classes ) && false !== strpos( $classes, 'wp-image-' ) ) 2510 if ( preg_match( '#wp-image-([0-9]+)#i', $classes, $matches ) ) 2506 $classes = $matches[2]; 2507 if ( ! empty( $classes ) && false !== strpos( $classes, 'wp-image-' ) ) 2508 if ( preg_match( '#wp-image-([0-9]+)#i', $classes, $matches ) ) 2511 2509 $attachment_id = absint( $matches[1] ); 2512 2510
Note: See TracChangeset
for help on using the changeset viewer.