wp_posts does not exist – save.php
-
I was getting errors after saving a new template in the WP admin so used WP Query to find that in save.php the table was not taking into account a custom prefix
$wpdb->update(‘wp_posts’,
[
‘post_name’ => wp_unique_post_slug(
$slug,
$post->ID,
‘publish’,
$post->post_type,
$post->post_parent
),
],
[ ‘ID’ => $post->ID ]
);
};In our instance wp_posts is customprefix_posts
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wp_posts does not exist – save.php’ is closed to new replies.