Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event handler improvements (cont.) #555

Merged
merged 5 commits into from Feb 16, 2014
Merged

Conversation

Chris--S
Copy link
Collaborator

Swap sorting of hook array from event processing to trigger registration for efficiency.
Plus more PHP 5 updates.

splitbrain added a commit that referenced this pull request Feb 16, 2014
@splitbrain splitbrain merged commit 7abbd3b into master Feb 16, 2014
@splitbrain splitbrain deleted the event_handler_improvements branch February 16, 2014 20:34
@Chris--S
Copy link
Collaborator Author

@michitux - did you get a look at this (it includes changing hook sorting to hook add)?

@michitux
Copy link
Collaborator

Yes, I've looked at the code. Your solution for the sorting is great as for most events it won't sort anything.

I think I've seen at least one plugin that accesses _hooks in order to add itself as first call (though I don't remember which) so this will probably break plugins. I think this is okay as plugins were never supposed to access it, but we should at least mention it in the changes.

@Klap-in
Copy link
Collaborator

Klap-in commented Feb 17, 2014

@glensc
Copy link
Contributor

glensc commented Apr 14, 2014

sorr, in what version is this in?

@Chris--S
Copy link
Collaborator Author

Its not in any released version (yet). It will be in the next release. Its currently available from github master branch.

glensc added a commit to glensc/dokuwiki-plugin-pageredirect that referenced this pull request Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants