#43040 closed defect (bug) (fixed)
capital_P_dangit regression
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 5.1 |
Component: | Formatting | Keywords: | has-patch commit has-unit-tests |
Focuses: | Cc: |
Description
Recent code standards fixes in #41057 broke the function capital_P_dangit for some cases. The problem is kinda obvious if you look at wp-includes/formatting.php:5096.
<?php return str_replace( 'WordPress', 'WordPress', $text );
Attachments (1)
Change History (6)
#2
@
6 years ago
- Keywords commit has-unit-tests added
- Milestone changed from Awaiting Review to 5.0
Hi and welcome to Wordpress Trac @superdav42 ;)
Great catch, thanks for the ticket, patch, and unit tests, everything is spot on :)
FYI: The change can be seen at line ~5080 in https://core.trac.wordpress.org/changeset/42343/trunk/src/wp-includes/formatting.php
Note: See
TracTickets for help on using
tickets.
Patch with fix and unit tests