Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#46202 closed enhancement (duplicate)

Load a plugin only if it is used

Reported by: lawix's profile lawix Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

Hello

It would be nice if the core of wordpress natively handles the loading of the plugins according to the call or not by each of the pages for a widget or shortcode for example.

On my screenshot, I would need only xxx-card, wordpress-seo and wp-statistics for example

Thank's
William

Attachments (1)

bug_wp_loadplugin.png (47.8 KB) - added by lawix 6 years ago.

Download all attachments as: .zip

Change History (2)

#1 @earnjam
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Type changed from defect (bug) to enhancement
  • Version 5.0.3 deleted

@lawix Welcome to Trac!

You are correct in that WordPress does not use any type of autoloader, but there have already been long ongoing discussions in #36335 about it. For now, it's up to each plugin to responsibly load their code and assets only as needed.

I'm going to close this as a duplicate.

Note: See TracTickets for help on using tickets.