same issue here. rolling back…
Hey guys, just set the stable tag back to v1.4.15 so others don’t get this, looking into it now and will get a patch out asap.
Did extensive testing, so not sure how this slipped through.
Found it, simple fix, can anybody test?
In the file popup-maker/includes/pum-condition-functions.php replace lines 74-93 with:
$templates = wp_get_theme()->get_page_templates();
if ( $name == 'page' && ! empty( $templates ) ) {
$conditions[ $name . '_template' ] = array(
'group' => $post_type->labels->name,
'name' => sprintf( _x( '%s: With Template', 'condition: post type plural label ie. Pages: With Template', 'popup-maker' ), $post_type->labels->name ),
'fields' => array(
'selected' => array(
'type' => 'select',
'select2' => true,
'multiple' => true,
'as_array' => true,
'options' => array_flip(
array_merge(
array( 'default' => __( 'Default', 'popup-maker' ) ),
$templates
)
),
),
),
'callback' => array( 'PUM_Condition_Callbacks', 'post_type' ),
);
}
@dccharron, @bbbbho, @paperkawaii — ^^^. As soon as I confirm that is the only issue I can push a patch.
Concerned that if I push a patch with just that fix another issue may come up that this one hid. Likely not but hate to push another faulty patch.
Ok. Applied patch to 74-95. No error generated. I’ve run a test and all good. Thank you so much.
@dccharron – Thanks for the confirmation. Pushing v1.4.17 now.
Thank you everyone for the quick reports of the issue.
Please take a moment to rate and review the plugin and or support once you have updated to the latest version. If everything is working please click that it Works for you.