Commit Graph

34 Commits

Author SHA1 Message Date
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