#26171 closed defect (bug) (fixed)
Unit Tests :: formatting function get_url_in_content
Reported by: | mdbitz | Owned by: | |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Formatting | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (2)
Change History (4)
@
11 years ago
modification to return false in all cases where no links exist, compliant with coding standards
Note: See
TracTickets for help on using
tickets.
Unit Tests of get_url_in_content formatting function