Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/21/2012 12:12:13 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Move bp_screens and bp_actions onto bp_template_redirect action, which is hooked to template redirect.

  • Moves template redirecting where it belongs, the template_redirect action
  • Leaves bp_ready hooked to 'wp' for now, pending testing
  • Anything hooked to bp_ready works the way it always did
  • Anything properly hooked to bp_actions and bp_screens works normally
  • Fully backwards compatible
  • Fixes #4029
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-catchuri.php

    r5811 r5813  
    430430        }
    431431}
    432 add_action( 'wp', 'bp_core_catch_no_access' );
     432add_action( 'bp_template_redirect', 'bp_core_catch_no_access', 1 );
    433433
    434434/**
Note: See TracChangeset for help on using the changeset viewer.