PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.1
6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 All 155 releases
← All changes | includes/rest-api/controller/version2/class-mainwp-rest-posts-controller.php +1 -1 6.1.3 → 6.2.1 View file →
@@ -185,9 +185,9 @@
185 185 if ( ! empty( $request['search_on'] ) ) {
186 186 $args['search_on'] = $request['search_on'];
187 187 }
188 188 if ( ! empty( $request['post_type'] ) ) {
189 - $args['post_type'] = isset( $request['post_type'] ) && 0 < strlen( sanitize_text_field( wp_unslash( $request['post_type'] ) ) ) ? sanitize_text_field( wp_unslash( $request['post_type'] ) ) : 'post';
189 + $args['post_type'] = isset( $request['post_type'] ) && 0 < strlen( sanitize_text_field( $request['post_type'] ) ) ? sanitize_text_field( $request['post_type'] ) : 'post';
190 190 }
191 191 if ( ! empty( $request['maximum'] ) ) {
192 192 $args['maximum'] = $request['maximum'];
193 193 }