#59858 closed defect (bug) (fixed)
A typo in the parameter description of the wp_print_font_faces function
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 6.4 |
Component: | General | Keywords: | has-patch commit |
Focuses: | docs | Cc: |
Description
I was looking at the newly added functions and found something strange.
Line 25 of file wp-includes/fonts.php
* @type string $font_style Optional. The font-style property. Default 'normal'.
Here it is $font_style
, but I think the correct name is $font-style
.
For confirmation, "font_style" => "oblique 20deg 50deg" produces the output "font-style:normal;".
On the other hand, when "font-style" => "oblique 20deg 50deg" is written, the output is changed to "font-style:oblique 20deg 50deg;" as expected.
Change History (6)
This ticket was mentioned in PR #5645 on WordPress/wordpress-develop by @rajinsharwar.
15 months ago
#1
- Keywords has-patch added
#2
@
15 months ago
Seems it was introduced in: https://core.trac.wordpress.org/changeset/56500
#3
@
15 months ago
- Keywords commit added
- Milestone changed from Awaiting Review to 6.5
- Owner set to audrasjb
- Status changed from new to accepted
Thanks for spotting this! Self assigning for commit consideration.
#4
@
13 months ago
- Owner changed from audrasjb to hellofromTonya
- Status changed from accepted to assigned
Whoopsie. Thanks for catching this typo. Reassigning commit to me.
@hellofromTonya commented on PR #5645:
13 months ago
#6
Committed via https://core.trac.wordpress.org/changeset/57240.
Fixing the typo in $font-style doc block.
Trac ticket: https://core.trac.wordpress.org/ticket/59858