[buddypress-trac] [BuddyPress Trac] #6077: bp_modify_page_title can only be used before wp_head
buddypress-trac
noreply at wordpress.org
Mon Dec 22 22:45:26 UTC 2014
#6077: bp_modify_page_title can only be used before wp_head
--------------------------+-----------------------
Reporter: DJPaul | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.2
Component: Core | Version:
Severity: normal | Keywords: has-patch
--------------------------+-----------------------
`bp_modify_page_title` can only be used before the `wp_head` action fires
because `bp_core_sort_subnav_items` re-keys the `$bp->bp_options_nav`
variable.
(From https://gist.github.com/paulgibbs/b679bb55843bf6840704 to
https://gist.github.com/paulgibbs/0bfb25fe7d49013707d4)
Given that I believe all this has been in place for at least four years,
updating how `bp_options_nav` is handled seems an arduous and risky task.
We can re-implement part of the logic using other data in the existing
array so that `bp_modify_page_title` works whenever and wherever you call
it, regardless of the state of the global.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6077>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list