PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.21
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.21
1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 All 167 releases
← All changes | includes/API/V1/Payment_Gateways.php +2 -2 1.10.10 → 1.10.21 View file →
@@ -122,10 +122,10 @@
122 122 */
123 123 public function prepare_item_for_response( $item, $request ): WP_REST_Response {
124 124 $data = array(
125 125 'id' => $item->id,
126 - 'title' => $item->get_title(),
127 - 'description' => $item->get_description(),
126 + 'title' => $this->gateway_contract->get_display_title( $item ),
127 + 'description' => $this->gateway_contract->get_display_description( $item ),
128 128 'enabled' => $this->gateway_contract->is_pos_enabled( $item ),
129 129 'provider' => $this->gateway_contract->get_provider( $item, $request ),
130 130 'pos_type' => $this->gateway_contract->infer_pos_type( $item, $request ),
131 131 'capabilities' => $this->gateway_contract->get_capabilities( $item, $request ),