Update fictioneer_002_elementor_control.php
This commit is contained in:
parent
135d295083
commit
0962910f90
@ -22,6 +22,11 @@ function fictioneer_mu_002_get_post_id() {
|
||||
// Setup
|
||||
$current_url_path = $_SERVER['REQUEST_URI'];
|
||||
|
||||
// Check for frontpage...
|
||||
if ( trim( $current_url_path, '/' ) === '' ) {
|
||||
return $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'page_on_front'" );
|
||||
}
|
||||
|
||||
// Look for ID...
|
||||
if ( preg_match( '/\/(\d+)/', $current_url_path, $matches ) ) {
|
||||
// Numeric ID in URL (lucky)
|
||||
|
Loading…
x
Reference in New Issue
Block a user