+44 0330 223 3428
Call Us
+44 0330 223 3428

WPTavern: Workarounds for the Page Template Bug in WordPress 4.9

WPTavern: Workarounds for the Page Template Bug in WordPress 4.9

WordPress 4.9 “Tipton” was released last week and although it’s largely trouble-free, there is one particular issue users and developers are running into that’s causing frustration. In 4.9, custom page templates that are created fail to display in the Template drop-down menu. The issue is related to changes made to the file editor.

Previous versions of WordPress listed files 2-levels deep in the editor. In 4.9, the entire directory tree for a theme is listed regardless of its depth. Caching was added to help limit the performance impacts of loading large WordPress themes. “An unintended side effect of the caching is that the same directory listing function get_files is used both for the theme editor and for gathering page templates,” Weston Ruter, Co-Release Lead for WordPress 4.9 said.

Within the trac ticket, developers suggests that a button be added that flushes all caches or disabling the cache if WP_DEBUG is set to true. Neither suggestion turned into a patch committed to core. Instead, Ruter has released a plugin as a workaround that flushes the template cache. Other workarounds include, bumping the theme’s version, running the wp cache flush command in WP CLI, or waiting 60 minutes for the cache to expire.

The ticket is marked as a high priority but because of the upcoming holidays in the US and WordCamp US next weekend, it could be at least a few weeks before WordPress 4.9.1 is released.



Source: WordPress

Related Post
BuddyPress: BuddyPress 3.0.0 “Apollo”

BuddyPress: BuddyPress 3.0.0 “Apollo” BuddyPress 3.0.0 “Apollo” is now available for immediate download from the WordPress.org plugin repository, or right from your WordPress Dashboard. “Apollo” focuses on various improvement for developers, site builders and site managers. Say hello to “Nouveau”! A bold reimagining of our legacy templates, Nouveau is our celebration of 10 years of BuddyPress! […]

Read more
WPTavern: WordPress 4.9.6 Released With User Data Export and Removal Tools

WPTavern: WordPress 4.9.6 Released With User Data Export and Removal Tools WordPress 4.9.6 has been released and is considered a privacy and maintenance release. Traditionally, minor versions contain security and bug fixes. This release is different as it includes a number of privacy related features such as: Privacy Policy page template/creation User Data Request Handling […]

Read more
Dev Blog: WordPress 4.9.6 Privacy and Maintenance Release

Dev Blog: WordPress 4.9.6 Privacy and Maintenance Release WordPress 4.9.6 is now available. This is a privacy and maintenance release. We encourage you to update your sites to take advantage of the new privacy features. Privacy The European Union’s General Data Protection Regulation (GDPR) takes effect on May 25. The GDPR requires companies and site […]

Read more