Getting a Declaration incompatibility error message
-
I’m getting the following message when I’ve got WP_DEBUG set to true in my wp-config.php:
Strict standards: Declaration of Post_Types_Order_Walker::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /Users/avioli/Projects/tao/www/wp-content/mu-plugins/post-types-order/post-types-order.php on line 350
Fix is to alter what’s on line 334 from:
function start_el(&$output, $page, $depth = 0, $args = array()) {
to
function start_el(&$output, $page, $depth = 0, $args = array(), $id = 0) {
- The topic ‘Getting a Declaration incompatibility error message’ is closed to new replies.