Question
I've got a message from the host saying that the website was suspended due to security issues. they named a lot of files as malwares, I d've deleted all these files. I noticed that there are a lot of random file names ...
0
2 days 0 Answers 8 views

Question
When writing code that accepts input from users I always sanitize data one variable at a time. Example: $title = wp_strip_all_tags($_POST['title']); $content = wp_strip_all_tags($_POST['content']); I had the idea of simplifying things by sanitizing everything at once, inside a loop: foreach ($_POST as $key => $value) ...
0
, 6 days 0 Answers 41 views

Question
If there are more than two admin users on a WordPress website, so is it possible to lock a specific plugin for other admin users? Is there any free plugin for that? or any other way?
0
, 1 month 0 Answers 11 views

Question
I have an issue where is_user_logged_in() appears to alternate between being true and false. Additionally, get_current_user_id() gives the correct user ID if is_user_logged_in() is true. Here's my code: .htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} -s RewriteRule ^wp-content/uploads/(.*)$ file-access.php?file=$1 [QSA,L] RewriteCond ...
0
, , 1 month 0 Answers 19 views

Question
I have an issue where is_user_logged_in() appears to alternate between being true and false. Here's my code: .htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} -s RewriteRule ^wp-content/uploads/(.*)$ file-access.php?file=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress file-access.php: require_once('wp-load.php'); if ...
0
, , 2 months 0 Answers 12 views