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

+4 -1
View File
@@ -60,7 +60,10 @@ add_action( 'admin_init', 'chrnx_register_subscribe_setting' );
*/
function chrnx_get_subscribe_url(): string {
$page_id = absint( get_option( 'chrnx_subscribe_page_id', 0 ) );
$page = get_post( $page_id );
if ( 0 === $page_id ) {
return '';
}
$page = get_post( $page_id );
if ( ! $page instanceof WP_Post || 'page' !== $page->post_type || 'publish' !== $page->post_status ) {
return '';
}