[wp-gsoc] [Summer of Code] #370: Valid URLs check at WP_Relocate instanciation

Summer of Code noreply at wordpress.org
Wed Sep 4 13:37:48 UTC 2013


#370: Valid URLs check at WP_Relocate instanciation
-------------------------+-------------------------------------
 Reporter:  lpointet     |       Type:  defect
   Status:  new          |   Priority:  minor
Milestone:               |  Component:  Migration & Portability
 Keywords:  needs-patch  |
-------------------------+-------------------------------------
 The old URL (constructor's first argument) is never checked and the new
 one is checked twice.

 {{{
 if ( ! self::is_valid_url( $new ) )
         throw new InvalidArgumentException(
                         'Old site URL is not a valid URL' );
 if ( ! self::is_valid_url( $new ) )
         throw new InvalidArgumentException(
                         'New site URL is not a valid URL' );
 }}}

--
Ticket URL: <http://gsoc.trac.wordpress.org/ticket/370>
Summer of Code <http://gsoc.trac.wordpress.org>
My example project


More information about the wp-gsoc mailing list