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
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 ) . "'" );
The text was updated successfully, but these errors were encountered:
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 ) . "'" );
The text was updated successfully, but these errors were encountered: