[buddypress-trac] [BuddyPress Trac] #6391: when i go to view a profile or anything that has to do with buddy press. this appears: <b>Warning</b>: strstr(): Empty needle in

buddypress-trac noreply at wordpress.org
Sat Jul 30 02:01:01 UTC 2016


#6391: when i go to view a profile or anything that has to do with buddy press.
this appears:  <b>Warning</b>: strstr(): Empty needle in
--------------------------+-----------------------------------
 Reporter:  scarrano1     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  BuddyPress.org Sites
Component:  Core          |     Version:  2.2.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------------

Comment (by tw2113):

 Part of the bp_modify_page_title() function. The only way I'm seeing this
 be a potential issue is via either a filter on the {{{bloginfo}}} hook or
 if a user has no set the {{{blogname}}} option in their General settings.

 Regardless of method to provide an empty string, may not be a bad idea to
 change

 {{{
 $title_tag_compatibility = (bool) ( ! empty( $_wp_theme_features['title-
 tag'] ) || strstr( $title, $blogname ) );
 }}}

 to

 {{{
 $title_tag_compatibility = (bool) ( ! empty( $_wp_theme_features['title-
 tag'] ) || ( ! empty( $blogname ) && strstr( $title, $blogname ) ) );
 }}}

 Will diff it up when I can fetch a fresh copy of master.

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


More information about the buddypress-trac mailing list