This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############ WordPress #################### | |
| # Disable logging for favicon and robots.txt | |
| location = /favicon.ico { | |
| try_files /favicon.ico @empty; | |
| access_log off; | |
| log_not_found off; | |
| expires max; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Fix Images | |
| UPDATE wp_posts SET post_content=(REPLACE (post_content, 'olddomain.com', 'newdomain.com')); | |
| -- Additional fix for guid | |
| UPDATE wp_posts SET guid=(REPLACE (guid, 'olddomain.com', 'newdomain.com')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Variable product add to cart | |
| * | |
| * @author WooThemes | |
| * @package WooCommerce/Templates | |
| * @version 1.6.5 | |
| */ | |
| global $woocommerce, $product, $post; |