The link here is ?p=1448&preview=true

enter image description here

Which should be redirected to the /index.php

If I press that link it goes to:


Which shows: Sorry, you are not allowed to preview drafts

I could find the message in \wp-content\languages\it_IT.po

#: wp-includes/revision.php:550
msgid "Sorry, you are not allowed to preview drafts."
msgstr "Non hai i permessi per visualizzare le bozze in anteprima."

Looking for the I've reached this method


 539   * Filters the latest content for preview from the post autosave.
 540   *
 541   * @since 2.7.0
 542   * @access private
 543   */
 544  function _show_post_preview() {
 545      if ( isset($_GET['preview_id']) && isset($_GET['preview_nonce']) ) {
 546          $id = (int) $_GET['preview_id'];
 548          if ( false === wp_verify_nonce( $_GET['preview_nonce'], 'post_preview_' . $id ) )
 549              wp_die( __('Sorry, you are not allowed to preview drafts.') );
 551          add_filter('the_preview', '_set_preview');
 552      }
 553  }

Enabling define('WP_DEBUG', true) in the config file only shows a deprecated error message.

Cloudflare is disabled, flushing the local cache has no impact.

Disabling the check I get this error:

Oops! That page can not be found.

What can I try more?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.