Plugin Directory

Changeset 1862082


Ignore:
Timestamp:
04/21/2018 04:24:59 AM (8 years ago)
Author:
orfeasyours
Message:

release version 1.0.3

Location:
wordpatch
Files:
298 added
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • wordpatch/trunk/inc/actions.php

    r1862056 r1862082  
    5454        // Whitelist of allowed actions.
    5555        $allowed_actions = array(WORDPATCH_WHERE_SETTINGS, WORDPATCH_WHERE_LOGIN, WORDPATCH_WHERE_LOGOUT, WORDPATCH_WHERE_JOBS,
    56             WORDPATCH_WHERE_NEWJOB, WORDPATCH_WHERE_EDITJOB, WORDPATCH_WHERE_TRASHJOB, WORDPATCH_WHERE_RESTOREJOB,
     56            WORDPATCH_WHERE_NEWJOB, WORDPATCH_WHERE_EDITJOB, WORDPATCH_WHERE_REDIRECT, WORDPATCH_WHERE_TRASHJOB, WORDPATCH_WHERE_RESTOREJOB,
    5757            WORDPATCH_WHERE_DASHBOARD, WORDPATCH_WHERE_CONFIGDB, WORDPATCH_WHERE_CONFIGFS, WORDPATCH_WHERE_CONFIGLICENSE,
    5858            WORDPATCH_WHERE_CONFIGMAIL, WORDPATCH_WHERE_CONFIGRESCUE, WORDPATCH_WHERE_DELETEJOB, WORDPATCH_WHERE_RUNJOB,
  • wordpatch/trunk/inc/actions/logs.php

    r1862056 r1862082  
    3838        return wordpatch_add_query_params(wordpatch_env_get($wpenv_vars, 'base_uri'), 'action=' . WORDPATCH_WHERE_LOGS .
    3939            '&job=' . urlencode($job_id) . (($page !== null && $page) ? ('&page=' . $page) : ''));
     40    }
     41}
     42
     43if(!function_exists('wordpatch_logs_url')) {
     44    /**
     45     * Calculate an absolute URL to the rescue logs action. This must go directly through the rescue script.
     46     *
     47     * @param $wpenv_vars
     48     * @param $job_id
     49     * @return null|string
     50     */
     51    function wordpatch_logs_url($wpenv_vars, $job_id)
     52    {
     53        $rescue_path = wordpatch_env_get($wpenv_vars, 'rescue_path');
     54
     55        if(!$rescue_path) {
     56            return null;
     57        }
     58
     59        $base_url = wordpatch_trailingslashit(wordpatch_env_get($wpenv_vars, 'wp_site_url')) . $rescue_path;
     60        return wordpatch_add_query_params($base_url, 'action=' . WORDPATCH_WHERE_LOGS . '&job=' . urlencode($job_id));
    4061    }
    4162}
  • wordpatch/trunk/inc/actions/runjob/process_internal.php

    r1862056 r1862082  
    5858        }
    5959
     60        if(!isset($wpenv_vars['rescue_mode']) || !$wpenv_vars['rescue_mode']) {
     61            // Redirect to the page.
     62            wordpatch_redirect(wordpatch_redirect_url($wpenv_vars, $job_id));
     63            exit();
     64        }
     65
    6066        // Redirect to the page.
    6167        wordpatch_redirect(wordpatch_jobs_uri($wpenv_vars, false, null, null, null, null, $job_id));
  • wordpatch/trunk/inc/constants.php

    r1862079 r1862082  
    367367}
    368368
     369if(!defined('WORDPATCH_WHERE_REDIRECT')) {
     370    define('WORDPATCH_WHERE_REDIRECT', 'redirect');
     371}
     372
    369373if(!defined('WORDPATCH_WHERE_LOGOUT')) {
    370374    define('WORDPATCH_WHERE_LOGOUT', 'logout');
     
    510514 */
    511515if(!defined('WORDPATCH_VERSION')) {
    512     define('WORDPATCH_VERSION', '1.0.2');
     516    define('WORDPATCH_VERSION', '1.0.3');
    513517}
    514518
  • wordpatch/trunk/inc/core.php

    r1862056 r1862082  
    107107include_once(dirname(__FILE__) . '/actions/progress.php');
    108108include_once(dirname(__FILE__) . '/actions/readmail.php');
     109include_once(dirname(__FILE__) . '/actions/redirect.php');
    109110include_once(dirname(__FILE__) . '/actions/restorejob.php');
    110111include_once(dirname(__FILE__) . '/actions/runjob.php');
  • wordpatch/trunk/inc/header.php

    r1862056 r1862082  
    6565            WORDPATCH_WHERE_LOGS,
    6666            WORDPATCH_WHERE_LOGDETAIL,
     67            WORDPATCH_WHERE_REDIRECT,
    6768            WORDPATCH_WHERE_JUDGE
    6869        );
  • wordpatch/trunk/inc/languages/english.php

    r1862056 r1862082  
    121121            'READ_MAIL_BACK' => 'Click to return to mailbox.',
    122122            'READ_MAIL_NOTICE' => "The mail you are trying to read does not exist. You might have followed a dead link.",
     123            'REDIRECT_TITLE' => "Redirecting to Rescue Script",
     124            'REDIRECT_NEXT' => "Your job has been queued to be ran successfully! Please wait 5 seconds to be taken to the rescue script. You may %s.",
     125            'REDIRECT_NEXT_LINK' => "click here to be taken to the rescue script immediately",
    123126            'CONFIGDB_TITLE' => "Database Configuration Wizard",
    124127            'CONFIGDB_EMBED_NOTICE' => "You may not re-configure the database within the rescue script. If you want to do this, head to your Wordpress admin panel and regenerate a rescue script afterwards.",
  • wordpatch/trunk/readme.txt

    r1862079 r1862082  
    44Tested up to: 4.9.5
    55Requires PHP: 5.4.0
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    49493. Configure the plugin through the WordPatch panel, accessible from the admin panel sidebar.
    50504. Activate your WordPatch installation using the key you received during purchase.
     51
     52== Changelog ==
     53= 1.0.3 =
     54* Added automatic redirection landing page when jobs are running.
     55
     56= 1.0.0 =
     57* WordPatch is released!
  • wordpatch/trunk/wordpatch.php

    r1862079 r1862082  
    44Plugin URI: https://wordpatch.com
    55Description: Keep your customizations to themes and plugins applied easily by uploading patch files that are processed automatically.
    6 Version: 1.0.2
     6Version: 1.0.3
    77Author: JointByte
    88Author URI: https://jointbyte.com
Note: See TracChangeset for help on using the changeset viewer.