[wp-trac] [WordPress Trac] #53948: Missing View Post from Admin Bar AFTER Publish (not update)
WordPress Trac
noreply at wordpress.org
Tue Aug 24 00:27:34 UTC 2021
#53948: Missing View Post from Admin Bar AFTER Publish (not update)
--------------------------+---------------------
Reporter: vondelphia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Changes (by sabernhardt):
* keywords: needs-patch => has-patch
* milestone: Awaiting Review => 5.9
Comment:
In [attachment:"53948-admin-bar.php.diff"], I chose to hide the View Post
link on page load because the link does not resolve yet. This would still
require removing the `hidden` class when the editor publishes (and/or
autosaves) the post.
On the other hand, the Permalink section already shows the same preview
link when the page loads. If it's better to show the link immediately in
the toolbar as well, the `meta` class line could be removed. Then the link
should not need any editor script or hook.
I preferred setting the ID to 'view', though 'preview' might make more
sense because it starts with the preview URL. Either option updates when
clicking Publish.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53948#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list