Sergey Biryukov
c7af86080d
Tests: Consistently set the current user in the tests for retaining a sticky status.
...
This affects:
* `test_user_without_publish_posts_cannot_affect_sticky()`
* `test_user_without_publish_posts_cannot_affect_sticky_with_edit_post()`
In both tests, the user is now set after creating the post, not before. This aims to better match the intention of the tests, as they ensure that a sticky status is unaffected for a post that is ''edited'' by a user without the `publish_posts` capability, not necessarily ''created'' by that user.
Includes minor documentation updates for consistency.
Follow-up to [33096], [35183].
See #55652 .
git-svn-id: https://develop.svn.wordpress.org/trunk@54068 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-05 14:31:05 +00:00
..
2022-08-25 15:34:24 +00:00
2022-07-26 13:21:55 +00:00
2022-07-07 21:06:03 +00:00
2022-08-21 16:55:18 +00:00
2022-08-23 14:50:56 +00:00
2021-12-21 00:10:26 +00:00
2022-08-27 12:30:08 +00:00
2022-07-07 23:00:07 +00:00
2022-08-25 15:34:24 +00:00
2022-09-03 14:45:20 +00:00
2022-07-29 03:32:58 +00:00
2022-08-27 12:30:08 +00:00
2022-08-01 22:48:42 +00:00
2022-08-22 16:40:54 +00:00
2022-05-07 02:51:54 +00:00
2021-08-20 16:11:04 +00:00
2021-08-21 15:32:53 +00:00
2022-05-23 14:20:47 +00:00
2022-09-01 16:21:46 +00:00
2021-11-04 15:22:47 +00:00
2022-09-01 16:40:33 +00:00
2022-08-13 12:09:41 +00:00
2022-08-18 08:43:19 +00:00
2022-08-25 15:34:24 +00:00
2022-06-12 15:16:09 +00:00
2022-07-21 18:01:01 +00:00
2022-08-08 23:22:43 +00:00
2022-08-27 12:30:08 +00:00
2022-08-11 12:37:05 +00:00
2022-09-02 01:14:29 +00:00
2022-08-11 21:49:08 +00:00
2022-08-07 14:32:55 +00:00
2022-08-27 12:30:08 +00:00
2022-06-23 14:24:08 +00:00
2022-04-07 17:57:59 +00:00
2022-03-22 16:23:32 +00:00
2022-08-08 23:33:11 +00:00
2022-06-08 13:17:27 +00:00
2022-08-27 12:30:08 +00:00
2022-08-25 15:34:24 +00:00
2022-08-27 12:30:08 +00:00
2022-08-25 04:21:40 +00:00
2022-09-01 23:11:34 +00:00
2022-08-27 12:30:08 +00:00
2022-08-05 05:47:56 +00:00
2021-08-07 10:29:41 +00:00
2022-09-02 01:14:29 +00:00
2022-08-31 10:11:30 +00:00
2022-07-08 00:11:15 +00:00
2022-08-27 12:30:08 +00:00
2022-04-30 11:33:30 +00:00
2021-12-06 21:29:00 +00:00
2022-03-02 15:38:27 +00:00
2021-12-19 13:42:37 +00:00
2022-08-25 15:34:24 +00:00
2021-11-04 15:22:47 +00:00
2021-11-15 01:08:35 +00:00
2022-06-09 05:29:57 +00:00
2022-07-07 23:55:13 +00:00
2022-06-01 14:16:39 +00:00
2022-04-07 13:33:03 +00:00
2022-08-04 17:47:41 +00:00
2022-04-01 03:23:07 +00:00
2022-07-07 23:00:07 +00:00
2022-08-08 23:12:30 +00:00
2022-08-08 23:12:30 +00:00
2022-07-29 03:32:58 +00:00
2022-07-06 05:31:47 +00:00
2022-08-15 13:16:22 +00:00
2021-12-07 17:44:46 +00:00
2022-08-07 14:48:42 +00:00
2022-07-31 16:25:27 +00:00
2022-08-23 19:57:17 +00:00
2021-08-26 12:57:08 +00:00
2021-08-26 12:57:08 +00:00
2022-05-02 13:11:07 +00:00
2022-08-08 23:39:06 +00:00
2021-11-04 15:22:47 +00:00
2022-08-08 23:39:06 +00:00
2022-08-16 18:16:43 +00:00
2022-08-22 19:50:15 +00:00
2022-08-27 12:30:08 +00:00
2021-11-04 15:22:47 +00:00
2022-07-23 14:56:51 +00:00
2022-09-05 14:31:05 +00:00
2022-08-08 14:38:08 +00:00
2022-04-19 14:38:16 +00:00
2022-08-25 15:34:24 +00:00
2021-08-26 12:57:08 +00:00
2022-08-27 12:30:08 +00:00
2022-09-01 17:04:52 +00:00
2022-09-01 16:48:26 +00:00
2021-08-07 10:29:41 +00:00
2022-03-16 03:04:40 +00:00
2022-08-31 16:02:05 +00:00
2021-11-04 15:22:47 +00:00
2022-07-08 00:11:15 +00:00
2022-08-03 14:34:58 +00:00
2022-09-01 19:06:19 +00:00
2022-08-27 12:30:08 +00:00
2021-11-27 16:16:15 +00:00
2021-08-07 10:29:41 +00:00