Ticket #2666: 2666.diff
File 2666.diff, 26.9 KB (added by , 18 years ago) |
---|
-
wp-admin/edit-comments.php
45 45 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo wp_specialchars($_GET['s'], 1); ?>" size="17" /> 46 46 <input type="submit" name="submit" value="<?php _e('Search') ?>" /> 47 47 <input type="hidden" name="mode" value="<?php echo $mode; ?>" /> 48 <?php _e('(Searches within comment text, e-mail, UR I, and IP address.)') ?>48 <?php _e('(Searches within comment text, e-mail, URL, and IP address.)') ?> 49 49 </fieldset> 50 50 </form> 51 51 <p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p> -
wp-admin/edit-form-advanced.php
191 191 192 192 <fieldset class="dbx-box"> 193 193 <h3 class="dbx-handle"><?php _e('Trackbacks') ?></h3> 194 <div class="dbx-content"><?php _e('Send trackbacks to'); ?>: <?php echo $form_trackback; ?> (<?php _e('Separate multiple URIs with spaces'); ?>)194 <div class="dbx-content"><?php _e('Send trackbacks to'); ?>: <?php echo $form_trackback; ?> (<?php _e('Separate multiple <abbr title="Universal Resource Locator">URL</abbr>s with spaces'); ?>) 195 195 <?php 196 196 if ( ! empty($pings) ) 197 197 echo $pings; -
wp-admin/edit-form-comment.php
30 30 </div> 31 31 </fieldset> 32 32 <fieldset id="uridiv"> 33 <legend><label for="URL"><?php _e('UR I:') ?></label></legend>33 <legend><label for="URL"><?php _e('URL:') ?></label></legend> 34 34 <div> 35 35 <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="35" value="<?php echo $comment->comment_author_url ?>" tabindex="3" id="URL" /> 36 36 </div> -
wp-admin/edit-form.php
51 51 52 52 <input type="hidden" name="post_pingback" value="<?php echo get_option('default_pingback_flag') ?>" id="post_pingback" /> 53 53 54 <p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Identifier">URI</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') ?>54 <p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Locator">URL</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Locator">URL</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') ?> 55 55 <input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p> 56 56 57 57 <p class="submit"><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" /> -
wp-admin/edit-link-form.php
79 79 80 80 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 81 81 <tr> 82 <th width="20%" scope="row" valign="top"><label for="link_url"><?php _e('UR I:') ?></label></th>82 <th width="20%" scope="row" valign="top"><label for="link_url"><?php _e('URL:') ?></label></th> 83 83 <td width="80%"><input type="text" name="link_url" value="<?php echo $link->link_url; ?>" style="width: 95%" /></td> 84 84 </tr> 85 85 <tr> … … 216 216 <div class="dbx-content"> 217 217 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 218 218 <tr> 219 <th width="20%" scope="row"><?php _e('Image UR I:') ?></th>219 <th width="20%" scope="row"><?php _e('Image URL:') ?></th> 220 220 <td width="80%"><input type="text" name="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td> 221 221 </tr> 222 222 <tr> 223 <th scope="row"><?php _e('RSS UR I:') ?> </th>223 <th scope="row"><?php _e('RSS URL:') ?> </th> 224 224 <td><input name="link_rss" type="text" id="rss_uri" value="<?php echo $link->link_rss; ?>" size="50" style="width: 95%" /></td> 225 225 </tr> 226 226 <tr> -
wp-admin/link-manager.php
104 104 <select name="order_by"> 105 105 <option value="order_id" <?php if ($order_by == 'order_id') echo " selected='selected'";?>><?php _e('Bookmark ID') ?></option> 106 106 <option value="order_name" <?php if ($order_by == 'order_name') echo " selected='selected'";?>><?php _e('Name') ?></option> 107 <option value="order_url" <?php if ($order_by == 'order_url') echo " selected='selected'";?>><?php _e('UR I') ?></option>107 <option value="order_url" <?php if ($order_by == 'order_url') echo " selected='selected'";?>><?php _e('URL') ?></option> 108 108 </select> 109 109 <input type="submit" name="action" value="<?php _e('Update »') ?>" /> 110 110 </form> … … 119 119 <thead> 120 120 <tr> 121 121 <th width="15%" style="text-align: left"><?php _e('Name') ?></th> 122 <th style="text-align: left"><?php _e('UR I') ?></th>122 <th style="text-align: left"><?php _e('URL') ?></th> 123 123 <th style="text-align: left"><?php _e('Categories') ?></th> 124 124 <th><?php _e('rel') ?></th> 125 125 <th><?php _e('Visible') ?></th> -
wp-admin/options-discussion.php
73 73 <legend><?php _e('Comment Moderation') ?></legend> 74 74 <p><?php printf(__('Hold a comment in the queue if it contains more than %s links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_settings('comment_max_links'). '" />' ) ?></p> 75 75 76 <p><?php _e('When a comment contains any of these words in its content, name, UR I, e-mail, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://codex.wordpress.org/Spam_Words">Common spam words</a>.') ?></p>76 <p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://codex.wordpress.org/Spam_Words">Common spam words</a>.') ?></p> 77 77 <p> 78 78 <textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('moderation_keys'); ?></textarea> 79 79 </p> -
wp-admin/options-general.php
23 23 <?php _e('In a few words, explain what this weblog is about.') ?></td> 24 24 </tr> 25 25 <tr valign="top"> 26 <th scope="row"><?php _e('WordPress address (UR I):') ?></th>26 <th scope="row"><?php _e('WordPress address (URL):') ?></th> 27 27 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" size="40" class="code" /></td> 28 28 </tr> 29 29 <tr valign="top"> 30 <th scope="row"><?php _e('Blog address (UR I):') ?></th>30 <th scope="row"><?php _e('Blog address (URL):') ?></th> 31 31 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" size="40" class="code" /><br /><?php _e('If you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different than the directory</a> you installed WordPress in, enter that address here.'); ?></td> 32 32 </tr> 33 33 <tr valign="top"> -
wp-admin/options-permalink.php
102 102 103 103 <div class="wrap"> 104 104 <h2><?php _e('Customize Permalink Structure') ?></h2> 105 <p><?php _e('By default WordPress uses web URIs which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URIstructure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="http://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.'); ?></p>105 <p><?php _e('By default WordPress uses web <abbr title="Universal Resource Locator">URL</abbr>s which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="http://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.'); ?></p> 106 106 107 107 <?php 108 108 $prefix = ''; … … 152 152 153 153 <h3><?php _e('Optional'); ?></h3> 154 154 <?php if ($is_apache) : ?> 155 <p><?php _e('If you like, you may enter a custom prefix for your category URIs here. For example, <code>/taxonomy/tags</code> would make your category links like <code>http://example.org/taxonomy/tags/uncategorized/</code>. If you leave this blank the default will be used.') ?></p>155 <p><?php _e('If you like, you may enter a custom prefix for your category <abbr title="Universal Resource Locator">URL</abbr>s here. For example, <code>/taxonomy/tags</code> would make your category links like <code>http://example.org/taxonomy/tags/uncategorized/</code>. If you leave this blank the default will be used.') ?></p> 156 156 <?php else : ?> 157 <p><?php _e('If you like, you may enter a custom prefix for your category URIs here. For example, <code>/index.php/taxonomy/tags</code> would make your category links like <code>http://example.org/index.php/taxonomy/tags/uncategorized/</code>. If you leave this blank the default will be used.') ?></p>157 <p><?php _e('If you like, you may enter a custom prefix for your category <abbr title="Universal Resource Locator">URL</abbr>s here. For example, <code>/index.php/taxonomy/tags</code> would make your category links like <code>http://example.org/index.php/taxonomy/tags/uncategorized/</code>. If you leave this blank the default will be used.') ?></p> 158 158 <?php endif; ?> 159 159 <p> 160 160 <?php _e('Category base'); ?>: <input name="category_base" type="text" class="code" value="<?php echo $category_base; ?>" size="30" /> -
wp-admin/options-writing.php
96 96 97 97 <fieldset class="options"> 98 98 <legend><?php _e('Update Services') ?></legend> 99 <p><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service URIs with line breaks.') ?></p>99 <p><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service <abbr title="Universal Resource Locator">URL</abbr>s with line breaks.') ?></p> 100 100 101 101 <textarea name="ping_sites" id="ping_sites" style="width: 98%;" rows="3" cols="50"><?php form_option('ping_sites'); ?></textarea> 102 102 </fieldset> -
wp-content/themes/classic/comments-popup.php
24 24 <p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> 25 25 26 26 <?php if ('open' == $post->ping_status) { ?> 27 <p><?php _e("The <a cronym title=\"Uniform Resource Identifier\">URI</acronym> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p>27 <p><?php _e("The <abbr title=\"Universal Resource Locator\">URL</abbr> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p> 28 28 <?php } ?> 29 29 30 30 <?php … … 71 71 72 72 <p> 73 73 <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /> 74 <label for="url"><?php _e("<a cronym title=\"Uniform Resource Identifier\">URI</acronym>"); ?></label>74 <label for="url"><?php _e("<abbr title=\"Universal Resource Locator\">URL</abbr>"); ?></label> 75 75 </p> 76 76 77 77 <p> -
wp-content/themes/classic/comments.php
27 27 28 28 <p><?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?> 29 29 <?php if ( pings_open() ) : ?> 30 <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uni form Resource Identifier">URI</abbr>'); ?></a>30 <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>'); ?></a> 31 31 <?php endif; ?> 32 32 </p> 33 33 -
wp-content/themes/default/comments-popup.php
24 24 <p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p> 25 25 26 26 <?php if ('open' == $post->ping_status) { ?> 27 <p>The <a cronym title="Uniform Resource Identifier">URI</acronym> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>27 <p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p> 28 28 <?php } ?> 29 29 30 30 <?php … … 71 71 72 72 <p> 73 73 <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /> 74 <label for="url"><a cronym title="Uniform Resource Identifier">URI</acronym></label>74 <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label> 75 75 </p> 76 76 77 77 <p> -
wp-includes/comment.php
580 580 $pingback_href_end = @strpos($contents, $quote, $pingback_href_start); 581 581 $pingback_server_url_len = $pingback_href_end - $pingback_href_start; 582 582 $pingback_server_url = substr($contents, $pingback_href_start, $pingback_server_url_len); 583 // We may find rel="pingback" but an incomplete pingback UR I583 // We may find rel="pingback" but an incomplete pingback URL 584 584 if ($pingback_server_url_len > 0) { 585 585 // We got it! 586 586 return $pingback_server_url; -
wp-includes/link-template.php
398 398 $qstr = preg_replace("#/*" . $index . "/*#", '/', $qstr); 399 399 } else { 400 400 // If using path info style permalinks, make sure the index is in 401 // the UR I.401 // the URL. 402 402 if ( strpos($qstr, $index) === false ) 403 403 $qstr = '/' . $index . $qstr; 404 404 } -
wp-includes/pluggable.php
364 364 $notify_message = sprintf( __('New comment on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n"; 365 365 $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 366 366 $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n"; 367 $notify_message .= sprintf( __('UR I: %s'), $comment->comment_author_url ) . "\r\n";367 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 368 368 $notify_message .= sprintf( __('Whois : http://ws.arin.net/cgi-bin/whois.pl?queryinput=%s'), $comment->comment_author_IP ) . "\r\n"; 369 369 $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 370 370 $notify_message .= __('You can see all comments on this post here: ') . "\r\n"; … … 372 372 } elseif ('trackback' == $comment_type) { 373 373 $notify_message = sprintf( __('New trackback on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n"; 374 374 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 375 $notify_message .= sprintf( __('UR I: %s'), $comment->comment_author_url ) . "\r\n";375 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 376 376 $notify_message .= __('Excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 377 377 $notify_message .= __('You can see all trackbacks on this post here: ') . "\r\n"; 378 378 $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title ); 379 379 } elseif ('pingback' == $comment_type) { 380 380 $notify_message = sprintf( __('New pingback on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n"; 381 381 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 382 $notify_message .= sprintf( __('UR I: %s'), $comment->comment_author_url ) . "\r\n";382 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 383 383 $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[...] %s [...]', $comment->comment_content ) . "\r\n\r\n"; 384 384 $notify_message .= __('You can see all pingbacks on this post here: ') . "\r\n"; 385 385 $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); … … 439 439 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 440 440 $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 441 441 $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n"; 442 $notify_message .= sprintf( __('UR I: %s'), $comment->comment_author_url ) . "\r\n";442 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 443 443 $notify_message .= sprintf( __('Whois : http://ws.arin.net/cgi-bin/whois.pl?queryinput=%s'), $comment->comment_author_IP ) . "\r\n"; 444 444 $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 445 445 $notify_message .= sprintf( __('To approve this comment, visit: %s'), get_settings('siteurl').'/wp-admin/comment.php?action=mailapprovecomment&p='.$comment->comment_post_ID."&comment=$comment_id" ) . "\r\n"; -
wp-includes/post.php
799 799 // Trackback and ping functions 800 800 // 801 801 802 function add_ping($post_id, $uri) { // Add a UR Ito those already pung802 function add_ping($post_id, $uri) { // Add a URL to those already pung 803 803 global $wpdb; 804 804 $pung = $wpdb->get_var("SELECT pinged FROM $wpdb->posts WHERE ID = $post_id"); 805 805 $pung = trim($pung); … … 829 829 return $pung; 830 830 } 831 831 832 function get_pung($post_id) { // Get UR Is already pung for a post832 function get_pung($post_id) { // Get URLs already pung for a post 833 833 global $wpdb; 834 834 $pung = $wpdb->get_var("SELECT pinged FROM $wpdb->posts WHERE ID = $post_id"); 835 835 $pung = trim($pung); … … 838 838 return $pung; 839 839 } 840 840 841 function get_to_ping($post_id) { // Get any UR Is in the todo list841 function get_to_ping($post_id) { // Get any URLs in the todo list 842 842 global $wpdb; 843 843 $to_ping = $wpdb->get_var("SELECT to_ping FROM $wpdb->posts WHERE ID = $post_id"); 844 844 $to_ping = trim($to_ping); … … 1094 1094 1095 1095 foreach ($posts as $id => $post) { 1096 1096 1097 // UR I=> page name1097 // URL => page name 1098 1098 $uri = get_page_uri($id); 1099 1099 $attachments = $wpdb->get_results("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_type = 'attachment' AND post_parent = '$id'"); 1100 1100 if ( $attachments ) { -
wp-includes/query.php
728 728 $distinct = 'DISTINCT'; 729 729 } 730 730 731 // Category stuff for nice UR Is731 // Category stuff for nice URLs 732 732 733 733 global $cache_categories; 734 734 if ('' != $q['category_name']) { … … 787 787 $whichauthor .= ')'; 788 788 } 789 789 790 // Author stuff for nice UR Is790 // Author stuff for nice URLs 791 791 792 792 if ('' != $q['author_name']) { 793 793 if (stristr($q['author_name'],'/')) { -
wp-includes/rewrite.php
84 84 $url_split = explode('#', $url); 85 85 $url = $url_split[0]; 86 86 87 // Get rid of UR I?query=string87 // Get rid of URL ?query=string 88 88 $url_split = explode('?', $url); 89 89 $url = $url_split[0]; 90 90 -
wp-trackback.php
86 86 87 87 $dupe = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND comment_author_url = '$comment_author_url'"); 88 88 if ( $dupe ) 89 trackback_response(1, 'We already have a ping from that UR Ifor this post.');89 trackback_response(1, 'We already have a ping from that URL for this post.'); 90 90 91 91 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type'); 92 92 -
xmlrpc.php
328 328 return new IXR_Error(401, 'Sorry, this user can not edit the template.'); 329 329 } 330 330 331 /* warning: here we make the assumption that the weblog's UR Iis on the same server */331 /* warning: here we make the assumption that the weblog's URL is on the same server */ 332 332 $filename = get_settings('home') . '/'; 333 333 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 334 334 … … 363 363 return new IXR_Error(401, 'Sorry, this user can not edit the template.'); 364 364 } 365 365 366 /* warning: here we make the assumption that the weblog's UR Iis on the same server */366 /* warning: here we make the assumption that the weblog's URL is on the same server */ 367 367 $filename = get_settings('home') . '/'; 368 368 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 369 369 … … 1153 1153 } 1154 1154 } else { 1155 1155 // TODO: Attempt to extract a post ID from the given URL 1156 return new IXR_Error(33, 'The specified target UR Icannot 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.'); 1157 1157 } 1158 1158 $post_ID = (int) $post_ID; 1159 1159 1160 1160 1161 logIO("O","(PB) UR I='$pagelinkedto' ID='$post_ID' Found='$way'");1161 logIO("O","(PB) URL='$pagelinkedto' ID='$post_ID' Found='$way'"); 1162 1162 1163 1163 $post = get_post($post_ID); 1164 1164 1165 1165 if ( !$post ) // Post_ID not found 1166 return new IXR_Error(33, 'The specified target UR Icannot 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.'); 1167 1167 1168 1168 if ( $post_ID == url_to_postid($pagelinkedfrom) ) 1169 return new IXR_Error(0, 'The source UR I and the target URIcannot 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.'); 1170 1170 1171 1171 // Check if pings are on 1172 1172 if ( 'closed' == $post->ping_status ) 1173 return new IXR_Error(33, 'The specified target UR Icannot 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.'); 1174 1174 1175 1175 // Let's check that the remote site didn't already pingback this entry 1176 1176 $result = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post_ID' AND comment_author_url = '$pagelinkedfrom'"); … … 1184 1184 // Let's check the remote site 1185 1185 $linea = wp_remote_fopen( $pagelinkedfrom ); 1186 1186 if ( !$linea ) 1187 return new IXR_Error(16, 'The source UR Idoes not exist.');1187 return new IXR_Error(16, 'The source URL does not exist.'); 1188 1188 1189 1189 // Work around bug in strip_tags(): 1190 1190 $linea = str_replace('<!DOC', '<DOC', $linea); … … 1219 1219 } 1220 1220 1221 1221 if ( empty($context) ) // URL pattern not found 1222 return new IXR_Error(17, 'The source UR I 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.'); 1223 1223 1224 1224 $pagelinkedfrom = preg_replace('#&([^amp\;])#is', '&$1', $pagelinkedfrom); 1225 1225 … … 1257 1257 $post_ID = url_to_postid($url); 1258 1258 if (!$post_ID) { 1259 1259 // We aren't sure that the resource is available and/or pingback enabled 1260 return new IXR_Error(33, 'The specified target UR Icannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.');1260 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.'); 1261 1261 } 1262 1262 1263 1263 $actual_post = wp_get_single_post($post_ID, ARRAY_A); 1264 1264 1265 1265 if (!$actual_post) { 1266 1266 // No such post = resource not found 1267 return new IXR_Error(32, 'The specified target UR Idoes not exist.');1267 return new IXR_Error(32, 'The specified target URL does not exist.'); 1268 1268 } 1269 1269 1270 1270 $comments = $wpdb->get_results("SELECT comment_author_url, comment_content, comment_author_IP, comment_type FROM $wpdb->comments WHERE comment_post_ID = $post_ID");