Opened 11 years ago
Closed 11 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Administration | Version: | 4.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
11 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
wp-admin/includes/post.php