Changeset 1503637
- Timestamp:
- 09/27/2016 01:21:26 PM (10 years ago)
- File:
-
- 1 edited
-
rumailer/trunk/rumailer.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rumailer/trunk/rumailer.php
r1503606 r1503637 507 507 <div class="wrap" id="clones-forms"> 508 508 <h2><? _e('Export', self::PageName); ?></h2> 509 <? if ( wp_verify_nonce($_POST['rumailer_export_user'], 'export')) {510 if(!empty($_POST )){509 <? if (!empty($_POST) and wp_verify_nonce($_POST['rumailer_export_user'], 'export')) { 510 if(!empty($_POST['rumailer_setting_list']) and !empty($_POST['role'])){ 511 511 global $RumailerAPI; 512 512 $data = $_POST; … … 617 617 if(!empty($param[0])){ 618 618 $data_res['fields'][sanitize_text_field($filds)] = sanitize_text_field($param[0]); 619 add_post_meta($post_id, sanitize_text_field($filds), sanitize_text_field($param[0])); 619 620 } 620 add_post_meta($post_id, sanitize_text_field($filds), sanitize_text_field($param));621 621 } 622 622 sleep(1); … … 626 626 continue; 627 627 } 628 }?> 629 630 <p><? echo sprintf( __('All %d exported to the subscription list "%s"', self::PageName), count($users), $wp_list->name ); ?></p> 628 } 629 if(empty($wp_list->name)){ 630 $name_list = 'ERROR LIST NAME'; 631 } else { 632 $name_list = $wp_list->name; 633 } 634 $users_count = count($users); 635 if($users_count==0){ 636 $name_list = 'ERROR COUNT USER'; 637 } ?> 638 <p><? echo sprintf( __('All %d exported to the subscription list "%s"', self::PageName), count($users), $name_list ); ?></p> 631 639 <? 632 640 } else {
Note: See TracChangeset
for help on using the changeset viewer.