[buddypress-trac] [BuddyPress Trac] #6077: bp_modify_page_title can only be used before wp_head

buddypress-trac noreply at wordpress.org
Tue Dec 23 11:11:59 UTC 2014


#6077: bp_modify_page_title can only be used before wp_head
--------------------------+---------------------
 Reporter:  DJPaul        |       Owner:  djpaul
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.2
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by djpaul):

 * owner:   => djpaul
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9261"]:
 {{{
 #!CommitTicketReference repository="" revision="9261"
 Core: adjust `bp_modify_page_title()` so that it can be used safely after
 the `wp_head` action.

 The function is used to set the value for the page's `<title>` element,
 but it currently throws a PHP Notice if it's used after the `wp_head`
 action is triggered.
 This is because `bp_core_sort_subnav_items()` (hooked to `wp_head`) re-
 keys the global `$bp->bp_options_nav` array; the keys are changed from
 strings to integers representing the desired order of the menu items.

 Fixes #6077
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6077#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list