﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
9826	Prevent including pluggable.php by plugins	lilyfan		"It is a bad manner to include wp-includes/pluggable.php by plugins.

Some plugins (such as [http://wordpress.org/extend/plugins/events-calendar/ Events Calendar]) DOES the implementation, and cause confliction with other plugins which overloads the functions in pluggable.php

To prevent this implementation, insert some code to check the valid timing to load pluggable.php.

At line 478 of wp-settings.php 
{{{
if ( defined('WP_PLUGGABLE_READY') ) {
  die ( __('A bad plugin attempted premature load of pluggable.php') );
}
define ('WP_PLUGGABLE_READY', true);
require (ABSPATH . WPINC . '/pluggable.php');
}}}

At top of wp-includes/pluggable.php
{{{
<?php
if ( !defined('WP_PLUGGABLE_READY') ) {
  die ( __('A bad plugin attempted premature load of pluggable.php') );
}
}}}
"	enhancement	closed	low		Plugins	2.7.1	major	wontfix	has-patch	
