Changeset 2008380
- Timestamp:
- 01/08/2019 11:59:46 AM (7 years ago)
- Location:
- vat-moss/trunk
- Files:
-
- 4 edited
-
includes/admin/new-submission.php (modified) (1 diff)
-
includes/class-html-elements.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
vat-moss.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vat-moss/trunk/includes/admin/new-submission.php
r1513665 r2008380 39 39 } 40 40 41 $state = get_post_status( $submission_id );42 if ( ( $state === STATE_SUBMITTED || $state === STATE_ACKNOWLEDGED ) && ! $read_only )43 {44 // @codingStandardsIgnoreStart45 echo "<div class='error'><p>" . __('This action is not valid on a submission that is complete or acknowledged.', 'vat_moss' ) . "</p></div>";46 // @codingStandardsIgnoreEnd47 show_submissions();48 return;49 }41 // $state = get_post_status( $submission_id ); 42 // if ( ( $state === STATE_SUBMITTED || $state === STATE_ACKNOWLEDGED ) && ! $read_only ) 43 // { 44 // // @codingStandardsIgnoreStart 45 // echo "<div class='error'><p>" . __('This action is not valid on a submission that is complete or acknowledged.', 'vat_moss' ) . "</p></div>"; 46 // // @codingStandardsIgnoreEnd 47 // show_submissions(); 48 // return; 49 // } 50 50 51 51 advert( 'wordpress-vat-moss-reporting', VAT_MOSS_VERSION, function() use( $from_year, $from_month, $to_year, $to_month, $submission_id, $read_only ) { -
vat-moss/trunk/includes/class-html-elements.php
r1917780 r2008380 65 65 */ 66 66 public function quarter_dropdown( $name = 'quarter', $selected = 0 ) { 67 67 68 68 $current_quarter = floor((date('m') - 1) / 3) + 1; 69 69 $Q = __('Q', 'vat_moss'); … … 153 153 } 154 154 155 $output = '<select name="' . esc_attr( $args[ 'name' ] ) . '" id="' . esc_attr( sanitize_key( str_replace( '-', '_', $args[ 'id' ] ) ) ) . '" class="edd-select ' . esc_attr( $args[ 'class'] ) . '"' . $multiple . '>'; 156 157 if ( ! empty( $args[ 'options' ] ) ) { 158 if ( $args[ 'show_option_all' ] ) { 159 if( $args['multiple'] ) { 155 $output = '<select name="' . esc_attr( $args[ 'name' ] ) . '" id="' . esc_attr( sanitize_key( str_replace( '-', '_', $args[ 'id' ] ) ) ) . '" class="vat-moss-select ' . esc_attr( $args[ 'class'] ) . '"' . $multiple . '>'; 156 157 if ( ! empty( $args[ 'options' ] ) ) 158 { 159 if ( $args[ 'show_option_all' ] ) 160 { 161 if( $args['multiple'] ) 162 { 160 163 $selected = selected( true, in_array( 0, $args['selected'] ), false ); 161 } else { 164 } 165 else 166 { 162 167 $selected = selected( $args['selected'], 0, false ); 163 168 } … … 165 170 } 166 171 167 if ( $args[ 'show_option_none' ] ) { 168 if( $args['multiple'] ) { 172 if ( $args[ 'show_option_none' ] ) 173 { 174 if( $args['multiple'] ) 175 { 169 176 $selected = selected( true, in_array( -1, $args['selected'] ), false ); 170 } else { 177 } 178 else 179 { 171 180 $selected = selected( $args['selected'], -1, false ); 172 181 } … … 174 183 } 175 184 176 foreach( $args[ 'options' ] as $key => $option ) { 177 178 if( $args['multiple'] && is_array( $args['selected'] ) ) { 185 foreach( $args[ 'options' ] as $key => $option ) 186 { 187 if( $args['multiple'] && is_array( $args['selected'] ) ) 188 { 179 189 $selected = selected( true, in_array( $key, $args['selected'] ), false ); 180 } else { 190 } 191 else 192 { 181 193 $selected = selected( $args['selected'], $key, false ); 182 194 } -
vat-moss/trunk/readme.txt
r1917780 r2008380 6 6 Requires at least: 3.9.2 7 7 Tested up to: 4.9.7 8 Stable Tag: 1.0.2 88 Stable Tag: 1.0.29 9 9 License: GNU Version 2 or Any Later Version 10 10 … … 193 193 194 194 When used on the 31st of the month only months with 31 days are included in the period selection month dropdowns 195 196 = 1.0.29 197 198 Removed lines 41-49 from new-submission.php as they are redundant and the use of constants on line 42 causes a warning message to be written to the log file. 195 199 196 200 == Upgrade Notice == -
vat-moss/trunk/vat-moss.php
r1917780 r2008380 5 5 Plugin URI: http://www.wproute.com/downloads/vat-moss/ 6 6 Description: Management and submission of VAT sales to EU consumers. 7 Version: 1.0.2 87 Version: 1.0.29 8 8 Tested up to: 4.9.7 9 9 Author: Lyquidity Solutions … … 431 431 432 432 if ( ! defined( 'VAT_MOSS_VERSION' ) ) 433 define( 'VAT_MOSS_VERSION', '1.0.2 8' );433 define( 'VAT_MOSS_VERSION', '1.0.29' ); 434 434 435 435 if ( ! defined( 'VAT_MOSS_WORDPRESS_COMPATIBILITY' ) )
Note: See TracChangeset
for help on using the changeset viewer.