Andrew Nacin
e430a0d730
Close an HTML tag inside the add_filter() inline doc. props johnbillion, fixes #24772 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24711 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-16 13:59:43 +00:00
Andrew Nacin
0f4d4c5325
Add a delimiter to _wp_filter_build_unique_id()'s handling of static method callbacks. props scribu, fixes #23265 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24251 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-14 15:55:21 +00:00
Sergey Biryukov
891333e1cb
Fix several copy/paste errors in register_deactivation_hook() description. props Caspie. fixes #24097 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23999 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-16 09:53:02 +00:00
Helen Hou-Sandi
1ebf4c8cb4
Correct phpdoc for wp-includes/plugin.php: wp-content/plugins/, not wp-content/plugin/. props technosailor. fixes #23024 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23190 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:49:55 +00:00
Andrew Nacin
9c7a3a6c68
Revert [21287] until #21169 goes through. see #21321 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21299 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-21 20:24:21 +00:00
Andrew Nacin
50cd56f8fd
Clarify the return value of has_filter() and has_action(). It returns a boolean if only the first argument is specified. If the second argument is specified, it returns false or an integer, which means it may return a non-boolean value that evaluates to false (so, 0), so you should take care to use the === operator.
...
Correct the function definition of remove_filter() and remove_action(), which 'accepted' an $accepted_args argument, but did not require or use it.
fixes #19417 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21288 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 13:54:42 +00:00
Andrew Nacin
11e877bcb8
Remove unnecessary is_null() checks from the worker loops inside do_action(), apply_filters(), etc. fixes #21321 . see #21169 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21287 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 05:25:37 +00:00
Ryan Boren
2b186b0c45
Lose EOF ?>. Clean up EOF newlines. fixes #12307
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Ryan Boren
5e76729992
One newline is enough.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +00:00
Ryan Boren
676ba7043e
Use one space, not two, after trailing punctuation. fixes #19537
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Andrew Nacin
74567278af
Revert other stuffs from [19374].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19376 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 15:43:57 +00:00
Andrew Nacin
7c181a42bf
Set $parent_file for post-new.php when show_in_menu is a file. Provides for correct top-level highlighting. $submenu_file remains set to expect a post-new.php menu. see #19125 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19374 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 15:35:57 +00:00
Jon Cave
82c0f09c09
Fix typos in documentation (wp-includes/[i-z]). See #18560 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-05 19:08:15 +00:00
Ryan Boren
916cdd6586
Grammar fix. Props lukeschlather, markmcwilliams. fixes #17315
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18507 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-04 16:03:53 +00:00
Ryan Boren
61e17b180f
Avoid array push/pops for empty filters and actions. fixes #17110
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17638 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-14 18:05:30 +00:00
Andrew Nacin
51396e1e89
_doing_it_wrong takes three arguments. fixes #15824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16955 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 17:14:25 +00:00
Peter Westwood
26f81c3629
Switch to _doing_it_wrong(). See #15824
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16940 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 11:31:00 +00:00
Mark Jaquith
7647480a17
Revert [15829] for now, consider better solution for 3.2. see #13550
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16575 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-24 20:25:26 +00:00
Andrew Nacin
305fbe129d
Only a static class method or function can be used in an uninstall hook. props scribu, fixes #13786 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16339 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 09:45:57 +00:00
scribu
9cd7bdec08
Apply filter in plugin_basename(). Props vladimir_kolesnikov. Fixes #13550
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15829 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 13:47:40 +00:00
Andrew Nacin
9494e4ce7e
Phpdoc argument/@param cleanups. props duck_, see #14783 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
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