This file contains 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 | |
/** | |
* List available attributes on product page in a drop-down selection | |
*/ | |
add_action('woocommerce_before_add_to_cart_button', 'list_attributes_on_product_page'); | |
function list_attributes_on_product_page() { | |
global $product; | |
$attributes = $product->get_attributes(); |
This file contains 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
__; | |
_e; | |
_x:1,2c; | |
_ex:1,2c; | |
esc_html__; | |
esc_html_e; | |
esc_html_x:1,2c; | |
esc_attr__; | |
esc_attr_e; | |
esc_attr_x:1,2c |
This file contains 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
Order Deny,Allow | |
Deny from all | |
SetEnvIf X-Forwarded-For "^1\.1\.1\.1" AllowAccess | |
Allow from env=AllowAccess |
This file contains 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
<IfModule mod_headers.c> | |
Header set Strict-Transport-Security "max-age=0; includeSubDomains; preload" env=HTTPS | |
</IfModule> |
This file contains 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 | |
/** | |
* All Category Post Permalink | |
* | |
* When using %category% in permalinks, this allows you to substitute | |
* an alternative slug "all" to replace the category. By default this | |
* is not permitted - the post page is force redirected to a URL | |
* with a valid category. | |
*/ |
This file contains 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 Project .gitignore | |
# Ignore system files | |
.DS_Store | |
# Ignore all files by default except `.gitignore` and `site` folder | |
/* | |
!/.gitignore | |
!/site/ |
This file contains 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 | |
/** | |
* Remove Posts Page Admin Notice | |
* | |
* Since WordPress 4.2, if you edit the page used as the Posts page | |
* and there was no content saved for that page, the editor functionality | |
* is removed and a message displayed instead. | |
* | |
* The following function re-enables the editor on this page. |
This file contains 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
Index: trunk/taxonomy-images.php | |
=================================================================== | |
--- trunk/taxonomy-images.php (revision 752123) | |
+++ trunk/taxonomy-images.php (working copy) | |
@@ -798,10 +798,13 @@ | |
$term = get_term( $term_id, $taxonomy->name ); | |
+ $nonce = wp_create_nonce( 'taxonomy-image-plugin-create-association' ); | |
+ $nonce_remove = wp_create_nonce( 'taxonomy-image-plugin-remove-association' ); |
This file contains 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
Index: trunk/google-tag-manager.php | |
=================================================================== | |
--- trunk/google-tag-manager.php (revision 1182053) | |
+++ trunk/google-tag-manager.php (working copy) | |
@@ -11,6 +11,8 @@ | |
class google_tag_manager { | |
+ public static $output_once = false; | |
+ |
This file contains 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 | |
/** | |
* Intelligent Post Terms | |
* | |
* If the post category is included in the permalink for posts | |
* we can be clever and detect when a post is displayed or linked to | |
* which is the most suitable category to use in the URL. | |
* | |
* @version 1.0 |
NewerOlder