Hot answers tagged

1

I think your conception of how hooks work is slightly off. If you are outputting something that contains the URL and title of the queried object, then this isn't something you'd typically need to worry about. You bring up two types of filters that you're concerned about: using pre_get_posts, and filtering titles. In the case of pre_get_posts, this does not ...


1

In my version of WordPress this error will come from line 46 of wp-admin/post.php, which has: if ( isset( $_POST['post_type'] ) && $post && $post_type !== $_POST['post_type'] ) { wp_die( __( 'A post type mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); } The code before that looks pretty ...


Only top voted, non community-wiki answers of a minimum length are eligible