fix: complete CHRNX responsive edge states

This commit is contained in:
chrnx committed 2026-08-12 09:02:34 -05:00
1 parent 5073178492
commit 1e9386ac13
15 files changed
+384 -35

No files matched your search

+7
View File
@@ -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();
}