mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 16:43:06 +01:00
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
This commit is contained in:
parent
019e10a7a5
commit
294e85160b
@ -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);
|
||||
|
||||
|
@ -1168,7 +1168,7 @@ class Walker_Comment extends Walker {
|
||||
$add_below = 'div-comment';
|
||||
}
|
||||
?>
|
||||
<<?php echo $tag ?> <?php comment_class() ?> id="comment-<?php comment_ID() ?>">
|
||||
<<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
|
||||
<?php if ( 'ul' == $args['style'] ) : ?>
|
||||
<div id="div-comment-<?php comment_ID() ?>">
|
||||
<?php endif; ?>
|
||||
|
@ -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' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user