Plugin Directory

Changeset 3290201


Ignore:
Timestamp:
05/09/2025 03:25:14 AM (8 months ago)
Author:
akirk
Message:

enable-mastodon-apps 1.4.6

Location:
enable-mastodon-apps/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • enable-mastodon-apps/trunk/README.md

    r3290022 r3290201  
    77- Requires PHP: 7.4
    88- License: [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
    9 - Stable tag: 1.4.5
     9- Stable tag: 1.4.6
    1010
    1111Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance.
     
    100100
    101101## 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])
    102107
    103108### 1.4.5
     
    293298
    294299[#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  
    44 * Plugin author: Alex Kirk
    55 * Plugin URI: https://github.com/akirk/enable-mastodon-apps
    6  * Version: 1.4.5
     6 * Version: 1.4.6
    77 *
    88 * Description: Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance.
     
    2121define( 'ENABLE_MASTODON_APPS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2222define( 'ENABLE_MASTODON_APPS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    23 define( 'ENABLE_MASTODON_APPS_VERSION', '1.4.5' );
     23define( 'ENABLE_MASTODON_APPS_VERSION', '1.4.6' );
    2424
    2525require __DIR__ . '/vendor/bshaffer/oauth2-server-php/src/OAuth2/Autoloader.php';
  • enable-mastodon-apps/trunk/includes/class-mastodon-api.php

    r3290022 r3290201  
    6868
    6969    public function register_hooks() {
    70         add_action( 'plugins_loaded', array( $this, 'rewrite_rules' ) );
     70        add_action( 'wp_loaded', array( $this, 'rewrite_rules' ) );
    7171        add_action( 'query_vars', array( $this, 'query_vars' ) );
    7272        add_action( 'rest_api_init', array( $this, 'add_rest_routes' ) );
     
    388388
    389389        if ( $needs_flush ) {
    390             global $wp_rewrite;
    391             $wp_rewrite->flush_rules();
     390            flush_rewrite_rules();
    392391        }
    393392    }
  • enable-mastodon-apps/trunk/includes/handler/class-conversation.php

    r3289858 r3290201  
    170170    }
    171171
    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;
    174177    }
    175178}
  • enable-mastodon-apps/trunk/templates/app.php

    r3289858 r3290201  
    134134                        <p class="description">
    135135                            <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>
    137137                        </p>
    138138                    </td>
     
    230230
    231231        <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">
    233233            <?php
    234234            echo esc_html(
Note: See TracChangeset for help on using the changeset viewer.