PluginProbe
Datafeedr API / 1.4.3
Datafeedr API v1.4.3
1.4.3 1.4.2 1.0.125 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.3 1.0.30 1.0.31 1.0.32 All 182 releases
← All changes | classes/class-dfrapi-export.php +2 -3 1.4.2 → 1.4.3 View file →
@@ -37,9 +37,8 @@
37 37 echo '</div>';
38 38 }
39 39
40 40 function register_settings() {
41 - register_setting( $this->page, $this->key, array( $this, 'validate' ) );
42 41 add_settings_section( 'export_network_data', __( 'Network Data', 'datafeedr-api' ), array( &$this, 'section_export_network_data' ), $this->page );
43 42 add_settings_section( 'export_merchant_data', __( 'Merchant Data', 'datafeedr-api' ), array( &$this, 'section_export_merchant_data' ), $this->page );
44 43 }
45 44
@@ -46,9 +45,9 @@
46 45 function section_export_network_data() {
47 46 $network_settings = (array) get_option( 'dfrapi_networks' );
48 47 echo '<p>' . __( 'To use the same selection of networks on another website, export this store\'s network data by copying the code below. Paste the code into the Import page of your other site.' ) . '</p>';
49 48 echo '<textarea rows="4" cols="100%" onclick="this.focus();this.select()" readonly="readonly">';
50 - echo '[NETWORKS]' . serialize( $network_settings ) . '[/NETWORKS]';
49 + echo esc_textarea( '[NETWORKS]' . serialize( $network_settings ) . '[/NETWORKS]' );
51 50 echo '</textarea>';
52 51 echo '<p class="description">' . __( 'Click within the box to select all your networks and affiliate IDs.' ) . '</p>';
53 52 }
54 53
@@ -55,9 +54,9 @@
55 54 function section_export_merchant_data() {
56 55 $merchant_settings = (array) get_option( 'dfrapi_merchants' );
57 56 echo '<p>' . __( 'To use the same selection of merchants on another website, export this store\'s merchant data by copying the code below. Paste the code into the Import page of your other site.' ) . '</p>';
58 57 echo '<textarea rows="4" cols="100%" onclick="this.focus();this.select()" readonly="readonly">';
59 - echo '[MERCHANTS]' . serialize( $merchant_settings ) . '[/MERCHANTS]';
58 + echo esc_textarea( '[MERCHANTS]' . serialize( $merchant_settings ) . '[/MERCHANTS]' );
60 59 echo '</textarea>';
61 60 echo '<p class="description">' . __( 'Click within the box to select all your merchant IDs.' ) . '</p>';
62 61 }
63 62