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

bugfix: current_user_can check in Feature/SearchOrdering #2255

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

Sysix
Copy link

@Sysix Sysix commented Jul 6, 2021

Requirements

none

Description of the Change

current_user_can should only be passed simple strings/integer not complete objects.

Alternate Designs


Benefits


Possible Drawbacks


Verification Process

Found the Solution here:
https://wordpress.org/support/topic/object-of-class-wp_post-could-not-be-converted-to-string/

Tested in newest ElasticPress und WordPress Version.

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

none

Changelog Entry

Fixed: Creating Custom Results with Feature "Sortable" enabled, could throw an error

@brandwaffle brandwaffle merged commit 20caabd into 10up:develop Jul 6, 2021
felipeelia added a commit that referenced this pull request Jul 6, 2021
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.

2 participants