[wp-trac] [WordPress Trac] #16675: Deprecate sticky_class function

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 26 05:50:27 UTC 2011


#16675: Deprecate sticky_class function
--------------------------+-----------------------------
 Reporter:  solarissmoke  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 I was rummaging around `post-template.php` and found the `sticky_class()`
 function, which was meant to be used by themes like so:

 {{{
 <div class="post<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>">
 }}}

 Of course now we have
 {{{
 <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
 }}}

 `sticky_class()` should be deprecated.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16675>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list