[wp-trac] [WordPress Trac] #40542: Undefined index in strip_fragment_from_url function

WordPress Trac noreply at wordpress.org
Sat Jun 3 13:15:29 UTC 2017


#40542: Undefined index in strip_fragment_from_url function
-------------------------------+------------------------------
 Reporter:  betterstudio       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Canonical          |     Version:  4.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by betterstudio):

 Hi @ocean90
 I can't remember it now because i saw it 6 week ago in one of our
 customers site!

 It does not matter! You can check this code: {{{#!php
 <?php

 strip_fragment_from_url( 'http://betterstudio.com' );

 }}}

 That function will make a warning!

 Notice: Undefined index: path in .../wp.dev/wp-includes/canonical.php on
 line 570

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40542#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list