WordPress.org

Make WordPress Core

Opened 2 months ago

Closed 2 months ago

#48595 closed defect (bug) (invalid)

Twenty Twenty: Missing sidebar.php

Reported by: mervb1 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: close
Focuses: Cc:
PR Number:

Description

Theme without sidebar.php is deprecated since version 3.0.0 with no alternative available. Please include a sidebar.php template in your theme.

Might be a good idea to add that file as WP core requires it...

Change History (4)

#1 @SergeyBiryukov
2 months ago

  • Component changed from General to Bundled Theme

#2 @williampatton
2 months ago

Hey @mervb1 thank you for opening this ticket and reporting this.

Could you let me know what parts of WP core require that a theme has a sidebar.php file? We worked on this theme without one and ran into no troubles and I have viewed many themes without one before as well and noticed nothing broken due to it.

#3 in reply to: ↑ description @jeherve
2 months ago

  • Keywords close added

Theme without sidebar.php is deprecated since version 3.0.0 with no alternative available. Please include a sidebar.php template in your theme.

This message comes from Core itself:
https://core.trac.wordpress.org/browser/branches/5.3/src/wp-includes/theme-compat/sidebar.php#L9

@mervb1 This may be happening because one of your plugins is trying to load the sidebar, but none can be found in Twenty Twenty. I would recommend that you deactivate each one of your plugins, one at a time, until the error disappears. When it does, I would suggest contacting the plugin author to let them know about the issue; they may be able to update their plugin to take plugins without a sidebar.php file into accounts.
You'll probably want to start with plugins that may add custom post types and custom displays for those post types.

#4 @ianbelanger
2 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.