[wp-trac] [WordPress Trac] #59834: While we update wordpress to version 6.4 getting wrong templates loaded

WordPress Trac noreply at wordpress.org
Thu Nov 9 12:58:56 UTC 2023


#59834: While we update wordpress to version 6.4 getting wrong templates loaded
-------------------------------+------------------------------
 Reporter:  gregoiresailland   |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  6.4
 Severity:  blocker            |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  template
-------------------------------+------------------------------

Comment (by web360pl):

 Replying to [comment:6 joemcgill]:
 > Hi all, I have a suspicion that the issues being reported here could be
 related to the same problems being reported in #59847 and something with
 the way Polylang calls `get_stylesheet_directory()` and/or
 `get_template_directory` is causing the wrong paths be saved to global
 variables prior to the theme being setup.
 >
 > I would be grateful if someone can test the PR from that ticket to see
 if it addresses this issue as well.

 Hi joemcgill. I changed the /wp-includes/theme.php file according to both
 ways you suggested in that thread and neither solved the problem. Still
 all pages run the main page template (front-page.php) and the translation
 pages (except the main page) return a 404 error. Downgrading the wordpress
 version to 6.3.2 solves the problem.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59834#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list