Make WordPress Core

Ticket #24356: strict_standard_compatibility.patch

File strict_standard_compatibility.patch, 3.0 KB (added by dvarga, 12 years ago)

Patch for strict standards compatibility

  • app/wp-admin/includes/nav-menu.php

    diff --git app/wp-admin/includes/nav-menu.php app/wp-admin/includes/nav-menu.php
    index 6064462..280cc29 100644
    class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { 
    1414         *
    1515         * @param string $output Passed by reference.
    1616         */
    17         function start_lvl(&$output) {}
     17        function start_lvl(&$output, $depth = 0, $args = array()) {}
    1818
    1919        /**
    2020         * @see Walker_Nav_Menu::end_lvl()
    class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { 
    2222         *
    2323         * @param string $output Passed by reference.
    2424         */
    25         function end_lvl(&$output) {
     25        function end_lvl(&$output, $depth = 0, $args = array()) {
    2626        }
    2727
    2828        /**
    class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { 
    3434         * @param int $depth Depth of menu item. Used for padding.
    3535         * @param object $args
    3636         */
    37         function start_el(&$output, $item, $depth, $args) {
     37        function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) {
    3838                global $_wp_nav_menu_max_depth;
    3939                $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
    4040
    class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { 
    216216                }
    217217        }
    218218
    219         function start_lvl( &$output, $depth ) {
     219        function start_lvl( &$output, $depth = 0, $args = array() ) {
    220220                $indent = str_repeat( "\t", $depth );
    221221                $output .= "\n$indent<ul class='children'>\n";
    222222        }
    223223
    224         function end_lvl( &$output, $depth ) {
     224        function end_lvl( &$output, $depth = 0, $args = array() ) {
    225225                $indent = str_repeat( "\t", $depth );
    226226                $output .= "\n$indent</ul>";
    227227        }
    class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { 
    235235         * @param int $depth Depth of menu item. Used for padding.
    236236         * @param object $args
    237237         */
    238         function start_el(&$output, $item, $depth, $args) {
     238        function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0) {
    239239                global $_nav_menu_placeholder;
    240240
    241241                $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
  • app/wp-admin/includes/template.php

    diff --git app/wp-admin/includes/template.php app/wp-admin/includes/template.php
    index 788a4bd..1c630a0 100644
    class Walker_Category_Checklist extends Walker { 
    3434                $output .= "$indent</ul>\n";
    3535        }
    3636
    37         function start_el( &$output, $category, $depth, $args, $id = 0 ) {
     37        function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    3838                extract($args);
    3939                if ( empty($taxonomy) )
    4040                        $taxonomy = 'category';
  • app/wp-includes/class-wp-walker.php

    diff --git app/wp-includes/class-wp-walker.php app/wp-includes/class-wp-walker.php
    index df9d9b6..91b926f 100644
    class Walker { 
    8080         *
    8181         * @param string $output Passed by reference. Used to append additional content.
    8282         */
    83         function start_el( &$output, $object, $depth, $args, $current_object_id = 0 )  {}
     83        function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 )  {}
    8484
    8585        /**
    8686         * Ends the element output, if needed.