[wp-trac] [WordPress Trac] #27441: SHORTINIT - formatting.php required by some functions
WordPress Trac
noreply at wordpress.org
Mon Apr 28 01:50:37 UTC 2014
#27441: SHORTINIT - formatting.php required by some functions
----------------------------+------------------------------
Reporter: jesin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 3.8.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+------------------------------
Comment (by maratbn):
In addition, calling 'plugin_dir_path(...)' or 'plugin_dir_url(...)' which
are in 'plugin.php' in SHORTINIT mode results in PHP error "Call to
undefined function trailingslashit()", which is also in 'formatting.php'.
Seeing this with WordPress version 3.9
I propose moving any function in 'formatting.php' that is a dependency of
any function available in SHORTINIT mode into 'functions.php'.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27441#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list