Changeset 3900 for trunk/wp-includes/post.php
- Timestamp:
- 06/22/2006 07:44:36 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r3854 r3900 1118 1118 // Attachment functions 1119 1119 // 1120 1121 function is_local_attachment($url) { 1122 if ( !strstr($url, get_bloginfo('home') ) ) 1123 return false; 1124 if ( strstr($url, get_bloginfo('home') . '/?attachment_id=') ) 1125 return true; 1126 if ( $id = url_to_postid($url) ) { 1127 $post = & get_post($id); 1128 if ( 'attachment' == $post->post_type ) 1129 return true; 1130 } 1131 return false; 1132 } 1120 1133 1121 1134 function wp_insert_attachment($object, $file = false, $post_parent = 0) {
Note: See TracChangeset
for help on using the changeset viewer.