PluginProbe
WDesignKit – AI Templates, Widget Builder & MCP Workflow / 1.0.21
WDesignKit – AI Templates, Widget Builder & MCP Workflow v1.0.21
2.6.6 2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.5.5 2.5.4 2.5.3 2.5.2 2.5.1 2.5.0 2.4.0 2.3.3 2.3.2 2.3.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 All 128 releases
← All changes | includes/admin/class-wdesignkit-data-query.php +3 -3 2.5.21.0.21 View file →
@@ -37,9 +37,9 @@
37 37 * WdKit API $url
38 38 *
39 39 * @var string
40 40 */
41 - private static $url = WDKIT_SERVER_API_URL . 'api/wp/';
41 + private static $url = WDKIT_SERVER_SITE_URL . 'api/wp/';
42 42
43 43 /**
44 44 * Initiator
45 45 */
@@ -89,9 +89,9 @@
89 89 * @param string $type api type.
90 90 * @param string $data array.
91 91 * @param string $args array.
92 92 */
93 - public static function get_data( $type = '', $data = array(), $args = array(), $timeout = 60 ) {
93 + public static function get_data( $type = '', $data = array(), $args = array() ) {
94 94 $headers = array( 'Content-Type' => 'application/json' );
95 95
96 96 if ( empty( $type ) ) {
97 97 return self::wdkit_error_msg( 'Something went wrong.' );
@@ -105,9 +105,9 @@
105 105
106 106 $response = wp_remote_post(
107 107 self::$url . $type,
108 108 array(
109 - 'timeout' => $timeout,
109 + 'timeout' => 15,
110 110 'headers' => $headers,
111 111 'body' => wp_json_encode( $data ),
112 112 )
113 113 );