Commit Graph

49 Commits

Author SHA1 Message Date
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
Matt Mullenweg 3be1be3815 Because of the next we should always do a reset.
git-svn-id: https://develop.svn.wordpress.org/trunk@5170 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-02 07:46:05 +00:00
Matt Mullenweg 0b78f9638c Fixes bottlenecks found in filter system using xdebug + kcachegrind. merge_filters was being called 1000+ times.
git-svn-id: https://develop.svn.wordpress.org/trunk@5169 602fd350-edb4-49c9-b593-d223f7449a82
2007-04-02 07:03:38 +00:00
rob1n 44bb2a71f1 PHPdoc for plugin.php. Props Martin10. fixes #3852
git-svn-id: https://develop.svn.wordpress.org/trunk@5142 602fd350-edb4-49c9-b593-d223f7449a82
2007-03-29 02:45:34 +00:00
Ryan Boren 0e79a6014b add and apply filter optimizations from FraT. fixes #3875
git-svn-id: https://develop.svn.wordpress.org/trunk@4955 602fd350-edb4-49c9-b593-d223f7449a82
2007-02-28 01:09:20 +00:00
Ryan Boren 664f8de0db did_action()
git-svn-id: https://develop.svn.wordpress.org/trunk@4630 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-08 03:45:34 +00:00
Mark Jaquith db44b0a561 Bunch of whitespace and coding standardization.
git-svn-id: https://develop.svn.wordpress.org/trunk@4626 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-07 03:57:23 +00:00
Mark Jaquith 2cc7fdd66b Code cleanup: wp-includes/plugin.php
git-svn-id: https://develop.svn.wordpress.org/trunk@4394 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-13 14:01:53 +00:00
Mark Jaquith bc7cd93309 case insensitive sorting. props Nazgul. fixes #3108
git-svn-id: https://develop.svn.wordpress.org/trunk@4289 602fd350-edb4-49c9-b593-d223f7449a82
2006-10-04 03:49:56 +00:00
Ryan Boren 7d25a72195 do_action_ref_array(). fixes #3125
git-svn-id: https://develop.svn.wordpress.org/trunk@4186 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-12 17:45:23 +00:00
Ryan Boren 387124c66c Pass along the modified string instead of the original. fixes #3118
git-svn-id: https://develop.svn.wordpress.org/trunk@4179 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-10 17:16:20 +00:00
Ryan Boren 23d84fac79 do_action and apply_filters arg passing sanity from mdawaffe. fixes #3116
git-svn-id: https://develop.svn.wordpress.org/trunk@4177 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-08 23:19:29 +00:00
Ryan Boren 826dd2da08 Specify number of accepted args.
git-svn-id: https://develop.svn.wordpress.org/trunk@4176 602fd350-edb4-49c9-b593-d223f7449a82
2006-09-08 23:18:03 +00:00
Ryan Boren 2c8931c55d Move plugin API to plugin.php. #2525
git-svn-id: https://develop.svn.wordpress.org/trunk@3893 602fd350-edb4-49c9-b593-d223f7449a82
2006-06-20 02:03:24 +00:00