Make WordPress Core


Ignore:
Timestamp:
06/22/2006 07:44:36 PM (19 years ago)
Author:
ryan
Message:

Move ping and trackback functions to comment.php (maybe to ping.php later?) #2525

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r3854 r3900  
    11181118// Attachment functions
    11191119//
     1120
     1121function 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}
    11201133
    11211134function wp_insert_attachment($object, $file = false, $post_parent = 0) {
Note: See TracChangeset for help on using the changeset viewer.