Tag Info

New answers tagged

0

You set a custom url after rewrite from a login. A small example, usable in a template of the theme to login. <?php $redirect = esc_url( 'your-url' ); if ( ! is_user_logged_in() ) { $link = '<a href="' . get_option( 'siteurl' ) . '/wp-login.php?redirect_to=' . home_url( '/' ...


0

@David , you are right about the wp-includes/nav-menu.php file. I spotted & removed it there but it did not help. After weeks of research, I came across this post on Wordpress backdoor removal, followed the steps and voila, the issue was resolved. I also contacted my hosting company and they helped me tighten my wordpress security. Here are some of the ...


2

Your site has likely been hacked. My site had the Darkleech infection, which injected some malicious code into wp-includes/nav-menu.php, causing .htaccess to reset to 444 on any page load. I'd recommend you install the Sucuri plugin and let it restore any files that have been corrupted. Assuming your site was hacked, use their Post-Hack tab to reset ...


2

I found the answer, dropping it here in case someone need it. You need to be logged in as a user that has the edit_posts capability. With that capability, you also get access to the private query vars, including post_status. Taken from this similar issue.



Top 50 recent answers are included