WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#10760 closed defect (bug) (fixed)

"Change Permalinks" button shows up when page is on front

Reported by: simonwheatley Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

When a page is set as the front page, the "Change Permalinks" link shows up erroneously (normally this should only happen if the permalink scheme is undefined or does not contain %pagename% or %postname%).

The attached patch prevents the link from showing if the page being edited is the front page.

Attachments (1)

no-change-permalinks-if-is-front.diff (1.0 KB) - added by simonwheatley 5 years ago.
Adds a check to see whether the page being edited is the front page before showing the "Change Permalinks" link

Download all attachments as: .zip

Change History (3)

simonwheatley5 years ago

Adds a check to see whether the page being edited is the front page before showing the "Change Permalinks" link

comment:1 azaozz5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11908]) Don't show "Change Permalinks" button when editing the page set as "Front page", props simonwheatley, fixes #10760

comment:2 azaozz5 years ago

  • Milestone changed from Unassigned to 2.9
Note: See TracTickets for help on using tickets.