PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / 7.2.1
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings v7.2.1
7.2.2 7.2.1 7.2 7.1.2 7.1.1 7.1 7.0.4 7.0.6 7.0.7 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 6.3.1 trunk 5.7.3 5.7.5 5.8.1 5.8.2 5.8.3 5.8.4 5.8.6 6.0.4 All 37 releases
← All changes | includes/standalone/page-blocks.php +1 -17 trunk7.2.1 View file →
@@ -222,12 +222,8 @@
222 222 if ( in_array( $show, array( '', '0', 'no', 'false' ), true ) ) {
223 223 $qargs['hide_search_form'] = true;
224 224 }
225 225
226 - // This is the one surface that offers "Save this search" (issue #221): the flag
227 - // tells the mlsimport_results_toolbar listener to print its button here.
228 - $qargs['saved_search'] = true;
229 -
230 226 return Mlsimport_Standalone_Render::render_grid( $qargs );
231 227 }
232 228
233 229 /**
@@ -1330,14 +1326,8 @@
1330 1326 * Normalize a form's fields arg into a list of complete rows. Accepts a repeater
1331 1327 * array (rows from Gutenberg/Elementor), or a comma-list string / array of field
1332 1328 * keys (shortcode/legacy) which becomes default rows.
1333 1329 *
1334 - * A comma-list item may carry a width after a colon — "key:width", e.g.
1335 - * fields="location:half,price:third,mls_number:third" — so a shortcode can lay
1336 - * its fields out on a grid the way the block/Elementor repeater can. A bare key
1337 - * (no colon) keeps the default full width; an unknown width is simply ignored by
1338 - * mlsimport_page_block_width_class(), so the field still renders.
1339 - *
1340 1330 * @param mixed $raw Repeater rows, comma string, or array of keys.
1341 1331 * @param string $kind 'search' | 'contact'.
1342 1332 * @return array<int,array<string,mixed>>
1343 1333 */
@@ -1355,15 +1345,9 @@
1355 1345 foreach ( $raw as $item ) {
1356 1346 if ( is_array( $item ) ) {
1357 1347 $rows[] = mlsimport_page_block_normalize_row( $item, $kind );
1358 1348 } elseif ( is_string( $item ) && '' !== trim( $item ) ) {
1359 - // Split "key:width" BEFORE sanitizing: sanitize_key() strips the colon, so
1360 - // sanitizing the whole item would glue the two halves into one bogus key.
1361 - $parts = explode( ':', trim( $item ), 2 );
1362 - $row = mlsimport_page_block_row_from_key( sanitize_key( $parts[0] ), $kind );
1363 - // The width is sanitized on its own; a bare key leaves the default ''.
1364 - $row['width'] = isset( $parts[1] ) ? sanitize_key( $parts[1] ) : '';
1365 - $rows[] = $row;
1349 + $rows[] = mlsimport_page_block_row_from_key( sanitize_key( trim( $item ) ), $kind );
1366 1350 }
1367 1351 }
1368 1352 return $rows;
1369 1353 }