Plugin Directory

Changeset 2298584


Ignore:
Timestamp:
05/05/2020 02:57:49 PM (6 years ago)
Author:
gpriday
Message:

2.10.16 release

Location:
siteorigin-panels
Files:
8 added
8 deleted
8 edited
24 copied

Legend:

Unmodified
Added
Removed
  • siteorigin-panels/tags/2.10.16/inc/admin.php

    r2161603 r2298584  
    10381038        header( 'content-type: text/html' );
    10391039
     1040        if ( ! wp_verify_nonce( $_GET['_panelsnonce'], 'panels_action' ) ) {
     1041            wp_die();
     1042        }
     1043
    10401044        if ( ! current_user_can( 'edit_post', $_POST['post_id'] ) ) {
    10411045            wp_die();
  • siteorigin-panels/tags/2.10.16/inc/live-editor.php

    r2141880 r2298584  
    2727            ! empty( $_POST['live_editor_panels_data'] ) &&
    2828            ! empty( $post->ID ) &&
    29             current_user_can( 'edit_post', $post->ID )
     29            current_user_can( 'edit_post', $post->ID ) &&
     30            isset( $_GET['_panelsnonce'] ) &&
     31            ! wp_verify_nonce( $_GET['_panelsnonce'], 'panels_action' )
    3032        ) {
    3133            // Disable XSS protection when in the Live Editor
    3234            header( 'X-XSS-Protection: 0' );
     35        } else {
     36            // If this class has been loaded, we know we're in the Live Editor
     37            // In the case that data or the nonce isn't valid, wp_die as a security precaution.
     38            // This will happen on template_redirect.
     39            wp_die();
    3340        }
    3441    }
  • siteorigin-panels/tags/2.10.16/lang/siteorigin-panels.pot

    r2238246 r2298584  
    158158msgstr ""
    159159
    160 #: inc/admin.php:178, inc/admin.php:574, inc/admin.php:1172, inc/admin.php:1177, inc/settings.php:199, tpl/js-templates.php:197
     160#: inc/admin.php:178, inc/admin.php:574, inc/admin.php:1176, inc/admin.php:1181, inc/settings.php:199, tpl/js-templates.php:197
    161161msgid "Page Builder"
    162162msgstr ""
     
    476476msgstr ""
    477477
    478 #: inc/admin.php:1075, inc/styles-admin.php:23
     478#: inc/admin.php:1079, inc/styles-admin.php:23
    479479msgid "The supplied nonce is invalid."
    480480msgstr ""
    481481
    482 #: inc/admin.php:1076, inc/styles-admin.php:24
     482#: inc/admin.php:1080, inc/styles-admin.php:24
    483483msgid "Invalid nonce."
    484484msgstr ""
    485485
    486 #: inc/admin.php:1082
     486#: inc/admin.php:1086
    487487msgid "Please specify the type of widget form to be rendered."
    488488msgstr ""
    489489
    490 #: inc/admin.php:1083
     490#: inc/admin.php:1087
    491491msgid "Missing widget type."
    492492msgstr ""
    493493
    494 #: inc/admin.php:1190
     494#: inc/admin.php:1194
    495495msgid "%s Widget"
    496496msgid_plural "%s Widgets"
     
    498498msgstr[1] ""
    499499
    500 #: inc/admin.php:1233
     500#: inc/admin.php:1237
    501501msgid "Get a lightbox addon for SiteOrigin widgets"
    502502msgstr ""
    503503
    504 #: inc/admin.php:1237
     504#: inc/admin.php:1241
    505505msgid "Get the row, cell and widget animations addon"
    506506msgstr ""
    507507
    508 #: inc/admin.php:1241
     508#: inc/admin.php:1245
    509509msgid "Get premium email support for SiteOrigin Page Builder"
    510510msgstr ""
    511511
    512 #: inc/admin.php:1426
     512#: inc/admin.php:1430
    513513msgid "Toggle editor selection menu"
    514514msgstr ""
    515515
    516 #: inc/admin.php:1427, inc/admin.php:1474, inc/settings.php:199, settings/tpl/settings.php:9
     516#: inc/admin.php:1431, inc/admin.php:1478, inc/settings.php:199, settings/tpl/settings.php:9
    517517msgid "SiteOrigin Page Builder"
    518518msgstr ""
    519519
    520 #: inc/admin.php:1428
     520#: inc/admin.php:1432
    521521msgid "Block Editor"
    522522msgstr ""
  • siteorigin-panels/tags/2.10.16/readme.txt

    r2278148 r2298584  
    33Requires at least: 4.7
    44Tested up to: 5.4
    5 Stable tag: 2.10.15
    6 Build time: 2020-04-07T11:25:41+02:00
     5Stable tag: 2.10.16
     6Build time: 2020-05-05T16:17:06+02:00
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl.html
     
    9696
    9797== Changelog ==
     98
     99= 2.10.16 - 05 May 2020 =
     100* Security: Added nonce checks to Live Editor.
    98101
    99102= 2.10.15 - 07 April 2020 =
  • siteorigin-panels/tags/2.10.16/siteorigin-panels.php

    r2278148 r2298584  
    44Plugin URI: https://siteorigin.com/page-builder/
    55Description: A drag and drop, responsive page builder that simplifies building your website.
    6 Version: 2.10.15
     6Version: 2.10.16
    77Author: SiteOrigin
    88Author URI: https://siteorigin.com
     
    1212*/
    1313
    14 define( 'SITEORIGIN_PANELS_VERSION', '2.10.15' );
     14define( 'SITEORIGIN_PANELS_VERSION', '2.10.16' );
    1515if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
    1616    define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
    1717}
    1818define( 'SITEORIGIN_PANELS_CSS_SUFFIX', '.min' );
    19 define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-21015' );
     19define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-21016' );
    2020
    2121require_once plugin_dir_path( __FILE__ ) . 'inc/functions.php';
     
    245245                admin_url( 'admin-ajax.php?action=so_panels_live_editor_preview' )
    246246            );
    247             $preview_url = wp_nonce_url( $preview_url, 'live-editor-preview', '_panelsnonce' );
    248247        } else {
    249             $preview_url = add_query_arg( 'siteorigin_panels_live_editor', 'true', set_url_scheme( get_permalink() ) );
    250         }
     248            $preview_url = esc_url( add_query_arg( 'siteorigin_panels_live_editor', 'true', set_url_scheme( get_permalink() ) ) );
     249        }
     250        $preview_url = wp_nonce_url( $preview_url, 'live-editor-preview', '_panelsnonce' );
    251251
    252252        return $preview_url;
  • siteorigin-panels/tags/2.10.16/tpl/admin-home-page.php

    r1474059 r2298584  
    1212        data-type="custom_home_page"
    1313        data-post-id="<?php echo get_the_ID() ?>"
    14         data-preview-url="<?php echo esc_url( add_query_arg( 'siteorigin_panels_live_editor', 'true', set_url_scheme( get_permalink() ) ) ) ?>"
     14        data-preview-url="<?php echo SiteOrigin_Panels::preview_url() ?>"
    1515        data-builder-supports="<?php echo esc_attr( json_encode( $builder_supports ) ) ?>"
    1616        >
  • siteorigin-panels/trunk/inc/admin.php

    r2161603 r2298584  
    10381038        header( 'content-type: text/html' );
    10391039
     1040        if ( ! wp_verify_nonce( $_GET['_panelsnonce'], 'panels_action' ) ) {
     1041            wp_die();
     1042        }
     1043
    10401044        if ( ! current_user_can( 'edit_post', $_POST['post_id'] ) ) {
    10411045            wp_die();
  • siteorigin-panels/trunk/inc/live-editor.php

    r2141880 r2298584  
    2727            ! empty( $_POST['live_editor_panels_data'] ) &&
    2828            ! empty( $post->ID ) &&
    29             current_user_can( 'edit_post', $post->ID )
     29            current_user_can( 'edit_post', $post->ID ) &&
     30            isset( $_GET['_panelsnonce'] ) &&
     31            ! wp_verify_nonce( $_GET['_panelsnonce'], 'panels_action' )
    3032        ) {
    3133            // Disable XSS protection when in the Live Editor
    3234            header( 'X-XSS-Protection: 0' );
     35        } else {
     36            // If this class has been loaded, we know we're in the Live Editor
     37            // In the case that data or the nonce isn't valid, wp_die as a security precaution.
     38            // This will happen on template_redirect.
     39            wp_die();
    3340        }
    3441    }
  • siteorigin-panels/trunk/lang/siteorigin-panels.pot

    r2238246 r2298584  
    158158msgstr ""
    159159
    160 #: inc/admin.php:178, inc/admin.php:574, inc/admin.php:1172, inc/admin.php:1177, inc/settings.php:199, tpl/js-templates.php:197
     160#: inc/admin.php:178, inc/admin.php:574, inc/admin.php:1176, inc/admin.php:1181, inc/settings.php:199, tpl/js-templates.php:197
    161161msgid "Page Builder"
    162162msgstr ""
     
    476476msgstr ""
    477477
    478 #: inc/admin.php:1075, inc/styles-admin.php:23
     478#: inc/admin.php:1079, inc/styles-admin.php:23
    479479msgid "The supplied nonce is invalid."
    480480msgstr ""
    481481
    482 #: inc/admin.php:1076, inc/styles-admin.php:24
     482#: inc/admin.php:1080, inc/styles-admin.php:24
    483483msgid "Invalid nonce."
    484484msgstr ""
    485485
    486 #: inc/admin.php:1082
     486#: inc/admin.php:1086
    487487msgid "Please specify the type of widget form to be rendered."
    488488msgstr ""
    489489
    490 #: inc/admin.php:1083
     490#: inc/admin.php:1087
    491491msgid "Missing widget type."
    492492msgstr ""
    493493
    494 #: inc/admin.php:1190
     494#: inc/admin.php:1194
    495495msgid "%s Widget"
    496496msgid_plural "%s Widgets"
     
    498498msgstr[1] ""
    499499
    500 #: inc/admin.php:1233
     500#: inc/admin.php:1237
    501501msgid "Get a lightbox addon for SiteOrigin widgets"
    502502msgstr ""
    503503
    504 #: inc/admin.php:1237
     504#: inc/admin.php:1241
    505505msgid "Get the row, cell and widget animations addon"
    506506msgstr ""
    507507
    508 #: inc/admin.php:1241
     508#: inc/admin.php:1245
    509509msgid "Get premium email support for SiteOrigin Page Builder"
    510510msgstr ""
    511511
    512 #: inc/admin.php:1426
     512#: inc/admin.php:1430
    513513msgid "Toggle editor selection menu"
    514514msgstr ""
    515515
    516 #: inc/admin.php:1427, inc/admin.php:1474, inc/settings.php:199, settings/tpl/settings.php:9
     516#: inc/admin.php:1431, inc/admin.php:1478, inc/settings.php:199, settings/tpl/settings.php:9
    517517msgid "SiteOrigin Page Builder"
    518518msgstr ""
    519519
    520 #: inc/admin.php:1428
     520#: inc/admin.php:1432
    521521msgid "Block Editor"
    522522msgstr ""
  • siteorigin-panels/trunk/readme.txt

    r2278148 r2298584  
    33Requires at least: 4.7
    44Tested up to: 5.4
    5 Stable tag: 2.10.15
    6 Build time: 2020-04-07T11:25:41+02:00
     5Stable tag: 2.10.16
     6Build time: 2020-05-05T16:17:06+02:00
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl.html
     
    9696
    9797== Changelog ==
     98
     99= 2.10.16 - 05 May 2020 =
     100* Security: Added nonce checks to Live Editor.
    98101
    99102= 2.10.15 - 07 April 2020 =
  • siteorigin-panels/trunk/siteorigin-panels.php

    r2278148 r2298584  
    44Plugin URI: https://siteorigin.com/page-builder/
    55Description: A drag and drop, responsive page builder that simplifies building your website.
    6 Version: 2.10.15
     6Version: 2.10.16
    77Author: SiteOrigin
    88Author URI: https://siteorigin.com
     
    1212*/
    1313
    14 define( 'SITEORIGIN_PANELS_VERSION', '2.10.15' );
     14define( 'SITEORIGIN_PANELS_VERSION', '2.10.16' );
    1515if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
    1616    define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
    1717}
    1818define( 'SITEORIGIN_PANELS_CSS_SUFFIX', '.min' );
    19 define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-21015' );
     19define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-21016' );
    2020
    2121require_once plugin_dir_path( __FILE__ ) . 'inc/functions.php';
     
    245245                admin_url( 'admin-ajax.php?action=so_panels_live_editor_preview' )
    246246            );
    247             $preview_url = wp_nonce_url( $preview_url, 'live-editor-preview', '_panelsnonce' );
    248247        } else {
    249             $preview_url = add_query_arg( 'siteorigin_panels_live_editor', 'true', set_url_scheme( get_permalink() ) );
    250         }
     248            $preview_url = esc_url( add_query_arg( 'siteorigin_panels_live_editor', 'true', set_url_scheme( get_permalink() ) ) );
     249        }
     250        $preview_url = wp_nonce_url( $preview_url, 'live-editor-preview', '_panelsnonce' );
    251251
    252252        return $preview_url;
  • siteorigin-panels/trunk/tpl/admin-home-page.php

    r1474059 r2298584  
    1212        data-type="custom_home_page"
    1313        data-post-id="<?php echo get_the_ID() ?>"
    14         data-preview-url="<?php echo esc_url( add_query_arg( 'siteorigin_panels_live_editor', 'true', set_url_scheme( get_permalink() ) ) ) ?>"
     14        data-preview-url="<?php echo SiteOrigin_Panels::preview_url() ?>"
    1515        data-builder-supports="<?php echo esc_attr( json_encode( $builder_supports ) ) ?>"
    1616        >
Note: See TracChangeset for help on using the changeset viewer.