Changeset 2209552
- Timestamp:
- 12/10/2019 08:09:33 PM (6 years ago)
- Location:
- maje-wc-no-po-boxes/trunk
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
MajeMedia-WC-No-PO-Boxes.php (modified) (1 diff)
-
README.md (modified) (1 diff)
-
autoload.php (modified) (1 diff)
-
classes/MWNPB_DashboardSettings.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
maje-wc-no-po-boxes/trunk
- Property svn:ignore
-
old new 1 1 .idea 2 .git 3 .gitignore 4 assets
-
- Property svn:ignore
-
maje-wc-no-po-boxes/trunk/MajeMedia-WC-No-PO-Boxes.php
r2205468 r2209552 5 5 Plugin URI: https://majemedia.com/plugins/no-po-boxes 6 6 Description: Restricts the use of PO Boxes during WooCommerce checkout. It contains a configurable message to display when a PO Box is attempted to be used. Will not limit the use of PO Boxes for carts that only contain digital products. 7 Version: 2.0. 87 Version: 2.0.9 8 8 Author: Maje Media LLC 9 9 Author URI: https://majemedia.com -
maje-wc-no-po-boxes/trunk/README.md
r2205468 r2209552 124 124 125 125 ## Changelog 126 ### 2.0.9 127 * Github #16: Updated the settings screen display of shipping methods to display the title of the shipping method instead of the shipping method type title. 128 126 129 ### 2.0.8 127 130 * Tested to WordPress 5.3 -
maje-wc-no-po-boxes/trunk/autoload.php
r1769168 r2209552 15 15 require_once realpath( dirname( __FILE__ ) ) . $file; 16 16 } 17 18 if( ! function_exists( '_log' ) ) { 19 20 /** 21 * @description Takes any message and sends it to the error_log. Due to how php's serialize works (will add binary characters) and that error_log will truncate when it hits a binary character a str_replace is used. 22 * 23 * @param $message mixed anything you want to print out 24 */ 25 function _log( $message = '', BOOL $backtrace = FALSE ) { 26 27 if( $backtrace || func_num_args() === 0 ) { 28 29 $backtrace = debug_backtrace(); 30 error_log( print_r( [ 'file' => $backtrace[ 0 ][ 'file' ], 'line' => $backtrace[ 0 ][ 'line' ] ], TRUE ) ); 31 32 } 33 34 if( func_num_args() !== 0 ) { 35 error_log( str_replace( "\0", "(NULL)", print_r( $message, TRUE ) ) ); 36 } 37 38 } 39 40 } -
maje-wc-no-po-boxes/trunk/classes/MWNPB_DashboardSettings.php
r1769654 r2209552 138 138 139 139 $output .= <<<EOT 140 <p> 141 <label for="{$optionName}[{$methodId}]">{$Method->title}</label>: 140 142 <select name="{$optionName}[{$methodId}]" id="{$optionName}[{$methodId}]"> 141 143 <option value="no" {$selectedNo}>No PO</option> 142 144 <option value="yes" {$selectedYes}>Allow PO</option> 143 </select> : <label for="{$optionName}[{$methodId}]">{$Method->method_title}</label><br /> 145 </select> 146 </p> 144 147 EOT; 145 148 -
maje-wc-no-po-boxes/trunk/readme.txt
r2205468 r2209552 5 5 Tested up to: 5.3 6 6 Requires PHP: 5.6 7 Stable tag: 2.0. 87 Stable tag: 2.0.9 8 8 License: GPL2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 == Changelog == 40 = 2.0.9 = 41 * Github #16: Updated the settings screen display of shipping methods to display the title of the shipping method instead of the shipping method type title. 40 42 41 43 = 2.0.8 =
Note: See TracChangeset
for help on using the changeset viewer.