Make WordPress Core

Ticket #51131: 51131.diff

File 51131.diff, 514 bytes (added by stoyangeorgiev, 4 years ago)

Remove absint from the result ids

  • wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php

     
    140140                        );
    141141                }
    142142
    143                 $ids = array_map( 'absint', $result[ WP_REST_Search_Handler::RESULT_IDS ] );
     143                $ids = $result[ WP_REST_Search_Handler::RESULT_IDS ];
    144144
    145145                $results = array();
    146146