{"push_id":1288088825,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"5a632be944f4d039748695ebf9990d115bffe470","before":"8bec516c183abc1cac5cd39efe479cff27a84707","commits":[{"sha":"5a632be944f4d039748695ebf9990d115bffe470","author":{"name":"Gary Pendergast","email":"a2aa6c45b95aab792d9684564b98a2779d4104a5@pento.net"},"message":"Hooks: Add the new class `WP_Hook`, and modify hook handling to make use of it.\n\nFilters and actions have been the basis of WordPress' plugin functionality since time immemorial, they've always been a reliable method for acting upon the current state of WordPress, and will continue to be so.\n\nOver the years, however, edge cases have cropped up. Particularly when it comes to recursively executing hooks, or a hook adding and removing itself, the existing implementation struggled to keep up with more complex use cases.\n\nAnd so, we introduce `WP_Hook`. By changing `$wp_filter` from an array of arrays, to an array of objects, we reduce the complexity of the hook handling code, as the processing code (see `::apply_filters()`) only needs to be aware of itself, rather than the state of all hooks. At the same time, we're able te handle more complex use cases, as the object can more easily keep track of its own state than an array ever could.\n\nProps jbrinley for the original architecture and design of this patch.\nProps SergeyBiryukov, cheeserolls, Denis-de-Bernardy, leewillis77, wonderboymusic, nacin, jorbin, DrewAPicture, ocean90, dougwollison, khag7, pento, noplanman and aaroncampbell for their testing, suggestions, contributions, patch maintenance, cajoling and patience as we got through this.\nFixes #17817.\n\n\nBuilt from https://develop.svn.wordpress.org/trunk@38571\n\n\ngit-svn-id: http://core.svn.wordpress.org/trunk@38514 1a063a9b-81f0-0310-95a4-ce76da25c4cd","distinct":true,"url":"https://api.github.com/repos/WordPress/WordPress/commits/5a632be944f4d039748695ebf9990d115bffe470"}]}
{"actor":{"display_login":"markjaquith"}}