Changeset 3101492
- Timestamp:
- 06/12/2024 04:05:45 AM (2 months ago)
- Location:
- enable-mastodon-apps/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
enable-mastodon-apps/trunk/README.md
r3101480 r3101492 7 7 - Requires PHP: 7.4 8 8 - License: [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html) 9 - Stable tag: 0.9. 29 - Stable tag: 0.9. 10 10 11 11 Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance. … … 98 98 ## Changelog 99 99 100 101 102 100 103 ### 0.9.2 101 104 - Quick fix to disable the upgrade script to avoid errors. -
enable-mastodon-apps/trunk/enable-mastodon-apps.php
r3101480 r3101492 4 4 * Plugin author: Alex Kirk 5 5 * Plugin URI: https://github.com/akirk/enable-mastodon-apps 6 * Version: 0.9. 26 * Version: 0.9. 7 7 * 8 8 * Description: Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance. … … 14 14 */ 15 15 16 17 18 16 19 defined( 'ABSPATH' ) || exit; 17 20 define( 'ENABLE_MASTODON_APPS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 18 define( 'ENABLE_MASTODON_APPS_VERSION', '0.9. 2' );21 define( 'ENABLE_MASTODON_APPS_VERSION', '0.9.' ); 19 22 20 23 require __DIR__ . '/vendor/bshaffer/oauth2-server-php/src/OAuth2/Autoloader.php'; … … 60 63 'init', 61 64 function () { 62 new Enable_Mastodon_Apps\Mastodon_API();63 new Enable_Mastodon_Apps\Integration\Pixelfed();64 new Enable_Mastodon_Apps\Comment_CPT();65 new Mastodon_API(); 66 new Integration\Pixelfed(); 67 new Comment_CPT(); 65 68 } 66 69 ); 70 71 72 73 -
enable-mastodon-apps/trunk/includes/class-mastodon-admin.php
r3101476 r3101492 472 472 $comment = get_comment( $comment_id ); 473 473 if ( ! $comment || 1 !== intval( $comment->comment_approved ) ) { 474 wp_delete_post( $comment_post->ID, true ); 474 if ( Comment_CPT::CPT === get_post_type( $comment_post->ID ) ) { 475 wp_delete_post( $comment_post->ID, true ); 476 } 475 477 } 476 478 }
Note: See TracChangeset
for help on using the changeset viewer.