Changeset 19679
- Timestamp:
- 01/04/2012 11:03:46 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r19665 r19679 23 23 var $db_fields = array ('parent' => 'parent', 'id' => 'term_id'); //TODO: decouple this 24 24 25 function start_lvl( &$output, $depth, $args) {25 function start_lvl( &$output, $depth = 0, $args = array() ) { 26 26 $indent = str_repeat("\t", $depth); 27 27 $output .= "$indent<ul class='children'>\n"; 28 28 } 29 29 30 function end_lvl( &$output, $depth, $args) {30 function end_lvl( &$output, $depth = 0, $args = array() ) { 31 31 $indent = str_repeat("\t", $depth); 32 32 $output .= "$indent</ul>\n"; 33 33 } 34 34 35 function start_el( &$output, $category, $depth, $args) {35 function start_el( &$output, $category, $depth, $args, $id = 0 ) { 36 36 extract($args); 37 37 if ( empty($taxonomy) ) … … 47 47 } 48 48 49 function end_el( &$output, $category, $depth, $args) {49 function end_el( &$output, $category, $depth = 0, $args = array() ) { 50 50 $output .= "</li>\n"; 51 51 } -
trunk/wp-includes/category-template.php
r19273 r19679 798 798 * @param array $args Will only append content if style argument value is 'list'. 799 799 */ 800 function start_lvl( &$output, $depth, $args) {800 function start_lvl( &$output, $depth = 0, $args = array() ) { 801 801 if ( 'list' != $args['style'] ) 802 802 return; … … 814 814 * @param array $args Will only append content if style argument value is 'list'. 815 815 */ 816 function end_lvl( &$output, $depth, $args) {816 function end_lvl( &$output, $depth = 0, $args = array() ) { 817 817 if ( 'list' != $args['style'] ) 818 818 return; … … 831 831 * @param array $args 832 832 */ 833 function start_el( &$output, $category, $depth, $args) {833 function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { 834 834 extract($args); 835 835 … … 906 906 * @param array $args Only uses 'list' for whether should append to output. 907 907 */ 908 function end_el( &$output, $page, $depth, $args) {908 function end_el( &$output, $page, $depth = 0, $args = array() ) { 909 909 if ( 'list' != $args['style'] ) 910 910 return; … … 947 947 * @param array $args Uses 'selected', 'show_count', and 'show_last_update' keys, if they exist. 948 948 */ 949 function start_el( &$output, $category, $depth, $args) {949 function start_el( &$output, $category, $depth, $args, $id = 0 ) { 950 950 $pad = str_repeat(' ', $depth * 3); 951 951 -
trunk/wp-includes/class-wp-walker.php
r16101 r19679 53 53 * @param string $output Passed by reference. Used to append additional content. 54 54 */ 55 function start_lvl( &$output) {}55 function start_lvl( &$output, $depth = 0, $args = array() ) {} 56 56 57 57 /** … … 67 67 * @param string $output Passed by reference. Used to append additional content. 68 68 */ 69 function end_lvl( &$output) {}69 function end_lvl( &$output, $depth = 0, $args = array() ) {} 70 70 71 71 /** … … 81 81 * @param string $output Passed by reference. Used to append additional content. 82 82 */ 83 function start_el( &$output) {}83 function start_el( &$output, $object, $depth, $args, $current_object_id = 0 ) {} 84 84 85 85 /** … … 94 94 * @param string $output Passed by reference. Used to append additional content. 95 95 */ 96 function end_el( &$output) {}96 function end_el( &$output, $object, $depth = 0, $args = array() ) {} 97 97 98 98 /** -
trunk/wp-includes/comment-template.php
r19593 r19679 1239 1239 * @param array $args Uses 'style' argument for type of HTML list. 1240 1240 */ 1241 function start_lvl( &$output, $depth, $args) {1241 function start_lvl( &$output, $depth = 0, $args = array() ) { 1242 1242 $GLOBALS['comment_depth'] = $depth + 1; 1243 1243 … … 1263 1263 * @param array $args Will only append content if style argument value is 'ol' or 'ul'. 1264 1264 */ 1265 function end_lvl( &$output, $depth, $args) {1265 function end_lvl( &$output, $depth = 0, $args = array() ) { 1266 1266 $GLOBALS['comment_depth'] = $depth + 1; 1267 1267 … … 1327 1327 * @param array $args 1328 1328 */ 1329 function start_el( &$output, $comment, $depth, $args) {1329 function start_el( &$output, $comment, $depth, $args, $id = 0 ) { 1330 1330 $depth++; 1331 1331 $GLOBALS['comment_depth'] = $depth; … … 1387 1387 * @param array $args 1388 1388 */ 1389 function end_el(&$output, $comment, $depth , $args) {1389 function end_el(&$output, $comment, $depth = 0, $args = array() ) { 1390 1390 if ( !empty($args['end-callback']) ) { 1391 1391 call_user_func($args['end-callback'], $comment, $args, $depth); -
trunk/wp-includes/load.php
r19611 r19679 261 261 // E_DEPRECATED is a core PHP constant in PHP 5.3. Don't define this yourself. 262 262 // The two statements are equivalent, just one is for 5.3+ and for less than 5.3. 263 if ( defined( 'E_DEPRECATED' ) )264 error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );265 else266 error_reporting( E_ALL );263 // if ( defined( 'E_DEPRECATED' ) ) 264 // error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT ); 265 // else 266 error_reporting( E_ALL | E_DEPRECATED | E_STRICT ); 267 267 268 268 if ( WP_DEBUG_DISPLAY ) -
trunk/wp-includes/nav-menu-template.php
r19657 r19679 38 38 * @param int $depth Depth of page. Used for padding. 39 39 */ 40 function start_lvl( &$output, $depth) {40 function start_lvl( &$output, $depth = 0, $args = array() ) { 41 41 $indent = str_repeat("\t", $depth); 42 42 $output .= "\n$indent<ul class=\"sub-menu\">\n"; … … 50 50 * @param int $depth Depth of page. Used for padding. 51 51 */ 52 function end_lvl( &$output, $depth) {52 function end_lvl( &$output, $depth = 0, $args = array() ) { 53 53 $indent = str_repeat("\t", $depth); 54 54 $output .= "$indent</ul>\n"; … … 65 65 * @param object $args 66 66 */ 67 function start_el( &$output, $item, $depth, $args) {67 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 68 68 global $wp_query; 69 69 $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; … … 104 104 * @param int $depth Depth of page. Not Used. 105 105 */ 106 function end_el( &$output, $item, $depth) {106 function end_el( &$output, $item, $depth = 0, $args = array() ) { 107 107 $output .= "</li>\n"; 108 108 } -
trunk/wp-includes/post-template.php
r19677 r19679 995 995 * @param int $depth Depth of page. Used for padding. 996 996 */ 997 function start_lvl( &$output, $depth) {997 function start_lvl( &$output, $depth = 0, $args = array() ) { 998 998 $indent = str_repeat("\t", $depth); 999 999 $output .= "\n$indent<ul class='children'>\n"; … … 1007 1007 * @param int $depth Depth of page. Used for padding. 1008 1008 */ 1009 function end_lvl( &$output, $depth) {1009 function end_lvl( &$output, $depth = 0, $args = array() ) { 1010 1010 $indent = str_repeat("\t", $depth); 1011 1011 $output .= "$indent</ul>\n"; … … 1022 1022 * @param array $args 1023 1023 */ 1024 function start_el( &$output, $page, $depth, $args, $current_page) {1024 function start_el( &$output, $page, $depth, $args, $current_page = 0 ) { 1025 1025 if ( $depth ) 1026 1026 $indent = str_repeat("\t", $depth); … … 1065 1065 * @param int $depth Depth of page. Not Used. 1066 1066 */ 1067 function end_el( &$output, $page, $depth) {1067 function end_el( &$output, $page, $depth = 0, $args = array() ) { 1068 1068 $output .= "</li>\n"; 1069 1069 } … … 1103 1103 * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element. 1104 1104 */ 1105 function start_el(&$output, $page, $depth, $args ) {1105 function start_el(&$output, $page, $depth, $args, $id = 0) { 1106 1106 $pad = str_repeat(' ', $depth * 3); 1107 1107
Note: See TracChangeset
for help on using the changeset viewer.