Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
CRAP
n/a
0 / 0
wpcomsh_post_list_init
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * Setup and configure the post list package
4 *
5 * The post list package is part of Jetpack, but is currently not used
6 * by the Jetpack plugin. We require and use it on WordPress.com simple
7 * and Atomic sites using composer.
8 *
9 * @package wpcomsh
10 */
11
12use Automattic\Jetpack\Config;
13
14/**
15 * Main function to setup the package
16 */
17function wpcomsh_post_list_init() {
18    add_filter( 'jetpack_block_editor_republicize_feature', '__return_true' );
19
20    $config = new Config();
21    $config->ensure( 'post_list' );
22    $config->on_plugins_loaded();
23}
24
25add_action( 'admin_init', 'wpcomsh_post_list_init', 1 );