🔥 HOT: Changeset/ - Full Gallery 2025

Changeset 2158145


Ignore:
Timestamp:
09/18/2019 12:01:52 AM (6 years ago)
Author:
davejesch
Message:
  • fix: Address compatability issue with WPML's metabox of post edit page. (Thanks Autumn C.)
  • fix: Add detection of Apache version as well as 2.2 and 2.4 compatible .htaccess rules.
  • fix: Check for empty list of saved blocks in Push operations to avoid warning messages.
  • fix: Fix handing of 'getinfo' API response data if warnings are present with JSON response.
  • fix: Address problem with Network Administrators not always being able to edit settings on a MultiSite. (Thanks Mark R.)
  • fix: Custom Roles with 'edit_pages' Capability can now be configured and allowed to use WPSiteSync operations. (Thanks Mark R.)
  • enhancement: Add detection of mod_security blocking API requests; provide better description of problem in this case. (Thanks Veldin H.)
  • enhancement: Add helper methods, SyncApiResponse->get_error_message() and get_notice_message().
  • enhancement: Improve descriptions on Settings Help page.
  • enhancement: Add more marketing messages for Dashboard Widget and Settings page.
  • enhancement: Add new attachment search helper method needed for Beaver Builder audio module.
  • enhancement: Add scrubbing before logging in case any sensitive information is contained arrays.
  • enhancement: Rework licensing page to reduce required page submissions.
  • enhancement: Improve messaging when a Parent Page needs to be Pushed.
  • enhancement: Store taxonomy id conversion values to allow updating of taxonomy IDs in Gutenberg Blocks.
  • enhancement: Refactor code in Gutenberg Blocks add-on so it can be shared by other add-ons that update Blocks.
Location:
wpsitesynccontent
Files:
52 added
22 edited

Legend:

