Make WordPress Core


Ignore:
Timestamp:
12/18/2018 04:13:59 PM (6 years ago)
Author:
desrosj
Message:

Block Editor: Show privacy help notice on Privacy Policy page.

When editing a page set to be the Privacy Policy page, display a help notice
containing a link to the Privacy Policy guide.

Merges [43920] to trunk.

Fixes #45057.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/includes/misc.php

    r44275 r44291  
    16131613     *
    16141614     * @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.
    16171618     */
    1618     public static function notice( $post ) {
     1619    public static function notice( $post = null ) {
     1620        $post = get_post( $post );
     1621
    16191622        if ( ! ( $post instanceof WP_Post ) ) {
    16201623            return;
Note: See TracChangeset for help on using the changeset viewer.