Ryan Boren
aec821c651
Strip trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:42:15 +00:00
Peter Westwood
2702a216c4
Fix remaining notice when using closures. Fixes #10493 props scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14691 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 13:41:02 +00:00
Peter Westwood
bfb56d204b
Fix notices/usage of closures as action/filter handlers. Fixes #10493 based on patch from scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14690 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 08:10:39 +00:00
Peter Westwood
ed9ee9a2da
Ensure that apply_filters_ref_array passes the result of the filter to the next filter. Fixes #12723 props scribue.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13906 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 21:39:18 +00:00
Andrew Nacin
e34ca97ae0
Change @since 3.0 to @since 3.0.0.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13827 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:13:36 +00:00
Peter Westwood
8d9aac849f
Introduce apply_filters_ref_array(). See #9886 props scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13756 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 21:24:07 +00:00
Peter Westwood
c50eaee3d3
Fix a possible undefined offset warning in do_action. Fixes #11241 props chrisbliss18.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13674 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 21:58:17 +00:00
Andrew Nacin
f9e7db18bf
Fix typo in remove_all_filters() that prevented hooks from being removed by priority. fixes #12492 , props chrisbliss18.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13567 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-03 06:41:19 +00:00
Ryan Boren
8ef8b7bad5
Trailing whitespace cleanup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Peter Westwood
754fe19661
Allow people to attach PHP 5.3 Closures to filters and actions. Fixes #10493 props scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12641 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 08:27:02 +00:00
Ryan Boren
8b7f26b62c
Improve do_action performance. Make an associative array. Props koopersmith. fixes #10561
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12464 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-21 08:47:34 +00:00
Peter Westwood
91dafd7a61
Improve _wp_filter_build_unique_id to give more consistent behaviour and make filter removal reliable for class based filters. Fixes #10535 props dd32.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12090 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-22 19:33:11 +00:00
Peter Westwood
2089c179d5
Correct phpDoc comment for add_filter. Fixes #10164 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11617 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-20 18:14:46 +00:00
Ryan Boren
ed53923a3b
Menu fixes
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11565 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-15 00:22:53 +00:00
Ryan Boren
cff6ae81fc
Make sure filter IDs are unique. Props bkrausz, hakre. fixes #8723
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11409 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-20 16:59:01 +00:00
Andrew Ozz
8757f218ea
Remove slash from plugin_basename(), props alexrabe, fixes #9561
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11072 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-23 21:45:38 +00:00
Andrew Ozz
d67f8147d5
Make plugin_dir() and plugin_basename() work for mu-plugins directory, props Denis-de-Bernardy, fixes #9561
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11069 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-23 08:16:06 +00:00
Mark Jaquith
842a28e67c
Introducing plugin_dir_path(__FILE__) and plugin_dir_url(__FILE__) ... simple API functions for determining the directory path/url of the current plugin file
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10765 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-10 19:50:55 +00:00
Peter Westwood
4b9f870485
PHPdoc updates. See €8805 props jacobsantos.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10411 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-22 21:17:52 +00:00
Ryan Boren
fab4e5a68e
Unused var fixes. Props DD32. see #8220
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9716 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 18:10:35 +00:00
Andrew Ozz
2a99d513fc
Fix constant name in phpDoc, props alexrabe, fixes #8123
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9611 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-11 12:43:04 +00:00
Peter Westwood
3ec2c1ea4e
Notice fixes. See #7509 props DD32.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9177 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-14 21:08:28 +00:00
Peter Westwood
a8d7ff1742
Fix Notice. When nothing exists for an action or filter.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9000 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-27 09:53:43 +00:00
Peter Westwood
047ec90dee
phpDoc corrections for wp-includes. See #7550 props jacobsantos.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8782 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-30 21:23:43 +00:00
Peter Westwood
120a3d3cf1
remove_all_{actions|filters}. Fixes #7216 props filosofo and santosj.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8660 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-17 11:15:38 +00:00
Ryan Boren
4ea763f026
Update since tags. Props santosj. fixes #5625
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8587 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-08 04:15:03 +00:00
Ryan Boren
7d0bd55969
Plugin uninstall hooks from santosj. fixes #5625
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8585 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-07 23:39:27 +00:00
Mark Jaquith
3cab99fbd2
Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8572 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-06 20:31:54 +00:00
Ryan Boren
6cc11cbf1e
Allow wp-content to exist outside of webroot. Props sambauers. see #6938
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 17:55:24 +00:00
Ryan Boren
3a18b96c9b
Trailing whitespace cleanup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Ryan Boren
d4c55e7b87
Use PLUGINDIR in plugin_basename(). Props hansengel. fixes #5665
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6629 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-16 19:11:15 +00:00
Ryan Boren
f5564e74c8
phpdoc tuneup from darkdragon. see #5611
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6585 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-09 17:48:00 +00:00
Ryan Boren
6e2cb47d4e
Filter and action optimizations and phpdoc updates from darkdragon. fixes #5338
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6361 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 05:56:38 +00:00
Ryan Boren
c9946fea10
Change 'all' hook calling. Bring filters and actions back into one array for back-compat. see #5231
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6324 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-08 01:05:43 +00:00
Ryan Boren
d5ed4b3d7d
has_action and has_filter. see #5231
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6320 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-07 04:30:11 +00:00
Ryan Boren
35f22f56cf
Add missing type arg on call to _wp_filter_build_unique_id(). see #5231
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6319 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-06 21:39:22 +00:00
Ryan Boren
f69f6c0070
current_fiter() from tellyworth. fixes #5232
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6318 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-06 21:38:04 +00:00
Ryan Boren
6d61400949
Separate action and filter arrays. Get rid of filter merging. fixes #5231
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6316 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-06 18:31:43 +00:00
Ryan Boren
a22e298dbd
phpdoc for plugin API. Props darkdragon. fixes #5225
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6276 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-19 17:45:08 +00:00
Peter Westwood
6234be8d22
Add documentation of _wp_filter_build_unique_id(). Fixed #5053 props darkdragon.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6200 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-07 07:31:14 +00:00
Ryan Boren
7a43c01e08
Remove trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Ryan Boren
e9391140a7
Strip lines that contain only whitespace down to newlines.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6025 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:19:20 +00:00
Ryan Boren
37704dc738
explicitly check next() against FALSE in do_action_ref_array(). Props Denis-de-Bernardy, Otto42, Nazgul, santosj, DD32. fixes #4625 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5958 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-28 19:06:56 +00:00
Ryan Boren
73d5479b43
Fix how wp_filter array is keyed. Props santosj/darkdragon. fixes #3875 for 2.3
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5936 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-24 14:18:08 +00:00
Peter Westwood
de6855386a
Fix plugin basename for Windows servers. Fixes #3002 props Ozh
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5924 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-23 16:07:21 +00:00
Mark Jaquith
8cdb0045f1
explicitly check next() against FALSE when iterating through filters. Props Denis-de-Bernardy, Otto42, Nazgul, santosj (go team effort!). fixes #4625 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5857 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-08 17:41:46 +00:00
Ryan Boren
23018b434d
Make sure wp_actions is set before counting.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5413 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-08 17:59:52 +00:00
Ryan Boren
622bc51507
Fix did_action to properly account for actions that have no callbacks attached.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5409 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-07 23:22:50 +00:00
rob1n
e191edb9ca
Return based on whether the hook was removed or not. Props mdawaffe. fixes #4223
...
Note that this will almost definitely *not* affect existing implementations. The way most code is set up now is to just call remove_filter() or remove_action().
git-svn-id: https://develop.svn.wordpress.org/trunk@5393 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-04 23:27:12 +00:00
Ryan Boren
c113ddaa1f
Avoid php notices.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@5202 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-07 05:24:37 +00:00