[wp-trac] [WordPress Trac] #14760: wp_get_shortlink not working on pages
WordPress Trac
noreply at wordpress.org
Thu Aug 15 20:31:31 UTC 2013
#14760: wp_get_shortlink not working on pages
--------------------------------------------------+------------------
Reporter: mattsay | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.7
Component: General | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch needs-testing dev-feedback |
--------------------------------------------------+------------------
Comment (by sillybean):
Actually, I don't think we need a case. If there's no permalink structure
set, we fail the `'' != get_option('permalink_structure')` test and
wp_get_shortlink returns ?page_id=. The button doesn't show. If there is a
permalink structure, the button shows. We get a ?p= shortlink instead of
?page_id=, but since it just redirects, I don't see that as a problem.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14760#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list