Opened 9 years ago
Closed 9 years ago
#33541 closed defect (bug) (fixed)
"View Page" button takes to 404 when page is set to "Pending Review"
Reported by: | wpdev101 | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
This happens only when permalinks are turned on ( not set to Default ).
Steps to reproduce:
- Add new page
- Set status to "Pending Review"
- Click "Save as Pending"
- Click the "View Page" below the title input
The "View Page" button below the title input has a regular URL ( as it was published ) instead of the preview URL, so it leads to a 404 page.
The issue happens for posts as well, not just pages.
The suggested fix is in get_sample_permalink_html function ( wp-admin/includes/post.php ) by changing:
if( 'draft' == $post->post_status ) {
to
if( 'draft' == $post->post_status || 'pending' == $post->post_status ) {
Attachments (2)
Change History (6)
#1
in reply to:
↑ description
@
9 years ago
I am new to submitting bug fixes so I apologize if I did something wrong ( seems I did with the file update, it's not showing changed line ). I'll learn more about it.
Note: See
TracTickets for help on using
tickets.
wp-admin/includes/post.php