Changeset 43920
- Timestamp:
- 11/21/2018 04:17:17 PM (6 years ago)
- Location:
- branches/5.0/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-admin/includes/admin-filters.php
r43487 r43920 145 145 146 146 // Show a "postbox" with the text suggestions for a privacy policy. 147 add_action( ' edit_form_after_title', array( 'WP_Privacy_Policy_Content', 'notice' ) );147 add_action( 'admin_notices', array( 'WP_Privacy_Policy_Content', 'notice' ) ); 148 148 149 149 // Add the suggested policy text from WordPress. -
branches/5.0/src/wp-admin/includes/misc.php
r43912 r43920 1541 1541 * 1542 1542 * @since 4.9.6 1543 * 1544 * @param WP_Post $post The currently edited post. 1543 * @since 5.0.0 The $post parameter is now optional. 1544 * 1545 * @param WP_Post|null $post The currently edited post. Default null. 1545 1546 */ 1546 public static function notice( $post ) { 1547 public static function notice( $post = null ) { 1548 $post = get_post( $post ); 1549 1547 1550 if ( ! ( $post instanceof WP_Post ) ) { 1548 1551 return;
Note: See TracChangeset
for help on using the changeset viewer.