wordpress-develop/tests/phpunit/tests/link
David Baumwald c40e0c6f81 Revisions: Add edit link functionality for the wp_template and wp_template_part post types.
In preparation for viewing revisions of templates and template parts in the editor, this set changes adds the `_edit_link` argument when registering the `wp_template` and `wp_template_part` post types.  This commit also updates `get_edit_post_link` to account for the unique edit URLs for these post types.

Finally, this commit also adds new unit tests for the `get_edit_post_link` function, including tests for the `post`, `wp_template`, and `wp_template_part` post types.

Fixes #57709.
Props andraganescu, spacedmonkey, antonvlasenko, youknowriad, ramonopoly, ironprogrammer, annezazu.

git-svn-id: https://develop.svn.wordpress.org/trunk@55743 602fd350-edb4-49c9-b593-d223f7449a82
2023-05-10 17:34:13 +00:00
..
editTermLink.php Tests: Simplify and correct get_term_link() and get_edit_term_link() tests: 2022-09-02 01:14:29 +00:00
getAdjacentPost.php Posts, Post Types: Use persistent caching in get_adjacent_post function. 2023-01-18 11:18:36 +00:00
getAdjacentPostLink.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
getDashboardUrl.php Tests: Add missing @covers tags for files in phpunit/tests/link/. 2021-02-28 17:09:39 +00:00
getEditPostLink.php Revisions: Add edit link functionality for the wp_template and wp_template_part post types. 2023-05-10 17:34:13 +00:00
getEditTermLink.php Tests: Simplify and correct get_term_link() and get_edit_term_link() tests: 2022-09-02 01:14:29 +00:00
getFeedLink.php Feeds: Fix the URL returned by get_feed_link() when pretty permalinks are not in use. 2021-02-16 17:32:58 +00:00
getNextCommentsLink.php Tests: Replace assertContains() with assertStringContainsString() when used with strings. 2021-07-19 14:00:11 +00:00
getNextPostsLink.php Tests: Add unit tests for get_next_posts_link() and get_previous_posts_link(). 2023-03-01 14:43:27 +00:00
getPostCommentsFeedLink.php Feeds: Avoid notices in get_post_comments_feed_link(). 2021-06-08 22:59:19 +00:00
getPostPermalink.php Posts, Post Types: Correct the check for non-existing post in get_post_permalink(). 2022-07-20 15:39:18 +00:00
getPostTypeArchiveLink.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
getPreviewPostLink.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
getPreviousCommentsLink.php Tests: Replace assertContains() with assertStringContainsString() when used with strings. 2021-07-19 14:00:11 +00:00
getPreviousPostsLink.php Tests: Add unit tests for get_next_posts_link() and get_previous_posts_link(). 2023-03-01 14:43:27 +00:00
getThePostsNavigation.php Tests: Add unit tests for get_next_posts_link() and get_previous_posts_link(). 2023-03-01 14:43:27 +00:00
getThePrivacyPolicyLink.php Tests: Second pass at merging file-level and class-level DocBlocks in various unit test files. 2023-03-03 14:42:42 +00:00
selfAdminUrl.php Tests: Add missing @covers tags for files in phpunit/tests/link/. 2021-02-28 17:09:39 +00:00
themeFile.php General: Replace all esc_url_raw() calls in core with sanitize_url(). 2022-06-01 18:12:25 +00:00
wpGetCanonicalUrl.php Permalinks: Revert the changes stemming from pagination limits. 2021-06-08 23:31:46 +00:00