From 294e85160ba900d1c8a0ff42116dfc2c9eb1c3ae Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 20 Nov 2008 13:36:44 +0000 Subject: [PATCH] Add a "parent" class to comment LIs with children. props filosofo. fixes #8091 git-svn-id: https://develop.svn.wordpress.org/trunk@9812 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 2 ++ wp-includes/comment-template.php | 2 +- wp-includes/script-loader.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 5c2580c42e..b49a20d7bb 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -822,6 +822,8 @@ class Walker { $id_field = $this->db_fields['id']; //display this element + if ( ! empty( $args[0] ) ) + $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] ); $cb_args = array_merge( array(&$output, $element, $depth), $args); call_user_func_array(array(&$this, 'start_el'), $cb_args); diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 1e2e4a27b8..f5b3a4a589 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1168,7 +1168,7 @@ class Walker_Comment extends Walker { $add_below = 'div-comment'; } ?> - < id="comment-"> + < id="comment-">
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 580ed7ac06..422702064e 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -41,7 +41,7 @@ function wp_default_scripts( &$scripts ) { $scripts->base_url = $guessurl; $scripts->default_version = get_bloginfo( 'version' ); - $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081118' ); + $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081120' ); $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' ); $scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' );