Skip to content

Commit

Permalink
Merge pull request #132 from alleyinteractive/feature/LEDE-2615/more-…
Browse files Browse the repository at this point in the history
…wp-cleanup

LEDE-2615 Even More WordPress cleanup
cahdeemer authored May 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents eda0308 + f08cfd9 commit 8b1ddad
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions plugin.php
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* Plugin Name: Newsletter Builder
* Plugin URI: https://github.com/alleyinteractive/wp-newsletter-builder
* Description: Interface to manage email newsletters
* Version: 0.3.13
* Version: 0.3.14
* Author: Alley Interactive
* Author URI: https://github.com/alleyinteractive/wp-newsletter-builder
* Requires at least: 6.2
@@ -64,7 +64,6 @@ function () {
function main(): void {
new Ads();
new Block_Modifications();
new Breaking_Recipients();
new Email_Types();
new Settings();
new Media();
2 changes: 1 addition & 1 deletion src/class-email-types.php
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ public function presave( $value, $current_value = [] ) {
]
),
'templates' => new \Fieldmanager_Checkboxes(
'Checkboxes',
'Templates',
[
'datasource' => new \Fieldmanager_Datasource_Post(
[
1 change: 1 addition & 0 deletions src/class-wp-newsletter-builder.php
Original file line number Diff line number Diff line change
@@ -307,6 +307,7 @@ public function modify_query( WP_Query $query ): WP_Query {
if (
$query->is_main_query()
&& isset( $query->query_vars['post_type'] )
&& ! $query->is_admin
&& 'nb_newsletter' === $query->query_vars['post_type']
) {
$query->query['post_status'] = [ 'publish', 'draft' ];

0 comments on commit 8b1ddad

Please sign in to comment.