Skip to content

Commit

Permalink
Merge pull request #1216 from alleyinteractive/delete-issue
Browse files Browse the repository at this point in the history
Prevent delete for revisions
  • Loading branch information
mslinnea authored Feb 10, 2025
2 parents e12365a + ab2aa57 commit c725cae
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions admin/class-admin-apple-post-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function do_publish( $id, $post ) {
public function do_delete( $id ) {
$post = get_post( $id );
if ( empty( $post->post_type )
|| wp_is_post_revision( $id )
|| ! current_user_can(
/**
* Filters the delete capability required to delete posts from Apple News.
Expand Down
2 changes: 1 addition & 1 deletion apple-news.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Publish To Apple News
* Plugin URI: http://github.com/alleyinteractive/apple-news
* Description: Export and sync posts to Apple format.
* Version: 2.6.2
* Version: 2.6.3
* Author: Alley
* Author URI: https://alley.com
* Text Domain: apple-news
Expand Down
2 changes: 1 addition & 1 deletion includes/class-apple-news.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Apple_News {
* @var string
* @access public
*/
public static string $version = '2.6.2';
public static string $version = '2.6.3';

/**
* Link to support for the plugin on WordPress.org.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "publish-to-apple-news",
"version": "2.6.2",
"version": "2.6.3",
"license": "GPLv3",
"main": "index.php",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: publish, apple, news, iOS
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
Stable tag: 2.6.2
Stable tag: 2.6.3
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl.html

Expand Down

0 comments on commit c725cae

Please sign in to comment.