[wp-trac] [WordPress Trac] #28928: get_sticky_posts() doesn't uses $settings in twentyfourteen/inc/featured-content.php
WordPress Trac
noreply at wordpress.org
Thu Jul 17 06:53:18 UTC 2014
#28928: get_sticky_posts() doesn't uses $settings in twentyfourteen/inc/featured-
content.php
--------------------------+-----------------------------
Reporter: michalzuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.9
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
The $settings variable isn't used.
{{{
/**
* Return an array with IDs of posts maked as sticky.
*
* @static
* @access public
* @since Twenty Fourteen 1.0
*
* @return array Array of sticky posts.
*/
public static function get_sticky_posts() {
$settings = self::get_setting();
return array_slice( get_option( 'sticky_posts', array() ), 0,
self::$max_posts );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28928>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list