View round.log
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
// Tax rate 1 was 8.5% | |
// Tax rate 2 between 3% and 10% on .5% increments | |
price: 10.10, rate 2: 9.00, wc tax: 1.84, round tax: 1.85 | |
price: 10.20, rate 2: 3.50, wc tax: 1.25, round tax: 1.26 | |
price: 10.30, rate 2: 3.00, wc tax: 1.21, round tax: 1.22 | |
price: 10.40, rate 2: 3.50, wc tax: 1.28, round tax: 1.27 | |
price: 10.50, rate 2: 4.50, wc tax: 1.41, round tax: 1.40 | |
price: 10.80, rate 2: 5.00, wc tax: 1.50, round tax: 1.51 | |
price: 10.90, rate 2: 7.00, wc tax: 1.75, round tax: 1.76 |
View fix-as-action-ids.php
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 | |
/* | |
Plugin Name: Fix Action Scheduler Action IDs | |
Version: 0.2 | |
Author: Automattic | |
Author URI: https://automattic.com/ | |
Description: This is a one time use plugin designed to address a fatal error during AS migration where the identity field in the actionscheduler_actions table did not get set before actions were migrated. | |
License: GNU General Public License v3.0 (or later) | |
License URI: http://www.opensource.org/licenses/gpl-license.php |
View gist:5171259
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
for F in `git status | grep modified | cut -f4 -d' '` ; do git checkout -- $F ; done |
View gist:4651331
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 | |
/* | |
register the menu across the network | |
*/ | |
register_nav_menu( 'global', 'Global Navigation Menu' ); | |
/* | |
remove the menu from the menu screen on sub sites to avoid confusing users | |
*/ | |
add_action( 'admin_init', 'global_nav_menu_init' ); |