Sergey Biryukov
47ed56f38f
Code Modernization: Replace `dirname( __FILE__ )` calls with `__DIR__` magic constant.
...
This avoids the performance overhead of the function call every time `dirname( __FILE__ )` was used instead of `__DIR__`.
This commit also includes:
* Removing unnecessary parentheses from `include`/`require` statements. These are language constructs, not function calls.
* Replacing `include` statements for several files with `require_once`, for consistency:
* `wp-admin/admin-header.php`
* `wp-admin/admin-footer.php`
* `wp-includes/version.php`
Props ayeshrajans, desrosj, valentinbora, jrf, joostdevalk, netweb.
Fixes #48082 .
Built from https://develop.svn.wordpress.org/trunk@47198
git-svn-id: http://core.svn.wordpress.org/trunk@46998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-06 06:33:11 +00:00
Ryan McCue
0def38c30b
Autoload: Introduce shim for SPL autoloading.
...
For PHP 5.2, SPL can be disabled. As SPL provides the support for multiple autoloaders, this needs to be shimmed if not available.
Fixes #36926 .
Built from https://develop.svn.wordpress.org/trunk@37636
git-svn-id: http://core.svn.wordpress.org/trunk@37604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-06 03:24:29 +00:00
Scott Taylor
84da11d918
Pass `false` as the 2nd argument to `class_exists()` to disable autoloading and to not cause problems for those who define `__autoload()`.
...
Fixes #20523 .
Built from https://develop.svn.wordpress.org/trunk@34348
git-svn-id: http://core.svn.wordpress.org/trunk@34312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-20 03:52:25 +00:00
Drew Jaynes
d33c807723
Fix some documentation typos in various core files.
...
Props vlajos.
Fixes #29199 .
Built from https://develop.svn.wordpress.org/trunk@29479
git-svn-id: http://core.svn.wordpress.org/trunk@29257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-13 03:56:17 +00:00
Scott Taylor
b9afafffe3
`hackificator` complains if you call `include 'file.php'` without the parens, needs to be `include( 'file.php' )`
...
See #27881 .
Built from https://develop.svn.wordpress.org/trunk@28479
git-svn-id: http://core.svn.wordpress.org/trunk@28306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-18 20:52:15 +00:00
Ryan Boren
6c9f23bbab
Update SimplePie to 1.3.1. Props rmccue, ocean90. fixes #22321
...
git-svn-id: http://core.svn.wordpress.org/trunk@22366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-05 14:25:25 +00:00
Andrew Nacin
1c0611a1df
Use ABSPATH . WPINC rather than dynamically building the include path. see #21183 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@21645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-28 17:27:18 +00:00
Andrew Nacin
405a995659
Update to SimplePie 1.3. props rmccue.
...
Uses individual files for each class. We now conditionally load only the pieces
we need, resulting in less memory usage. Also easier to maintain now that it is
not a single 387KB file.
fixes #21183 .
git-svn-id: http://core.svn.wordpress.org/trunk@21644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-28 17:24:33 +00:00
ryan
8c114f0c54
Pinking shears
...
git-svn-id: http://core.svn.wordpress.org/trunk@20715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-03 16:41:59 +00:00
ryan
f483d85de2
Switch from Net_IPv6 to SimplePie_Net_IPv6. Props stephdau, rmccue. fixes #19991
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 20:17:23 +00:00
ryan
b447ad26e6
Upgrade SimplePie to 1.2.1. Props nacin. fixes #18309
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-09 20:15:22 +00:00
nacin
8d9cf65725
s/occured/occurred/. props aldenta, fixes #15653 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-02 23:30:21 +00:00
nacin
b74a1b0603
Fix int cast usage in simplepie. see #12334 , props rlerdorf.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@13935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-02 04:37:42 +00:00
azaozz
bfb5ac0d25
Safely include class-json.php, class-simplepie.php and class-snoopy.php, props alexkingorg, fixes #11827
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-12 13:22:43 +00:00
ryan
39febf48a3
windows-1252 is canonical, not Windows-1252. Props Denis-de-Bernardy. fixes #11219
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@12528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-24 02:20:05 +00:00
ryan
5bde977c6c
Update SimplePie to 1.2. fixes #10392
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@11938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-15 16:33:59 +00:00
ryan
2ac19ec179
Fix compat with zend.ze1_compatibility_mode. Props gsnedders. fixes #10222 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@11657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-27 22:12:18 +00:00
ryan
3737553e65
Reduce SimplePie memory usage. Props link92. fixes #10147 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@11599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-18 19:38:08 +00:00
ryan
fa16c202bc
rename simplepie.inc to class-simplepie.php. fixes #9295
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@10747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-09 00:25:48 +00:00
markjaquith
b0a23b7940
Milestone for considering alternative feed parsing library was moved past 2.1, so dropping this for now.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@4557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-11-30 08:53:33 +00:00
markjaquith
d703e302db
Rename SimplePie name to follow standard
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@4390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-10-13 10:18:27 +00:00