[wp-trac] [WordPress Trac] #26171: Unit Tests :: formatting function get_url_in_content

WordPress Trac noreply at wordpress.org
Fri Nov 22 19:40:37 UTC 2013


#26171: Unit Tests :: formatting function get_url_in_content
--------------------------+-----------------------------
 Reporter:  mdbitz        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:
 Severity:  minor         |   Keywords:  has-patch
--------------------------+-----------------------------
 Attached are unit tests of the '''get_url_in_content''' formatting
 function.

 During review the function had different return values for cases when no
 links are found.

 empty content => return ""
 no links => return false;

 I've attached a diff of the formatting.php file that normalizes this
 behavior to return false in all cases.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26171>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list