rebase on oct-10-2023
This commit is contained in:
@@ -275,8 +275,6 @@ class Wincher_Keyphrases_Action {
|
||||
* @return array
|
||||
*/
|
||||
protected function collect_all_keyphrases() {
|
||||
global $wpdb;
|
||||
|
||||
// Collect primary keyphrases first.
|
||||
$keyphrases = \array_column(
|
||||
$this->indexable_repository
|
||||
@@ -347,7 +345,7 @@ class Wincher_Keyphrases_Action {
|
||||
*/
|
||||
protected function to_result_object( $result ) {
|
||||
if ( \array_key_exists( 'data', $result ) ) {
|
||||
$result['results'] = $result['data'];
|
||||
$result['results'] = (object) $result['data'];
|
||||
|
||||
unset( $result['data'] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user