Opened 8 years ago
Last modified 8 years ago
#40569 new enhancement
next_post_link parameters $format and $link, have default values that produce awkward to use output
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.7.4 |
Component: | Formatting | Keywords: | |
Focuses: | Cc: |
Description
The default output when using the default next_post_link() is:
<a href="nextposturl" rel="next">Post Title Linked here</a> »
Note how the » is left outside of the linked text by default. I believe for most users this will cause a styling issue to fix as soon as you use this function, and otherwise, seems improper for a default output. I used next_post_link() with the following values to get what I think should be default output behavior
next_post_link( "%link", "%title »" );
Which outputs:
<a href="nextposturl" rel="next">Post Title Linked here »</a>
Note that the » is now inside of the linked text, and any css applied to the next post link will also affect the » by default, and no changes to function parameters would be required by users.
To implement this enhancement, I believe you would simply move the » into the default value for the $link parameter, and out of the $format parameter default value.