Support » Plugin: Manage Privacy Options Page » Duplicated post state after activation

Viewing 1 replies (of 1 total)
  • Same here, could be fixed like this, plugin 1.0, line 78:

    Old:

    function bawmpo_add_post_state_label( $post_states, $post ) {
    	if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) {
    		$post_states[] = __( 'Privacy Policy page' );
    	}
    	return $post_states;
    }

    New, array key and capital ‘P’ at ‘Privacy Policy Page’:

    function bawmpo_add_post_state_label( $post_states, $post ) {
    	if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) {
    		$post_states['page_for_privacy_policy'] = __( 'Privacy Policy Page' );
    	}
    	return $post_states;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Duplicated post state after activation’ is closed to new replies.