[wp-trac] [WordPress Trac] #43563: Custom Page Template not working if page slug name is too short

WordPress Trac noreply at wordpress.org
Fri Mar 16 00:34:35 UTC 2018


#43563: Custom Page Template not working if page slug name is too short
--------------------------------------+-----------------------------
 Reporter:  richardevcom              |      Owner:
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  General                   |    Version:  4.9.4
 Severity:  normal                    |   Keywords:
  Focuses:  administration, template  |
--------------------------------------+-----------------------------
 Hi.

 I was trying to create ''Custom Page Template'' named "''Darbi''". I
 created '''page-darbi.php''' template file, added '''Template name:
 Darbi''' comment line and then assigned the tempalate in page editor, but
 after save nothing changed and page was returning '''index.php'''.

 I was digging around and when I changed the page slug name to 6+
 characters long it worked so my guess is that '''the issue is with page
 slug name length and custom page template functionality'''.

 I haven't tested this on earlier versions but in stackoverflow.com there
 were similar issues with versions 4.7 and up.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43563>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list