[wp-trac] [WordPress Trac] #32322: Custom permalink structure incorrect for Future posts
WordPress Trac
noreply at wordpress.org
Wed Jun 3 04:42:28 UTC 2015
#32322: Custom permalink structure incorrect for Future posts
-------------------------------------------------+-------------------------
Reporter: greencode | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Permalinks | Review
Severity: normal | Version: 4.2
Keywords: needs-patch good-first-bug needs- | Resolution:
unit-tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by kdoole):
Howdy,
@johnbillion, you made it too easy! :) Here's an initial patch, just to
see how this looks. Hope i'm doing this right...
I swapped the if and else here -- it seemed to make sense asking "should
we use a short link" instead of "should we not use a fancy link."
Besides the several opportunities in `get_permalink` to clean up the code
style, how's this look?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32322#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list