You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 29, 2025. It is now read-only.
in od/includes/hooks-setup.php, line 69 and od/includes/utils.php, line 82 an attempt is made to select a record from table 'od_posts'. This table would not exist in standard WordPress installations, as it implies that the WP installation uses 'od_' as a table prefix. Using a fixed table prefix is bad for security and using a hardcoded table name makes the theme inflexible.
Suggested fix:
replace $oPost = $wpdb->get_row("SELECT post_name FROM od_posts WHERE post_name = '".$sPageSlug."'");
with $oPost = $wpdb->get_row( "SELECT post_name FROM $wpdb->posts WHERE post_name = '" . sanitize_title( $sPageSlug ) . "'" );
in od/includes/hooks-setup.php, line 69 and od/includes/utils.php, line 82 an attempt is made to select a record from table 'od_posts'. This table would not exist in standard WordPress installations, as it implies that the WP installation uses 'od_' as a table prefix. Using a fixed table prefix is bad for security and using a hardcoded table name makes the theme inflexible.
Suggested fix:
replace
$oPost = $wpdb->get_row("SELECT post_name FROM od_posts WHERE post_name = '".$sPageSlug."'");with
$oPost = $wpdb->get_row( "SELECT post_name FROM $wpdb->posts WHERE post_name = '" . sanitize_title( $sPageSlug ) . "'" );