On another board someone is telling me that using a require_once on pluggable.php at the top of my plugin code is “bad practice” because it means that others cannot then override functions defined inside pluggable.php, and that what I should do is copy the functions in pluggable.php to another file which basically has a set of function_exists wrappers wrapped round the existing pluggable functions.
Which would seem to put a big onus on me to maintain a copy of pluggable.php.
If I don’t include it then my code fails because it cant find wp_get_current_user()
So is this really true or is this someone trying to fix a problem in their code by saying I should change mine.
- The topic ‘Including pluggable.php’ is closed to new replies.