[PATCH] call_user_func_array() expects parameter 1 to be a valid callback
-
In PHP 5.4.10 on WP3.6 I’m getting the warning
Strict standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method RevisionaryAdminHardway::flt_include_pending_revisions() should not be called statically in /path/to/wp-includes/plugin.php on line 173
This is caused in file /path/to/wp-content/plugins/revisionary/hardway/hardway-admin_rvy.php by the line
add_filter('query', array('RevisionaryAdminHardway', 'flt_include_pending_revisions'), 13 ); // allow regular hardway filter to apply scoping first
which is a callback to a non static method. The fix is pretty simple. In class RevisionaryAdminHardway in the same file change
function flt_include_pending_revisions($query) {
to
public static function flt_include_pending_revisions($query) {
Next up is when I load the posts page in admin. I get a few hundred instances of
Strict standards: Only variables should be assigned by reference in /path/to/wp-content/plugins/revisionary/admin/admin_rvy.php on line 525
In method flt_edit_post_link() and flt_post_title() change
if ( $post = &get_post( $id ) )
to
if ( $post = get_post( $id ) )
- The topic ‘[PATCH] call_user_func_array() expects parameter 1 to be a valid callback’ is closed to new replies.