+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
WPTavern: WordPress.com Secures $2.4 Million in Funding from Google and Partners to Build a Publishing Platform for News Organizations

WPTavern: WordPress.com Secures .4 Million in Funding from Google and Partners to Build a Publishing Platform for News Organizations WordPress.com has announced plans to create a new, open source publishing platform that caters to small and medium-sized news organizations. The Google News Initiative has contributed $1.2 million towards the development of “Newspack” on top of […]

Read more
Matt: My TED Video on the Future of Work

Matt: My TED Video on the Future of Work I was thrilled to participate in TED’s new video series, The Way We Work, and not surprisingly I made the case that distributed work is where everything is headed. &version; Why Working from Home Is Better for Business This company is so dedicated to remote working […]

Read more
WPTavern: WooCommerce Blocks is Now a Feature Plugin, Version 1.3.0 Introduces 6 New Blocks

WPTavern: WooCommerce Blocks is Now a Feature Plugin, Version 1.3.0 Introduces 6 New Blocks WooCommerce Blocks 1.3.0 was released yesterday with six new blocks. Previously, the plugin allowed users to display a grid of products by category. The new version introduces a Featured Product Block with design options for customizing nearly everything about the display, […]

Read more