Changeset 44291
- Timestamp:
- 12/18/2018 04:13:59 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43920
- Property svn:mergeinfo changed
-
trunk/src/wp-admin/includes/admin-filters.php
r44275 r44291 147 147 148 148 // Show a "postbox" with the text suggestions for a privacy policy. 149 add_action( ' edit_form_after_title', array( 'WP_Privacy_Policy_Content', 'notice' ) );149 add_action( 'admin_notices', array( 'WP_Privacy_Policy_Content', 'notice' ) ); 150 150 151 151 // Add the suggested policy text from WordPress. -
trunk/src/wp-admin/includes/misc.php
r44275 r44291 1613 1613 * 1614 1614 * @since 4.9.6 1615 * 1616 * @param WP_Post $post The currently edited post. 1615 * @since 5.0.0 The $post parameter is now optional. 1616 * 1617 * @param WP_Post|null $post The currently edited post. Default null. 1617 1618 */ 1618 public static function notice( $post ) { 1619 public static function notice( $post = null ) { 1620 $post = get_post( $post ); 1621 1619 1622 if ( ! ( $post instanceof WP_Post ) ) { 1620 1623 return;
Note: See TracChangeset
for help on using the changeset viewer.