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

Malformed sticky_posts option breaks sticky posts. #2353

Closed

Conversation

peterwilsoncc
Copy link
Contributor

@peterwilsoncc
Copy link
Contributor Author

@costdev Would you be able to take a look at this PR, for some reason I can not assign you as a reviewer.

Copy link
Contributor

@costdev costdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few suggestions for consistency in the test suite.

tests/phpunit/tests/post.php Outdated Show resolved Hide resolved
Comment on lines 1720 to 1726
* Data provider for test_stick_post_after_delete_sticky_posts_option().
*
* @return array[] {
* Arguments passed to test.
*
* @type mixed $stick Value to pass to stick_post().
* }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data provider docblocks can be simply this:

/**
 * Data provider.
 *
 * @return array
 */

This reduces maintainence churn for arguments, as well as when future test methods may also use the data provider.

tests/phpunit/tests/post.php Outdated Show resolved Hide resolved
@peterwilsoncc
Copy link
Contributor Author

@peterwilsoncc peterwilsoncc deleted the 55176-stickies-option branch April 21, 2022 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants