Changeset 3290201
- Timestamp:
- 05/09/2025 03:25:14 AM (8 months ago)
- Location:
- enable-mastodon-apps/trunk
- Files:
-
- 5 edited
-
README.md (modified) (3 diffs)
-
enable-mastodon-apps.php (modified) (2 diffs)
-
includes/class-mastodon-api.php (modified) (2 diffs)
-
includes/handler/class-conversation.php (modified) (1 diff)
-
templates/app.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
enable-mastodon-apps/trunk/README.md
r3290022 r3290201 7 7 - Requires PHP: 7.4 8 8 - License: [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html) 9 - Stable tag: 1.4. 59 - Stable tag: 1.4.6 10 10 11 11 Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance. … … 100 100 101 101 ## Changelog 102 103 ### 1.4.6 104 - Fix registering rewrite rules ([#261]) 105 - Fix missing type=button on toggle all link ([#259]) 106 - Bring back post row actions ([#260]) 102 107 103 108 ### 1.4.5 … … 293 298 294 299 [#257]: https://github.com/akirk/enable-mastodon-apps/pull/257 300 301 [#259]: https://github.com/akirk/enable-mastodon-apps/pull/259 302 [#260]: https://github.com/akirk/enable-mastodon-apps/pull/260 303 [#261]: https://github.com/akirk/enable-mastodon-apps/pull/261 -
enable-mastodon-apps/trunk/enable-mastodon-apps.php
r3290022 r3290201 4 4 * Plugin author: Alex Kirk 5 5 * Plugin URI: https://github.com/akirk/enable-mastodon-apps 6 * Version: 1.4. 56 * Version: 1.4.6 7 7 * 8 8 * Description: Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance. … … 21 21 define( 'ENABLE_MASTODON_APPS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 22 22 define( 'ENABLE_MASTODON_APPS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 23 define( 'ENABLE_MASTODON_APPS_VERSION', '1.4. 5' );23 define( 'ENABLE_MASTODON_APPS_VERSION', '1.4.6' ); 24 24 25 25 require __DIR__ . '/vendor/bshaffer/oauth2-server-php/src/OAuth2/Autoloader.php'; -
enable-mastodon-apps/trunk/includes/class-mastodon-api.php
r3290022 r3290201 68 68 69 69 public function register_hooks() { 70 add_action( ' plugins_loaded', array( $this, 'rewrite_rules' ) );70 add_action( 'wp_loaded', array( $this, 'rewrite_rules' ) ); 71 71 add_action( 'query_vars', array( $this, 'query_vars' ) ); 72 72 add_action( 'rest_api_init', array( $this, 'add_rest_routes' ) ); … … 388 388 389 389 if ( $needs_flush ) { 390 global $wp_rewrite; 391 $wp_rewrite->flush_rules(); 390 flush_rewrite_rules(); 392 391 } 393 392 } -
enable-mastodon-apps/trunk/includes/handler/class-conversation.php
r3289858 r3290201 170 170 } 171 171 172 public function dm_row_actions() { 173 return array(); 172 public function dm_row_actions( $actions, $post ) { 173 if ( is_admin() && get_post_type( $post ) === 'ema-dm-' . get_current_user_id() ) { 174 return array(); 175 } 176 return $actions; 174 177 } 175 178 } -
enable-mastodon-apps/trunk/templates/app.php
r3289858 r3290201 134 134 <p class="description"> 135 135 <span><?php esc_html_e( 'The post formats that will be used for this app.', 'enable-mastodon-apps' ); ?></span> 136 <button id="toggle_all_post_formats" class="as-link" ><?php esc_html_e( 'Toggle all', 'enable-mastodon-apps' ); ?></button>136 <button id="toggle_all_post_formats" class="as-link" type="button"><?php esc_html_e( 'Toggle all', 'enable-mastodon-apps' ); ?></button> 137 137 </p> 138 138 </td> … … 230 230 231 231 <button class="button button-primary"><?php esc_html_e( 'Save', 'enable-mastodon-apps' ); ?></button> 232 <button name="delete-app" data-confirm="<?php echo esc_attr( $confirm ); ?>" value="<?php echo esc_attr( $app->get_client_id() ); ?>" class="button button-destructive" >232 <button name="delete-app" data-confirm="<?php echo esc_attr( $confirm ); ?>" value="<?php echo esc_attr( $app->get_client_id() ); ?>" class="button button-destructive" type="button"> 233 233 <?php 234 234 echo esc_html(
Note: See TracChangeset
for help on using the changeset viewer.