Make WordPress Core

Changeset 4133 for trunk/xmlrpc.php


Ignore:
Timestamp:
08/30/2006 04:40:17 PM (18 years ago)
Author:
ryan
Message:

s/URI/URL/. Props Nazgul. fixes #2666

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r4049 r4133  
    329329      }
    330330
    331       /* warning: here we make the assumption that the weblog's URI is on the same server */
     331      /* warning: here we make the assumption that the weblog's URL is on the same server */
    332332      $filename = get_settings('home') . '/';
    333333      $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename);
     
    364364      }
    365365
    366       /* warning: here we make the assumption that the weblog's URI is on the same server */
     366      /* warning: here we make the assumption that the weblog's URL is on the same server */
    367367      $filename = get_settings('home') . '/';
    368368      $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename);
     
    11541154        } else {
    11551155            // TODO: Attempt to extract a post ID from the given URL
    1156             return new IXR_Error(33, 'The specified target URI cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
     1156            return new IXR_Error(33, 'The specified target URL cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
    11571157        }
    11581158        $post_ID = (int) $post_ID;
    11591159
    11601160
    1161         logIO("O","(PB) URI='$pagelinkedto' ID='$post_ID' Found='$way'");
     1161        logIO("O","(PB) URL='$pagelinkedto' ID='$post_ID' Found='$way'");
    11621162
    11631163        $post = get_post($post_ID);
    11641164
    11651165        if ( !$post ) // Post_ID not found
    1166             return new IXR_Error(33, 'The specified target URI cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
     1166            return new IXR_Error(33, 'The specified target URL cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
    11671167
    11681168        if ( $post_ID == url_to_postid($pagelinkedfrom) )
    1169             return new IXR_Error(0, 'The source URI and the target URI cannot both point to the same resource.');
     1169            return new IXR_Error(0, 'The source URL and the target URL cannot both point to the same resource.');
    11701170
    11711171        // Check if pings are on
    11721172        if ( 'closed' == $post->ping_status )
    1173             return new IXR_Error(33, 'The specified target URI cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
     1173            return new IXR_Error(33, 'The specified target URL cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
    11741174
    11751175        // Let's check that the remote site didn't already pingback this entry
     
    11851185        $linea = wp_remote_fopen( $pagelinkedfrom );
    11861186        if ( !$linea )
    1187             return new IXR_Error(16, 'The source URI does not exist.');
     1187            return new IXR_Error(16, 'The source URL does not exist.');
    11881188
    11891189        // Work around bug in strip_tags():
     
    12201220
    12211221        if ( empty($context) ) // URL pattern not found
    1222             return new IXR_Error(17, 'The source URI does not contain a link to the target URI, and so cannot be used as a source.');
     1222            return new IXR_Error(17, 'The source URL does not contain a link to the target URL, and so cannot be used as a source.');
    12231223
    12241224        $pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom);
     
    12601260        if (!$post_ID) {
    12611261            // We aren't sure that the resource is available and/or pingback enabled
    1262             return new IXR_Error(33, 'The specified target URI cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
     1262            return new IXR_Error(33, 'The specified target URL cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');
    12631263        }
    12641264
     
    12671267        if (!$actual_post) {
    12681268            // No such post = resource not found
    1269             return new IXR_Error(32, 'The specified target URI does not exist.');
     1269            return new IXR_Error(32, 'The specified target URL does not exist.');
    12701270        }
    12711271
Note: See TracChangeset for help on using the changeset viewer.