~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-walker.php

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-09-04 23:18:58 UTC
  • mfrom: (1.2.28)
  • Revision ID: package-import@ubuntu.com-20130904231858-nljmn1buzswh63jk
Tags: 3.6+dfsg-1
* New upstream release.
* Improve wp-settings to verify that $_SERVER['HTTP_X_FORWARDED_PROTO']
  exists before accessing it (avoids a PHP notice).
  Thanks to Paul Dreik <slask@pauldreik.se> for the report and the patch.
* Document in README.Debian the need to login to /wp-admin/ to complete
  an upgrade.
* Drop useless debian/README.source
* Drop 008CVE2008-2392.patch since upstream now disables unfiltered
  uploads by default. See http://core.trac.wordpress.org/ticket/10692
* Drop 009CVE2008-6767.patch since the backto parameter is validated
  against a whitelist, and externally triggered upgrades are not a
  security problem as long as they work.
* Update debian/missing-sources with latest versions.
* Update upstream l10n.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
         *
81
81
         * @param string $output Passed by reference. Used to append additional content.
82
82
         */
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 )  {}
84
84
 
85
85
        /**
86
86
         * Ends the element output, if needed.
115
115
         * @param string $output Passed by reference. Used to append additional content.
116
116
         * @return null Null on failure with no changes to parameters.
117
117
         */
118
 
        function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
 
118
        function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
119
119
 
120
120
                if ( !$element )
121
121
                        return;
123
123
                $id_field = $this->db_fields['id'];
124
124
 
125
125
                //display this element
126
 
                if ( is_array( $args[0] ) )
 
126
                if ( isset( $args[0] ) && is_array( $args[0] ) )
127
127
                        $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
128
128
                $cb_args = array_merge( array(&$output, $element, $depth), $args);
129
129
                call_user_func_array(array($this, 'start_el'), $cb_args);