PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 2.2.7
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v2.2.7
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/API/WorkSpaces.php +9 -0 2.2.62.2.7 View file →
@@ -174,8 +174,17 @@
174 174 $platform = $this->get_param( 'platform', 'elementor' );
175 175 $share_with = $this->get_param( 'share_with' );
176 176 $remove = $this->get_param( 'remove' );
177 177
178 + if ( empty( $title ) ) {
179 + return $this->error(
180 + 'invalid_name',
181 + __( 'Workspace name cannot be empty.', 'templately' ),
182 + 'workspaces/create',
183 + 400
184 + );
185 + }
186 +
178 187 $post_args = [
179 188 'api_key' => $this->api_key,
180 189 'id' => $id,
181 190 'name' => $title,