Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#46202 closed enhancement (duplicate)

Load a plugin only if it is used

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

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 8 years ago.

Download all attachments as: .zip

Change History (2)

#1 @earnjam
8 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
  • Type defect (bug)enhancement
  • Version 5.0.3

@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.