[wp-trac] [WordPress Trac] #21966: WordPress Bug - PHP Warning Message "Unable to parse URL"
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 23 16:19:05 UTC 2012
#21966: WordPress Bug - PHP Warning Message "Unable to parse URL"
------------------------------------+-----------------------
Reporter: onetarek | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.5
Component: Warnings/Notices | Version: 3.4.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------
Changes (by onetarek):
* keywords: has-patch => has-patch dev-feedback
* severity: minor => normal
Comment:
Replying to [comment:8 SergeyBiryukov]:
I tested the patch.
It does not solve the problem. I am still getting that warning message.
I just edited wp-includes/formatting.php file with following codes from
the patch file.
{{{
case 'ping_sites':
$value = strip_tags( $value );
$value = wp_kses_data( $value );
$ping_sites = array();
$services = explode( "\n", $value );
foreach ( (array) $services as $service ) {
$service = esc_url_raw( trim( $service ) );
if ( '' != $service )
$ping_sites[] = $service;
}
$value = implode( "\n", $ping_sites );
break;
}}}
I tested with wp 3.4.2
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21966#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list