Ticket #1099 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

topic_class() does not assign sticky CSS class in view.php

Reported by: zyml Owned by:
Priority: normal Milestone: 1.0
Component: Front-end Version: 1.0-rc-1
Severity: normal Keywords: theme,functions,topic_class
Cc:

Description

If you were to use the topic_class() function for the stickied posts in the view.php template, the function does not assign 'sticky' CSS class to stickied posts like it normally does in other templates.

The workaround for me would be to manually assign the class myself:

<?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
<tr<?php topic_class('sticky'); ?>>

Change History

  • Status changed from new to closed
  • Resolution set to fixed

(In [2137]) Give stickies some class in views. Fixes #1099

  • Milestone set to 1.0
Note: See TracTickets for help on using tickets.