Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?

Found the solution… the problem was due to placement of the conditional statement in the wp-config.php file. It needed to be inserted before the require_once(ABSPATH . ‘wp-settings.php’); line near the bottom of the default config file, otherwise the constants are already defined and cannot be redefined. So final section of the wp-config.php file now looks … Read more

Remove hacked code – out of ideas! [closed]

You can move the wp-config file one level up. You can also create a .htaccess file and upload it to your uploads folder with this code: <Files ~ “.*..*”> Order Allow,Deny Deny from all </Files> <FilesMatch “.(jpg|jpeg|jpe|gif|png)$”> Order Deny,Allow Allow from all </FilesMatch> Or install a plugin for security which also scans your installation so … Read more

WordPress installed on a Sub-directory

Looks link you’re missing the forward slash / which is probably causing it to not locate the right files /.index.php <?php define(‘WP_USE_THEMES’, true); require( dirname( __FILE__ ) . ‘/web/wp-blog-header.php’ ); /web/index.php <?php define(‘WP_USE_THEMES’, true); require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ ); /.htaccess (the same as /web/.htaccess) # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /web/ … Read more

How turn on error reporting without reset?

In WordPress error reporting is primarily controlled by WP_DEBUG and other related constants in wp-config.php file. Typically they are completely independent of theme and plugins, although some (well coded) extensions adjust their behavior accordingly with debug settings.

Constant for ‘barebones’ update of WordPress

So in the old days when WordPress updated you got the whole shebang and deleting Akismet after every time was deadly boring. Things had slightly improved since then (partially driven by minimizing traffic it takes to serve update to everyone), but process also got more complicated. Now there are multiple versions of update archive that … Read more