#65202 closed enhancement (fixed)
Tests: Add unit tests for _wp_privacy_settings_filter_draft_page_titles()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.1 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | has-patch has-unit-tests |
| Focuses: | tests | Cc: |
Description (last modified by )
This ticket adds unit tests for the _wp_privacy_settings_filter_draft_page_titles() function in wp-admin/includes/misc.php.
Change History (5)
#1
@
6 weeks ago
- Description modified (diff)
- Summary changed from Tests: Add unit tests for wp_privacy_generate_personal_data_export_group_html() to Tests: Add unit tests for _wp_privacy_settings_filter_draft_page_titles()
This ticket was mentioned in PR #11763 on WordPress/wordpress-develop by @pbearne.
6 weeks ago
#2
- Keywords has-patch has-unit-tests added
Note: See
TracTickets for help on using
tickets.
… wp-admin/includes/misc.php
Description:
This PR adds unit tests for the
_wp_privacy_settings_filter_draft_page_titles()function inwp-admin/includes/misc.php. This function is responsible for appending "(Draft)" to the titles of draft pages when they are displayed in the privacy settings dropdown, ensuring that unpublished content is clearly identified.The tests cover:
Trac ticket: https://core.trac.wordpress.org/ticket/65202
AI Disclosure: