Changeset 43455 for branches/4.9/src/wp-admin/includes/misc.php
- Timestamp:
- 07/16/2018 01:51:08 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 43376,43454
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-admin/includes/misc.php
r43368 r43455 1224 1224 1225 1225 /** 1226 * Appends '(Draft)' to draft page titles in the privacy page dropdown 1227 * so that unpublished content is obvious. 1228 * 1229 * @since 4.9.8 1230 * @access private 1231 * 1232 * @param string $title Page title. 1233 * @param WP_Post $page Page data object. 1234 * 1235 * @return string Page title. 1236 */ 1237 function _wp_privacy_settings_filter_draft_page_titles( $title, $page ) { 1238 if ( 'draft' === $page->post_status && 'privacy' === get_current_screen()->id ) { 1239 /* translators: %s: Page Title */ 1240 $title = sprintf( __( '%s (Draft)' ), $title ); 1241 } 1242 1243 return $title; 1244 } 1245 1246 /** 1226 1247 * WP_Privacy_Policy_Content class. 1227 1248 * TODO: move this to a new file.
Note: See TracChangeset
for help on using the changeset viewer.