Plugin Directory

Changeset 1028979


Ignore:
Timestamp:
11/19/2014 09:46:07 PM (11 years ago)
Author:
ExpandedFronts
Message:

Updated to 1.8.1 (see readme for further details)

Location:
revisr/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • revisr/trunk/README.md

    r1018558 r1028979  
    5050
    5151## Changelog ##
     52
     53#### 1.8.1 ####
     54* Fixed bug resulting from changes in WordPress 4.1
     55* Fixed bug with storing webhook URL in some environments
    5256
    5357#### 1.8 ####
  • revisr/trunk/includes/class-revisr-admin.php

    r1018558 r1028979  
    265265        if ( is_array( $committed_files ) ) {
    266266            foreach ( $committed_files as $file ) {
    267                 $output = unserialize( $file );
     267                $output = maybe_unserialize( $file );
    268268            }
    269269        }
  • revisr/trunk/includes/class-revisr-process.php

    r1018558 r1028979  
    209209        if ( $from_dash == false ) {
    210210
    211             if ( $this->git->config_revisr_option( 'import-pulls' ) !== 'true' ) {
     211            if ( $this->git->config_revisr_option( 'auto-pull' ) !== 'true' ) {
    212212                wp_die( __( 'Cheatin’ uh?', 'revisr' ) );
    213213            }
  • revisr/trunk/includes/class-revisr-remote.php

    r1018558 r1028979  
    9393
    9494        if ( $get_url !== false ) {
    95             $webhook = $get_url;
     95            $webhook = urldecode( $get_url );
    9696            $request = wp_remote_post( $webhook, $args );
    9797            if ( is_wp_error( $request ) ) {
  • revisr/trunk/includes/class-revisr-settings-fields.php

    r1018558 r1028979  
    200200        printf(
    201201            '<input type="checkbox" id="notifications" name="revisr_general_settings[notifications]" %s />
    202             <label for="notifications"><span class="description">%s</span></span>',
     202            <label for="notifications"><span class="description">%s</span></label>',
    203203            isset( $this->options['notifications'] ) ? "checked" : '',
    204204            __( 'Enabling notifications will send updates about new commits, pulls, and pushes to the email address above.', 'revisr' )
     
    272272        $get_url = $this->git->config_revisr_url( 'webhook' );
    273273        if ( $get_url !== false ) {
    274             $webhook_url = $get_url;
     274            $webhook_url = urldecode($get_url);
    275275        } else {
    276276            $webhook_url = '';
     
    333333            <label for="auto_pull">%s</label>',
    334334            $checked,
    335             __( 'Check to allow Revisr to automatically pull commits from a remote repository.', 'revisr' )
     335            __( 'Check to generate the Revisr Webhook and allow Revisr to automatically pull commits from a remote repository.', 'revisr' )
    336336        );
    337337        $remote     = new Revisr_Remote();
  • revisr/trunk/includes/class-revisr-settings.php

    r1018558 r1028979  
    185185        register_setting(
    186186            'revisr_remote_settings',
    187             'revisr_remote_settings'
     187            'revisr_remote_settings',
     188            array( $this, 'sanitize_remote' )
    188189        );
    189190        register_setting(
     
    192193        );
    193194    }
     195
     196    /**
     197     * Sanitizes the "Remote Settings" fields so that URL's can be stored.
     198     * @access public
     199     * @param  array $input The data from the form.
     200     * @return array
     201     */
     202    public function sanitize_remote( $input ) {
     203        if ( isset( $input['webhook_url'] ) ) {
     204            $input['webhook_url'] = urlencode( $input['webhook_url'] );
     205        }
     206        return $input;
     207    }
    194208}
  • revisr/trunk/readme.txt

    r1018558 r1028979  
    11=== Revisr ===
    22Contributors: ExpandedFronts
    3 Tags: revisr, git, git management, revision tracking, revision, backup, database, database backup, database plugin, deploy, commit, bitbucket, github
     3Tags: revisr, git, git management, revision tracking, revision, backup, database, database backup, database plugin, deploy, commit, bitbucket, github, version control
    44Requires at least: 3.7
    55Tested up to: 4.0
     
    3434= Instructions =
    3535* Unzip the plugin folder and upload it to the plugins directory of your WordPress installation.
    36 * If the WordPress installation is not already in a Git repository, you will be prompted to initialize a new one.
    37 * Configure the plugin settings.
     36* If the WordPress installation is not already in a Git repository, you will be able to create a new one in the Revisr Dashboard.
     37* Go to the Revisr settings page and adjust any settings as needed.
    3838
    3939= Notes =
     
    7979
    8080== Changelog ==
     81
     82= 1.8.1 =
     83* Fixed bug resulting from changes in WordPress 4.1
     84* Fixed bug with storing webhook URL in some environments
    8185
    8286= 1.8 =
  • revisr/trunk/revisr.php

    r1018558 r1028979  
    99 * Plugin URI:        http://revisr.io/
    1010 * Description:       A plugin that allows users to manage WordPress websites with Git repositories.
    11  * Version:           1.8
     11 * Version:           1.8.1
    1212 * Author:            Expanded Fronts, LLC
    1313 * Author URI:        http://expandedfronts.com/
Note: See TracChangeset for help on using the changeset viewer.