fix: complete CHRNX responsive edge states
This commit is contained in:
15 files changed
+384
-35
No files matched your search
@@ -169,6 +169,13 @@ function chrnx_get_post_topic_slug( $post_id ) {
|
||||
*/
|
||||
function chrnx_get_featured_story_ids( int $limit = 3 ): array {
|
||||
$limit = min( 12, max( 0, $limit ) );
|
||||
$host = wp_parse_url( home_url( '/' ), PHP_URL_HOST );
|
||||
if ( in_array( $host, array( 'localhost', '127.0.0.1' ), true ) ) {
|
||||
$fixture_limit = absint( get_option( '_chrnx_fixture_featured_limit', 0 ) );
|
||||
if ( in_array( $fixture_limit, array( 1, 2, 3 ), true ) ) {
|
||||
$limit = min( $limit, $fixture_limit );
|
||||
}
|
||||
}
|
||||
if ( 0 === $limit ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user