Unmodified
Added
Removed
  • wpsitesynccontent/trunk/.htaccess

    r1573030 r2158145  
    1 <Files *.php>
    2     Order Deny,Allow
    3     deny from all
    4 </Files>
     1# Apache 2.2
     2<IfModule !mod_authz_core.c>
     3    Satisfy Any
    54
    6 <Files ~*.txt>
    7     Order Deny,Allow
    8     deny from all
    9 </Files>
     5    <Files *.php>
     6        Require all denied
     7    </Files>
    108
    11 <files ".(xml|css|jpe?g|png|gif|js|ttf|wof|eof)$">
    12     Order Allow,Deny
    13     Allow from all
    14 </files>
     9    <Files ~*.txt>
     10        Order Deny,Allow
     11        deny from all
     12    </Files>
     13
     14    <files ".(xml|css|jpe?g|png|gif|js|ttf|wof|eof)$">
     15        Order Allow,Deny
     16        Allow from all
     17    </files>
     18</IfModule>
     19
     20
     21# Apache 2.4
     22<IfModule mod_authz_core.c>
     23    Require all granted
     24
     25    <Files *.php>
     26        Require all denied
     27    </Files>
     28
     29    <Files ~*.txt>
     30        Require all denied
     31    </Files>
     32
     33    <files ".(xml|css|jpe?g|png|gif|js|ttf|wof|eof)$">
     34        Require all granted
     35    </files>
     36</IfModule>
  • wpsitesynccontent/trunk/assets/css/sync-admin.css

    r2094175 r2158145  
    113113    vertical-align: text-top;
    114114}
     115#spectrom_sync button#remove-association {
     116    text-align: center;
     117}
     118#spectrom_sync button#remove-association .sync-button-icon {
     119    text-align: center;
     120    padding-right: 0;
     121    padding-top: 4px;
     122    margin-left: 0;
     123}
    115124#spectrom_sync #sync-message-dismiss .dashicons {
    116125    font-size: 85%;
     
    141150.spectrom-sync-settings .sync-settings-logo {
    142151    float: left;
     152}
     153.spectrom-sync-settings .cta-message {
     154    border-left: 3px solid #e542f4;
     155    margin-left: 3px;
     156    padding-left: 8px;
    143157}
    144158.spectrom-sync-settings table.form-table {
  • wpsitesynccontent/trunk/assets/js/settings.js

    r2094175 r2158145  
    11/*
    2  * @copyright Copyright (C) 2014-2019 SpectrOMtech.com. - All Rights Reserved.
    3  * @author SpectrOMtech.com <SpectrOMtech.com>
    4  * @url https://wpsitesync.com/license
     2 * @copyright Copyright (C) 2015-2019 WPSiteSync.com. - All Rights Reserved.
     3 * @author WPSiteSync.com <hello@WPSiteSync.com>
     4 * @url https://wpsitesync.com/
    55 * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images,
    66 * manuals, cascading style sheets, and included JavaScript *are NOT GPL*, and are released under the
     
    99 */
    1010
     11/**
     12 * Javascript handlers for WPSiteSync's settings page
     13 * @returns {SyncSettings} instance
     14 */
    1115function SyncSettings()
    1216{
     
    4145//  });
    4246
    43     jQuery('.sync-license-input', '.spectrom-sync-settings').on('keyup', function() {
    44         jQuery('button.sync-license', '.spectrom-sync-settings').attr('disabled', 'disabled');
    45     });
     47//  jQuery('.sync-license-input', '.spectrom-sync-settings').on('keyup', function() {
     48//      jQuery('button.sync-license', '.spectrom-sync-settings').attr('disabled', 'disabled');
     49//  });
    4650};
    4751
     
    5862        jQuery('#sync-license-msg-' + name).html(jQuery('#sync-deactivating-msg').html());
    5963    jQuery('#sync-license-msg-' + name).show();
     64    var lic_key = jQuery('#spectrom-form-' + name).val();
    6065
    6166    var data = {
    6267        action: 'spectrom_sync',
    6368        operation: op,
    64         extension: name
     69        extension: name,
     70        key: lic_key
    6571    };
    6672
     
    8288};
    8389
     90/**
     91 * Button callback for activating license key
     92 * @param {object} el Button element generating the click
     93 * @param {string} name Name of add-on being activated
     94 */
    8495SyncSettings.prototype.activate = function(el, name)
    8596{
     
    8899};
    89100
     101/**
     102 * Button callback for deactivating license key
     103 * @param {object} el Button element generating the click
     104 * @param {string} name Name of add-on being deactivated
     105 */
    90106SyncSettings.prototype.deactivate = function(el, name)
    91107{
     
    95111
    96112/**
     113 * Button callback for onblur event for license key field
     114 * @param {object} el The input field containing the license key
     115 */
     116SyncSettings.prototype.license_change = function(el)
     117{
     118//console.log('.license_change()');
     119    var id = jQuery(el).attr('id');
     120    var ext_name = id.replace('spectrom-form-sync_', '');
     121//console.log('id=' + id + ' name=' + ext_name);
     122
     123    var lic_key = jQuery('#spectrom-form-sync_' + ext_name).val();
     124//console.log('key=' + lic_key)
     125    if (lic_key.length !== 32)
     126        return;
     127
     128    // enable activate/deactivate buttons
     129    jQuery('#sync-license-act-sync_' + ext_name).removeAttr('disabled');
     130    jQuery('#sync-license-deact-sync_' + ext_name).removeAttr('disabled');
     131};
     132
     133/**
    97134 * Verifies the target settings
     135 * @param {object} e The event generating the submit
    98136 */
    99137SyncSettings.prototype.on_submit = function(e)
  • wpsitesynccontent/trunk/assets/js/sync.js

    r2094175 r2158145  
    11/*
    2  * @copyright Copyright (C) 2014-2019 SpectrOMtech.com. - All Rights Reserved.
    3  * @author SpectrOMtech.com <SpectrOMtech.com>
    4  * @url https://wpsitesync.com/license
     2 * @copyright Copyright (C) 2015-2019 WPSiteSync.com. - All Rights Reserved.
     3 * @author WPSiteSync.com <hello@WPSiteSync.com>
     4 * @url https://wpsitesync.com/
    55 * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images,
    66 * manuals, cascading style sheets, and included JavaScript *are NOT GPL*, and are released under the
     
    1919    this.$content = null;
    2020    this.disable = false;