$profiler = Profiler::instance();
# Profiling must actually be enabled...
- if ( $profiler->isStub() ) {
+ if ( $profiler instanceof ProfilerStub ) {
return;
}
* @param string|null $deprecatedVersion Optionally mark hook as deprecated with version number
*
* @return bool True if no handler aborted the hook
+ * @deprecated 1.25
*/
function wfRunHooks( $event, array $args = array(), $deprecatedVersion = null ) {
return Hooks::run( $event, $args, $deprecatedVersion );