[wp-meta] [Making WordPress.org] #1177: Switching to wporg-developer theme causes PHP warning

Making WordPress.org noreply at wordpress.org
Wed Aug 12 13:47:11 UTC 2015


#1177: Switching to wporg-developer theme causes PHP warning
----------------------+-------------------------------------
Reporter:  DJPaul     |      Owner:
    Type:  defect     |     Status:  new
Priority:  normal     |  Component:  developer.wordpress.org
Keywords:  has-patch  |
----------------------+-------------------------------------
 When switching *to* the wporg-developer theme, a PHP warning occurs:
  Warning: call_user_func_array() expects parameter 1 to be a valid
 callback, function 'DevHub\add_roles' not found or invalid function name
 in /srv/www/wordpress-develop/src/wp-includes/plugin.php on line

 Patch attached which corrects the path to the function of that same name
 (I'm assuming that's what the original author intended, to set up the new
 role when the theme is activated).

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1177>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list