fix: complete CHRNX responsive edge states
This commit is contained in:
15 files changed
+384
-35
No files matched your search
+4
-1
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user