Plugin Directory

Changeset 2429855


Ignore:
Timestamp:
12/01/2020 10:05:32 PM (5 years ago)
Author:
codeinwp
Message:

Release v8.6.2

Location:
tweet-old-post
Files:
625 added
9 edited

Legend:

Unmodified
Added
Removed
  • tweet-old-post/trunk/CHANGELOG.md

    r2425024 r2429855  
    11
     2 ### v8.6.2 - 2020-12-01
     3 **Changes:**
     4 * Fix PRO: Error in the dashboard if the user had a previously connected Buffer account inside ROP and tried to update the plugin. A notice will now be shown with a link to updating steps for those situations.
     5 
    26 ### v8.6.1 - 2020-11-24
    37 **Changes:**
  • tweet-old-post/trunk/includes/admin/models/class-rop-services-model.php

    r2371275 r2429855  
    245245            }
    246246        );
     247
    247248        $services = array_map(
    248249            function ( $service ) {
     
    252253                $service['available_accounts'] = array_map(
    253254                    function ( $account ) {
     255                        // Added in v8.6.2 to prevent fatal errors due to us dropping buffer
     256                        // TODO: Remove below code in later version of ROP
     257                        if ( $account['service'] === 'buffer' ) {
     258                            unset( $account['service'] );
     259                            return;
     260                        }
    254261                        $service = Rop_Services_Factory::build( $account['service'] );
    255262                        $account = $service->populate_additional_data( $account );
  • tweet-old-post/trunk/includes/class-rop.php

    r2425024 r2429855  
    6969
    7070        $this->plugin_name = 'rop';
    71         $this->version     = '8.6.1';
     71        $this->version     = '8.6.2';
    7272
    7373        $this->load_dependencies();
  • tweet-old-post/trunk/readme.md

    r2425024 r2429855  
    262262
    263263## Changelog ##
     264### 8.6.2 - 2020-12-01  ###
     265
     266* Fix PRO: Error in the dashboard if the user had a previously connected Buffer account inside ROP and tried to update the plugin. A notice will now be shown with a link to updating steps for those situations.
     267
     268
    264269### 8.6.1 - 2020-11-24  ###
    265270
  • tweet-old-post/trunk/readme.txt

    r2425024 r2429855  
    262262
    263263== Changelog ==
     264= 8.6.2 - 2020-12-01  =
     265
     266* Fix PRO: Error in the dashboard if the user had a previously connected Buffer account inside ROP and tried to update the plugin. A notice will now be shown with a link to updating steps for those situations.
     267
     268
    264269= 8.6.1 - 2020-11-24  =
    265270
  • tweet-old-post/trunk/themeisle-hash.json

    r2425024 r2429855  
    1 {"class-rop-autoloader.php":"7bfbb1554230d0ace777adb2e42bebeb","index.php":"39ab8276fb0e4bd3fcab3270822c5977","tweet-old-post.php":"0ff1300344861faa3144faf80fd3efd9","uninstall.php":"c350fd79cac473d2dcdabc0bc277dd23"}
     1{"class-rop-autoloader.php":"7bfbb1554230d0ace777adb2e42bebeb","index.php":"39ab8276fb0e4bd3fcab3270822c5977","tweet-old-post.php":"78e23f0125a3090803b2bafb35f757c9","uninstall.php":"c350fd79cac473d2dcdabc0bc277dd23"}
  • tweet-old-post/trunk/tweet-old-post.php

    r2425024 r2429855  
    1717 * Plugin URI: https://revive.social/
    1818 * Description: WordPress plugin that helps you to keeps your old posts alive by sharing them and driving more traffic to them from twitter/facebook or linkedin. It also helps you to promote your content. You can set time and no of posts to share to drive more traffic.For questions, comments, or feature requests, <a href="http://revive.social/support/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
    19  * Version:           8.6.1
     19 * Version:           8.6.2
    2020 * Author:            revive.social
    2121 * Author URI:        https://revive.social/
     
    5757
    5858/**
     59 * Shows a notice with a doc link to a fix for sites which have Buffer connected.
     60 *
     61 * @since    8.6.2
     62 */
     63function rop_buffer_present_notice() {
     64    ?>
     65
     66    <div class="notice notice-error is-dismissible">
     67        <?php echo sprintf( __( '%1$s %2$sRevive Old Posts:%3$s You have Buffer account(s) connected to Revive Old Posts. You need to remove these accounts to avoid issues with the plugin. Plugin has been deactivated. %4$sClick here to read the article with the fix.%5$s %6$s', 'tweet-old-post' ), '<p>', '<b>', '</b>', '<a href="https://docs.revive.social/article/1318-fix-php-fatal-error-uncaught-exception-invalid-service-name-given" target="_blank">', '</a>', '</p>' ); ?>
     68    </div>
     69    <?php
     70}
     71
     72/**
     73 * Detects if there's a buffer account connected to ROP.
     74 *
     75 * Disables ROP if any are found
     76 *
     77 * @since    8.6.2
     78 */
     79function rop_buffer_present() {
     80
     81    $rop_data = get_option( 'rop_data' );
     82
     83    if ( empty( $rop_data['services'] ) ) {
     84        return;
     85    }
     86
     87    $services = $rop_data['services'];
     88
     89    foreach ( $services as $service ) {
     90
     91        if ( strpos( $service['service'], 'buffer' ) !== false ) {
     92            add_action( 'admin_notices', 'rop_buffer_present_notice' );
     93
     94            if ( ! function_exists( 'deactivate_plugins' ) ) {
     95                require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     96            }
     97            deactivate_plugins( 'tweet-old-post/tweet-old-post.php' );
     98            return;
     99        }
     100    }
     101}
     102add_action( 'init', 'rop_buffer_present', 1 );
     103
     104/**
    59105 * Shows a notice for sites running PHP less than 5.6.
    60106 *
     
    117163
    118164    define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
    119     define( 'ROP_LITE_VERSION', '8.6.1' );
     165    define( 'ROP_LITE_VERSION', '8.6.2' );
    120166    define( 'ROP_LITE_BASE_FILE', __FILE__ );
    121167    define( 'ROP_DEBUG', false );
  • tweet-old-post/trunk/vendor/autoload.php

    r2425024 r2429855  
    55require_once __DIR__ . '/composer' . '/autoload_real.php';
    66
    7 return ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80::getLoader();
     7return ComposerAutoloaderInit648538c5635d154b1759c7b825a9295a::getLoader();
  • tweet-old-post/trunk/vendor/composer/autoload_real.php

    r2425024 r2429855  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80
     5class ComposerAutoloaderInit648538c5635d154b1759c7b825a9295a
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit648538c5635d154b1759c7b825a9295a', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit648538c5635d154b1759c7b825a9295a', 'loadClassLoader'));
    2525
    2626        $map = require __DIR__ . '/autoload_namespaces.php';
     
    4343        $includeFiles = require __DIR__ . '/autoload_files.php';
    4444        foreach ($includeFiles as $fileIdentifier => $file) {
    45             composerRequireeee08c56ca90fafa27eda2f3de5b3f80($fileIdentifier, $file);
     45            composerRequire648538c5635d154b1759c7b825a9295a($fileIdentifier, $file);
    4646        }
    4747
     
    5050}
    5151
    52 function composerRequireeee08c56ca90fafa27eda2f3de5b3f80($fileIdentifier, $file)
     52function composerRequire648538c5635d154b1759c7b825a9295a($fileIdentifier, $file)
    5353{
    5454    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
Note: See TracChangeset for help on using the changeset viewer.