[buddypress-trac] [BuddyPress Trac] #4824: Autocomplete

buddypress-trac noreply at wordpress.org
Tue May 17 19:39:15 UTC 2016


#4824: Autocomplete
-----------------------------------+-----------------------
 Reporter:  stefwilliams           |       Owner:
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:
Component:  Component - Messaging  |     Version:  2.5.0
 Severity:  normal                 |  Resolution:
 Keywords:                         |
-----------------------------------+-----------------------

Comment (by mlwilkerson):

 Looks it's throwing warnings, though, on the first and third lines of the
 code in the snippet below:


 {{{
 add_filter( 'quicktags_settings', function ( $qtInit, $editor_id ) {
         // Remove 'link' from the quicktag button to prevent errors.
         if ( ( $key = array_search( 'link', $qtInit['buttons'] ) ) !==
 false ) {
 }}}

 Warning: Missing argument 2 for {closure}() in /path/functions.php on line
 678

 Warning: array_search() expects parameter 2 to be array, string given in
 /path/functions.php on line 680

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


More information about the buddypress-trac mailing list