~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to wp-includes/formatting.php

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2012-09-12 14:52:14 UTC
  • mfrom: (1.2.24)
  • Revision ID: package-import@ubuntu.com-20120912145214-ezu3pvvyt3membhx
Tags: 3.4.2+dfsg-1
* New upstream security & bugfix release. 
* Also setup languages symlink in setup-mysql. Closes: #684628
  Thanks to Jun NOGATA <nogajun@gmail.com> for the analysis.
* Add new patch 011support-symlinks-for-plugins.patch grabbed
  in the upstream ticket to allow plugin directories to be
  symlinks (which is required for the Debian package since
  we put symlinks in /var/lib/wordpress/wp-content/plugins/).
  Closes: #686228

Show diffs side-by-side

added added

removed removed

Lines of Context:
3236
3236
 * @return string URLs starting with the http or https protocol, separated by a carriage return.
3237
3237
 */
3238
3238
function sanitize_trackback_urls( $to_ping ) {
3239
 
        $urls_to_ping = preg_split( '/\r\n\t /', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY );
 
3239
        $urls_to_ping = preg_split( '/[\r\n\t ]/', trim( $to_ping ), -1, PREG_SPLIT_NO_EMPTY );
3240
3240
        foreach ( $urls_to_ping as $k => $url ) {
3241
3241
                if ( !preg_match( '#^https?://.#i', $url ) )
3242
3242
                        unset( $urls_to_ping[$k] );