• Please check out the screenshot https://prntscr.com/4ocpf4

    Warning: Missing argument 2 for DS_Public_Post_Preview::display_preview_state() in /wp-content\plugins\public-post-preview\public-post-preview.php on line 140

    Was wondering if you have seen this error before or know of a solution to fix it.

    All of a sudden it started giving this error, nothing has changed.

    The plugin seems to work fine but it’s just spamming the page underneath each title with these errors.

    Thank you.

    Line in question is, public static function display_preview_state( $post_states, $post ) {

    /**
    * Adds “Public Preview” to the list of display states used in the Posts list table.
    *
    * @since 2.4.0
    */
    public static function display_preview_state( $post_states, $post ) {
    if ( in_array( $post->ID, self::get_preview_post_ids() ) ) {
    $post_states[‘ppp_enabled’] = __( ‘Public Preview’, ‘ds-public-post-preview’ );
    }

    return $post_states;
    }

    https://www.ads-software.com/plugins/public-post-preview/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Warning: Missing argument 2 for DS_Public_Post_Preview::display_preview_state()’ is closed to new replies.