Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: 'sites' => 'current' doesn't work as expected #3243

Merged
merged 3 commits into from
Jan 4, 2023
Merged

Conversation

burhandodhy
Copy link
Contributor

@burhandodhy burhandodhy commented Jan 4, 2023

Description of the Change

This PR fixes the issue where the 'sites' => 'current' doesn't work after as expected.

Closes #3225

How to test the Change

Run the below query on the multisite and it should only returns the post of current site


		$query = new \WP_Query(
			array(
				's'  => 'site',
				'sites' => 'current',
			)
		);

Changelog Entry

Fixed - 'sites' => 'current' doesn't work

Credits

Props @oscarssanchez @anders-naslund @burhandodhy

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@burhandodhy burhandodhy added this to the 4.4.1 milestone Jan 4, 2023
@felipeelia felipeelia merged commit 21aaa34 into develop Jan 4, 2023
@felipeelia felipeelia deleted the fix/3225 branch January 4, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Search in multisite for 'sites' => 'current'
2 participants