| @@ -19,19 +19,19 @@ | ||
| 19 | 19 | $unique = $this->unique; |
| 20 | 20 | $nonce = wp_create_nonce( 'adminify_backup_nonce' ); |
| 21 | 21 | $export = add_query_arg( array( 'action' => 'adminify-export', 'unique' => $unique, 'nonce' => $nonce ), admin_url( 'admin-ajax.php' ) ); |
| 22 | 22 | |
| 23 | - echo wp_kses_post( $this->field_before() ); | |
| 23 | + echo $this->field_before(); | |
| 24 | 24 | |
| 25 | 25 | echo '<textarea name="adminify_import_data" class="adminify-import-data"></textarea>'; |
| 26 | 26 | echo '<button type="submit" class="button button-primary adminify-confirm adminify-import" data-unique="'. esc_attr( $unique ) .'" data-nonce="'. esc_attr( $nonce ) .'">'. esc_html__( 'Import', 'adminify' ) .'</button>'; |
| 27 | 27 | echo '<hr />'; |
| 28 | - echo '<textarea readonly="readonly" class="adminify-export-data">'. esc_attr( wp_json_encode( get_option( $unique ) ) ) .'</textarea>'; | |
| 28 | + echo '<textarea readonly="readonly" class="adminify-export-data">'. esc_attr( json_encode( get_option( $unique ) ) ) .'</textarea>'; | |
| 29 | 29 | echo '<a href="'. esc_url( $export ) .'" class="button button-primary adminify-export" target="_blank">'. esc_html__( 'Export & Download', 'adminify' ) .'</a>'; |
| 30 | 30 | echo '<hr />'; |
| 31 | 31 | echo '<button type="submit" name="adminify_transient[reset]" value="reset" class="button adminify-warning-primary adminify-confirm adminify-reset" data-unique="'. esc_attr( $unique ) .'" data-nonce="'. esc_attr( $nonce ) .'">'. esc_html__( 'Reset', 'adminify' ) .'</button>'; |
| 32 | 32 | |
| 33 | - echo wp_kses_post( $this->field_after() ); | |
| 33 | + echo $this->field_after(); | |
| 34 | 34 | |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | } |