Skip to content
Browse files

Update function signatures to correct strict mode errors.

  • Loading branch information...
1 parent d7f0b0b commit 7d4dbbfb5f4641ecfce1e856232d779c983e3027 Michael Sisk committed Nov 19, 2013
Showing with 14 additions and 14 deletions.
  1. +10 −10 -/php/tags.php
  2. +4 −4 -/php/taxonomy.php
View
20 -/php/tags.php
@@ -6384,7 +6384,7 @@ class Walker_WebcomicTerm_Dropdown extends Walker {
* @filter string webcomic_term_dropdown_title Filters the term titles used by `webcomic_dropdown_storylines` and `webcomic_dropdown_characters`.
* @filter string term_dropdown_webcomic_title Fitlers the webcomic titles used by `webcomic_dropdown_storylines` and `webcomic_dropdown_characters`.
*/
- public function start_el( &$output, $term, $depth, $args ) {
+ public function start_el( &$output, $term, $depth = 0, $args = array(), $current = 0 ) {
global $post;
extract( $args, $args[ 'hierarchical' ] ? EXTR_SKIP : EXTR_OVERWRITE );
@@ -6461,7 +6461,7 @@ class Walker_WebcomicTerm_List extends Walker {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function start_lvl( &$output, $depth, $args ) {
+ public function start_lvl( &$output, $depth = 0, $args = array() ) {
if ( $args[ 'hierarchical' ] ) {
$output .= $args[ 'ordered' ] ? '<ol class="children">' : '<ul class="children">';
}
@@ -6473,7 +6473,7 @@ public function start_lvl( &$output, $depth, $args ) {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function end_lvl( &$output, $depth, $args ) {
+ public function end_lvl( &$output, $depth = 0, $args = array() ) {
if ( $args[ 'hierarchical' ] ) {
$output .= $args[ 'ordered' ] ? '</ol>' : '</ul>';
}
@@ -6491,7 +6491,7 @@ public function end_lvl( &$output, $depth, $args ) {
* @filter string webcomic_term_description Filters the term titles used by `webcomic_dropdown_transcript_languages`.
* @filter string term_list_webcomic_title Fitlers the webcomic titles used by `webcomic_list_storylines` and `webcomic_list_characters`.
*/
- public function start_el( &$output, $term, $depth, $args ) {
+ public function start_el( &$output, $term, $depth = 0, $args = array(), $current = 0 ) {
global $post;
extract( $args, $args[ 'hierarchical' ] ? EXTR_SKIP : EXTR_OVERWRITE );
@@ -6543,7 +6543,7 @@ public function start_el( &$output, $term, $depth, $args ) {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function end_el( &$output, $term, $depth, $args ) {
+ public function end_el( &$output, $term, $depth = 0, $args = array() ) {
$output .= '</li>';
}
}
@@ -6587,7 +6587,7 @@ class Walker_WebcomicTranscriptTerm_Dropdown extends Walker {
* @uses WebcomicTag::get_webcomic_transcripts_link()
* @filter string webcomic_transcript_term_dropdown_title Filters the term titles used by `webcomic_dropdown_transcript_languages`.
*/
- public function start_el( &$output, $term, $depth, $args ) {
+ public function start_el( &$output, $term, $depth = 0, $args = array(), $current = 0 ) {
extract( $args, $args[ 'hierarchical' ] ? EXTR_SKIP : EXTR_OVERWRITE );
$term_title = apply_filters( 'webcomic_transcript_term_dropdown_title', esc_attr( $term->name ), $term );
@@ -6627,7 +6627,7 @@ class Walker_WebcomicTranscriptTerm_List extends Walker {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function start_lvl( &$output, $depth, $args ) {
+ public function start_lvl( &$output, $depth = 0, $args = array() ) {
if ( $args[ 'hierarchical' ] ) {
$output .= $args[ 'ordered' ] ? '<ol class="children">' : '<ul class="children">';
}
@@ -6639,7 +6639,7 @@ public function start_lvl( &$output, $depth, $args ) {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function end_lvl( &$output, $depth, $args ) {
+ public function end_lvl( &$output, $depth = 0, $args = array() ) {
if ( $args[ 'hierarchical' ] ) {
$output .= $args[ 'ordered' ] ? '</ol>' : '</ul>';
}
@@ -6654,7 +6654,7 @@ public function end_lvl( &$output, $depth, $args ) {
* @uses WebcomicTag::get_webcomic_transcripts_link()
* @filter string webcomic_transcript_term_list_title Filters the term titles used by `webcomic_list_transcript_languages`.
*/
- public function start_el( &$output, $term, $depth, $args ) {
+ public function start_el( &$output, $term, $depth = 0, $args = array(), $current = 0 ) {
extract( $args, $args[ 'hierarchical' ] ? EXTR_SKIP : EXTR_OVERWRITE );
$term_title = apply_filters( 'webcomic_transcript_term_list_title', esc_attr( $term->name ), $term );
@@ -6668,7 +6668,7 @@ public function start_el( &$output, $term, $depth, $args ) {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function end_el( &$output, $term, $depth, $args ) {
+ public function end_el( &$output, $term, $depth = 0, $args = array() ) {
$output .= '</li>';
}
}
View
8 -/php/taxonomy.php
@@ -437,7 +437,7 @@ class Walker_WebcomicTerm_SortList extends Walker {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function start_lvl( &$output, $depth, $args ) {
+ public function start_lvl( &$output, $depth = 0, $args = array() ) {
$output .= '<ol>';
}
@@ -447,7 +447,7 @@ public function start_lvl( &$output, $depth, $args ) {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function end_lvl( &$output, $depth, $args ) {
+ public function end_lvl( &$output, $depth = 0, $args = array() ) {
$output .= '</ol>';
}
@@ -458,7 +458,7 @@ public function end_lvl( &$output, $depth, $args ) {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function start_el( &$output, $term, $depth, $args ) {
+ public function start_el( &$output, $term, $depth = 0, $args = array(), $current = 0 ) {
extract( $args, EXTR_SKIP );
$output .= '<li id="term_' . $term->term_id . '"><b><i>' . ( $term->webcomic_image ? wp_get_attachment_image( $term->webcomic_image, array( 36, 0 ) ) : '' ) . '</i>' . $term->name . '</b>';
@@ -471,7 +471,7 @@ public function start_el( &$output, $term, $depth, $args ) {
* @param integer $depth Depth the walker is currently at.
* @param array $args Arguments passed to the walker.
*/
- public function end_el( &$output, $term, $depth, $args ) {
+ public function end_el( &$output, $term, $depth = 0, $args = array() ) {
$output .= '</li>';
}
}

0 comments on commit 7d4dbbf

Please sign in to comment.
Something went wrong with that request. Please try again.