Plugin Directory

Changeset 2934465


Ignore:
Timestamp:
07/05/2023 11:51:44 AM (3 years ago)
Author:
valiano
Message:

updated to 1.5.75 version.

Location:
unlimited-elements-for-elementor/trunk
Files:
1 added
2 deleted
22 edited

Legend:

Unmodified
Added
Removed
  • unlimited-elements-for-elementor/trunk/inc_php/framework/functions.class.php

    r2930901 r2934465  
    23052305            $arrFiles = array();
    23062306            foreach($arrDirs as $dir){
     2307               
    23072308                if($dir == "." || $dir == "..")
    23082309                    continue;
     2310                   
    23092311                $dirpath = $path . "/" . $dir;
    23102312       
  • unlimited-elements-for-elementor/trunk/inc_php/unitecreator_assets.class.php

    r2929194 r2934465  
    221221        if($isAllowed == false)
    222222            UniteFunctionsUC::throwError("File $filename not allowed in assets");
     223    }
     224   
     225    /**
     226     * delete some files in extracted
     227     */
     228    public function deleteFilesInExtracted($path){
     229       
     230        $arrDirs = UniteFunctionsUC::getDirList($path);
     231               
     232        $arrDelete = array();
     233       
     234        foreach($arrDirs as $dirName){
     235           
     236            switch($dirName){
     237                case "__MACOSX":
     238                    $arrDelete[] = $dirName;
     239                break;
     240            }
     241           
     242        }
     243       
     244        if(empty($arrDelete))
     245            return(false);
     246           
     247           
     248        foreach($arrDelete as $dir){
     249           
     250            $pathDir = $path.$dir;
     251           
     252            if(is_dir($pathDir) == false)
     253                return(false);
     254           
     255            UniteFunctionsUC::deleteDir($pathDir);
     256        }
     257               
    223258    }
    224259   
  • unlimited-elements-for-elementor/trunk/inc_php/unitecreator_exporter.class.php

    r2930901 r2934465  
    11301130
    11311131            $objAssets = new UniteCreatorAssets();
    1132 
     1132           
     1133            $objAssets->deleteFilesInExtracted($this->pathImportAddon);
     1134           
    11331135            $objAssets->validateAllowedFilesInExtracted($this->pathImportAddon);
    1134 
     1136           
    11351137            $isSingle = $this->isExtractedAddonSingle();
    1136 
     1138                       
    11371139            if($isSingle == true){
    11381140                $isImported = $this->importAddonData($catID, $overwrite, $forceToCat);
    1139 
     1141       
    11401142                if($isImported == true)
    11411143                    $this->copyImportAssetsFolder();
     
    11521154
    11531155        $logText = $this->getLogText();
    1154 
     1156       
     1157        if(empty($logText))
     1158            $logText = __("No Widgets Imported","unlimited-elements-for-elementor");
     1159       
    11551160        return ($logText);
    11561161    }
  • unlimited-elements-for-elementor/trunk/inc_php/unitecreator_template_engine.class.php

    r2933731 r2934465  
    8383           
    8484            if(!empty($post)){
    85                
     85                               
    8686                self::$isPostIDSaved = true;
    8787               
     
    125125               
    126126        $htmlItem = $this->twig->render($templateName, $params);
     127       
     128        $htmlItem = do_shortcode($htmlItem);
    127129       
    128130        if(!empty($sap)){
  • unlimited-elements-for-elementor/trunk/includes.php

    r2933731 r2934465  
    1313
    1414if(!defined("UNLIMITED_ELEMENTS_VERSION"))
    15     define("UNLIMITED_ELEMENTS_VERSION", "1.5.74");
     15    define("UNLIMITED_ELEMENTS_VERSION", "1.5.75");
    1616
    1717$currentFile = __FILE__;
  • unlimited-elements-for-elementor/trunk/provider/core/plugins/unlimited_elements/helper_provider_core.class.php

    r2933731 r2934465  
    773773       
    774774        $isWpmlExists = UniteCreatorWpmlIntegrate::isWpmlExists();
    775                
     775           
    776776        //get right template
    777777        if($isWpmlExists == true){
     
    784784       
    785785        //--------------------
    786            
    787        
     786               
    788787        global $wp_query;
    789788       
     
    809808        //set author data
    810809       
    811         UniteFunctionsWPUC::setGlobalAuthorData();
     810        UniteFunctionsWPUC::setGlobalAuthorData($post);
    812811       
    813812        //fix for jet engine
     
    861860       
    862861        $htmlTemplate = str_replace($source, $dest, $htmlTemplate);
     862       
     863        $htmlTemplate = do_shortcode($htmlTemplate);
    863864       
    864865        echo $htmlTemplate;
  • unlimited-elements-for-elementor/trunk/provider/freemius/includes/class-freemius.php

    r2929194 r2934465  
    15471547                    fs_request_is_action( 'reset_pending_activation_mode' )
    15481548                ) &&
    1549                 $this->get_unique_affix() === fs_request_get( 'fs_unique_affix' )
     1549                $this->get_unique_affix() === fs_request_get_raw( 'fs_unique_affix' )
    15501550            ) {
    15511551                add_action( 'admin_init', array( &$this, 'connect_again' ) );
     
    37603760            }
    37613761
    3762             $option_value = fs_request_get( 'option_value' );
     3762            $option_value = fs_request_get_raw( 'option_value' );
    37633763
    37643764            if ( ! empty( $option_value ) ) {
     
    1367513675            $this->check_ajax_referer( 'activate_license' );
    1367613676
    13677             $license_key = trim( fs_request_get( 'license_key' ) );
     13677            $license_key = trim( fs_request_get_raw( 'license_key' ) );
    1367813678
    1367913679            if ( empty( $license_key ) ) {
     
    1668816688
    1668916689            return $clone;
    16690         }
    16691 
    16692         /**
    16693          * Tries to activate account based on POST params.
    16694          *
    16695          * @author     Vova Feldman (@svovaf)
    16696          * @since      1.0.2
    16697          *
    16698          * @deprecated Not in use, outdated.
    16699          */
    16700         function _activate_account() {
    16701             if ( $this->is_registered() ) {
    16702                 // Already activated.
    16703                 return;
    16704             }
    16705 
    16706             self::_clean_admin_content_section();
    16707 
    16708             if ( fs_request_is_action( 'activate' ) && fs_request_is_post() ) {
    16709 //              check_admin_referer( 'activate_' . $this->_plugin->public_key );
    16710 
    16711                 // Verify matching plugin details.
    16712                 if ( $this->_plugin->id != fs_request_get( 'plugin_id' ) || $this->_slug != fs_request_get( 'plugin_slug' ) ) {
    16713                     return;
    16714                 }
    16715 
    16716                 $user              = new FS_User();
    16717                 $user->id          = fs_request_get( 'user_id' );
    16718                 $user->public_key  = fs_request_get( 'user_public_key' );
    16719                 $user->secret_key  = fs_request_get( 'user_secret_key' );
    16720                 $user->email       = fs_request_get( 'user_email' );
    16721                 $user->first       = fs_request_get( 'user_first' );
    16722                 $user->last        = fs_request_get( 'user_last' );
    16723                 $user->is_verified = fs_request_get_bool( 'user_is_verified' );
    16724 
    16725                 $site             = new FS_Site();
    16726                 $site->id         = fs_request_get( 'install_id' );
    16727                 $site->public_key = fs_request_get( 'install_public_key' );
    16728                 $site->secret_key = fs_request_get( 'install_secret_key' );
    16729                 $site->plan_id    = fs_request_get( 'plan_id' );
    16730 
    16731                 $plans      = array();
    16732                 $plans_data = json_decode( urldecode( fs_request_get( 'plans' ) ) );
    16733                 foreach ( $plans_data as $p ) {
    16734                     $plan = new FS_Plugin_Plan( $p );
    16735                     if ( $site->plan_id == $plan->id ) {
    16736                         $plan->title = fs_request_get( 'plan_title' );
    16737                         $plan->name  = fs_request_get( 'plan_name' );
    16738                     }
    16739 
    16740                     $plans[] = $plan;
    16741                 }
    16742 
    16743                 $this->_set_account( $user, $site, $plans );
    16744 
    16745                 // Reload the page with the keys.
    16746                 fs_redirect( $this->_get_admin_page_url() );
    16747             }
    1674816690        }
    1674916691
     
    1776217704                        $this->install_many_pending_with_user(
    1776317705                            fs_request_get( 'user_id' ),
    17764                             fs_request_get( 'user_public_key' ),
    17765                             fs_request_get( 'user_secret_key' ),
     17706                            fs_request_get_raw( 'user_public_key' ),
     17707                            fs_request_get_raw( 'user_secret_key' ),
    1776617708                            fs_request_get_bool( 'is_marketing_allowed', null ),
    1776717709                            fs_request_get_bool( 'is_extensions_tracking_allowed', null ),
     
    1777417716                        $this->install_with_new_user(
    1777517717                            fs_request_get( 'user_id' ),
    17776                             fs_request_get( 'user_public_key' ),
    17777                             fs_request_get( 'user_secret_key' ),
     17718                            fs_request_get_raw( 'user_public_key' ),
     17719                            fs_request_get_raw( 'user_secret_key' ),
    1777817720                            fs_request_get_bool( 'is_marketing_allowed', null ),
    1777917721                            fs_request_get_bool( 'is_extensions_tracking_allowed', null ),
    1778017722                            fs_request_get_bool( 'is_diagnostic_tracking_allowed', null ),
    1778117723                            fs_request_get( 'install_id' ),
    17782                             fs_request_get( 'install_public_key' ),
    17783                             fs_request_get( 'install_secret_key' ),
     17724                            fs_request_get_raw( 'install_public_key' ),
     17725                            fs_request_get_raw( 'install_secret_key' ),
    1778417726                            true,
    1778517727                            fs_request_get_bool( 'auto_install' )
     
    1812018062
    1812118063            if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) && fs_request_is_post() ) {
    18122 //              check_admin_referer( 'activate_existing_' . $this->_plugin->public_key );
     18064                check_admin_referer( $this->get_unique_affix() . '_activate_existing' );
    1812318065
    1812418066                /**
     
    1812618068                 * @since  1.1.9 Add license key if given.
    1812718069                 */
    18128                 $license_key = fs_request_get( 'license_secret_key' );
     18070                $license_key = fs_request_get_raw( 'license_secret_key' );
    1812918071
    1813018072                FS_Permission_Manager::instance( $this )->update_permissions_tracking_flag( array(
     
    2086120803            }
    2086220804
    20863             $license_or_user_key = fs_request_get( 'license_or_user_key' );
     20805            $license_or_user_key = fs_request_get_raw( 'license_or_user_key' );
    2086420806
    2086520807            $transient_value = ( ! empty( $license_or_user_key ) ) ?
     
    2269922641            $user             = new FS_User();
    2270022642            $user->id         = fs_request_get( 'user_id' );
    22701             $user->public_key = fs_request_get( 'user_public_key' );
    22702             $user->secret_key = fs_request_get( 'user_secret_key' );
     22643            $user->public_key = fs_request_get_raw( 'user_public_key' );
     22644            $user->secret_key = fs_request_get_raw( 'user_secret_key' );
    2270322645
    2270422646            $prev_user   = $this->_user;
     
    2319623138                    switch ( $state ) {
    2319723139                        case 'init':
     23140                            // The nonce is injected by the error handler in `_email_address_update_ajax_handler` function.
     23141                            check_admin_referer( 'change_owner' );
     23142
    2319823143                            $candidate_email = fs_request_get( 'candidate_email' );
    2319923144                            $transfer_type   = fs_request_get( 'transfer_type' );
     
    2320823153                            break;
    2320923154                        case 'owner_confirmed':
     23155                            // We cannot (or need not to) check the nonce and referer here, because the link comes from the email sent by our API.
    2321023156                            $candidate_email = fs_request_get( 'candidate_email', '' );
     23157
     23158                            if ( ! is_email($candidate_email ) ) {
     23159                                return;
     23160                            }
    2321123161
    2321223162                            $this->_admin_notices->add( sprintf( $this->get_text_inline( 'Thanks for confirming the ownership change. An email was just sent to %s for final approval.', 'change-owner-request_owner-confirmed' ), '<b>' . $candidate_email . '</b>' ) );
    2321323163                            break;
    2321423164                        case 'candidate_confirmed':
     23165                            // We do not need to validate the authenticity of this request here, because the `complete_change_owner` does that for us through API calls.
    2321523166                            if ( $this->complete_change_owner() ) {
    2321623167                                $this->_admin_notices->add_sticky(
     
    2324523196
    2324623197                #region Actions that might be called from external links (e.g. email)
     23198
     23199                /**
     23200                 * !!IMPORTANT!!: We cannot check for a valid nonce in this region, because the links could be coming from emails.
     23201                 */
    2324723202
    2324823203                case 'cancel_trial':
     
    2355223507                        'is_enriched'  => true,
    2355323508                        'trial'        => fs_request_get_bool( 'trial' ),
    23554                         'sandbox'      => fs_request_get( 'sandbox' ),
    23555                         's_ctx_type'   => fs_request_get( 's_ctx_type' ),
    23556                         's_ctx_id'     => fs_request_get( 's_ctx_id' ),
    23557                         's_ctx_ts'     => fs_request_get( 's_ctx_ts' ),
    23558                         's_ctx_secure' => fs_request_get( 's_ctx_secure' ),
     23509                        'sandbox'      => fs_request_get_raw( 'sandbox' ),
     23510                        's_ctx_type'   => fs_request_get_raw( 's_ctx_type' ),
     23511                        's_ctx_id'     => fs_request_get_raw( 's_ctx_id' ),
     23512                        's_ctx_ts'     => fs_request_get_raw( 's_ctx_ts' ),
     23513                        's_ctx_secure' => fs_request_get_raw( 's_ctx_secure' ),
    2355923514                    );
    2356023515
     
    2617526130            $this->check_ajax_referer( 'fetch_is_marketing_required_flag_value' );
    2617626131
    26177             $license_key = fs_request_get( 'license_key' );
     26132            $license_key = fs_request_get_raw( 'license_key' );
    2617826133
    2617926134            if ( empty($license_key) ) {
  • unlimited-elements-for-elementor/trunk/provider/freemius/includes/class-fs-plugin-updater.php

    r2896157 r2934465  
    135135            if (
    136136                'plugin-information' !== fs_request_get( 'tab', false ) ||
    137                 $this->_fs->get_slug() !== fs_request_get( 'plugin', false )
     137                $this->_fs->get_slug() !== fs_request_get_raw( 'plugin', false )
    138138            ) {
    139139                return;
     
    154154            if (
    155155                'plugin-information' !== fs_request_get( 'tab', false ) ||
    156                 $this->_fs->get_slug() !== fs_request_get( 'plugin', false )
     156                $this->_fs->get_slug() !== fs_request_get_raw( 'plugin', false )
    157157            ) {
    158158                return;
  • unlimited-elements-for-elementor/trunk/provider/freemius/includes/fs-core-functions.php

    r2836063 r2934465  
    134134    #--------------------------------------------------------------------------------
    135135
     136    if ( ! function_exists( 'fs_request_get_raw' ) ) {
     137        /**
     138         * A helper function to fetch GET/POST user input with an optional default value when the input is not set.
     139         * This function does not do sanitization. It is up to the caller to properly sanitize and validate the input.
     140         *
     141         * The return of this function is always unslashed.
     142         *
     143         * @since 2.5.10
     144         *
     145         * @param string      $key
     146         * @param mixed       $def
     147         * @param string|bool $type When set to 'get', it will look for the value passed via query string. When
     148         *                          set to 'post', it will look for the value passed via the POST request's body. Otherwise,
     149         *                          it will check if the parameter was passed using any of the mentioned two methods.
     150         *
     151         * @return mixed
     152         */
     153        function fs_request_get_raw( $key, $def = false, $type = false ) {
     154            if ( is_string( $type ) ) {
     155                $type = strtolower( $type );
     156            }
     157
     158            /**
     159             * Note to WordPress.org reviewers:
     160             * This is a helper function to fetch GET/POST user input with an optional default value when the input is not set. The actual sanitization is done in the scope of the function's usage.
     161             */
     162            switch ( $type ) {
     163                case 'post':
     164                    // phpcs:ignore WordPress.Security.NonceVerification.Missing
     165                    $value = isset( $_POST[ $key ] ) ? $_POST[ $key ] : $def;
     166                    break;
     167                case 'get':
     168                    // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     169                    $value = isset( $_GET[ $key ] ) ? $_GET[ $key ] : $def;
     170                    break;
     171                default:
     172                    // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     173                    $value = isset( $_REQUEST[ $key ] ) ? $_REQUEST[ $key ] : $def;
     174                    break;
     175            }
     176
     177            // Don't unslash if the value itself is empty (empty string, null, empty array etc).
     178            return empty( $value ) ? $value : wp_unslash( $value );
     179        }
     180    }
     181
     182    if ( ! function_exists( 'fs_sanitize_input' ) ) {
     183        /**
     184         * Sanitizes input recursively (if an array).
     185         *
     186         * @param mixed $input
     187         *
     188         * @return mixed
     189         * @uses  sanitize_text_field()
     190         * @since 2.5.10
     191         */
     192        function fs_sanitize_input( $input ) {
     193            if ( is_array( $input ) ) {
     194                foreach ( $input as $key => $value ) {
     195                    $input[ $key ] = fs_sanitize_input( $value );
     196                }
     197            } else {
     198                // Allow empty values to pass through as-is, like `null`, `''`, `0`, `'0'` etc.
     199                $input = empty( $input ) ? $input : sanitize_text_field( $input );
     200            }
     201
     202            return $input;
     203        }
     204    }
     205
    136206    if ( ! function_exists( 'fs_request_get' ) ) {
    137207        /**
    138208         * A helper method to fetch GET/POST user input with an optional default value when the input is not set.
    139          * @author Vova Feldman (@svovaf)
     209         *
     210         * @author Vova Feldman (@svovaf)
     211         *
     212         * @note The return value is always sanitized with sanitize_text_field().
    140213         *
    141214         * @param string      $key
     
    145218         *                          will check if the parameter was passed in any of the two.
    146219         *
     220         *
    147221         * @return mixed
    148222         */
    149223        function fs_request_get( $key, $def = false, $type = false ) {
    150             if ( is_string( $type ) ) {
    151                 $type = strtolower( $type );
    152             }
    153 
    154             /**
    155              * Note to WordPress.org Reviewers:
    156              *  This is a helper method to fetch GET/POST user input with an optional default value when the input is not set. The actual sanitization is done in the scope of the function's usage.
    157              */
    158             switch ( $type ) {
    159                 case 'post':
    160                     $value = isset( $_POST[ $key ] ) ? $_POST[ $key ] : $def;
    161                     break;
    162                 case 'get':
    163                     $value = isset( $_GET[ $key ] ) ? $_GET[ $key ] : $def;
    164                     break;
    165                 default:
    166                     $value = isset( $_REQUEST[ $key ] ) ? $_REQUEST[ $key ] : $def;
    167                     break;
    168             }
    169 
    170             return $value;
     224            return fs_sanitize_input( fs_request_get_raw( $key, $def, $type ) );
    171225        }
    172226    }
     
    174228    if ( ! function_exists( 'fs_request_has' ) ) {
    175229        function fs_request_has( $key ) {
     230            // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    176231            return isset( $_REQUEST[ $key ] );
    177232        }
     
    232287    if ( ! function_exists( 'fs_get_action' ) ) {
    233288        function fs_get_action( $action_key = 'action' ) {
     289            // phpcs:disable WordPress.Security.NonceVerification.Recommended
    234290            if ( ! empty( $_REQUEST[ $action_key ] ) && is_string( $_REQUEST[ $action_key ] ) ) {
    235291                return strtolower( $_REQUEST[ $action_key ] );
     
    245301
    246302            return false;
     303            // phpcs:enable WordPress.Security.NonceVerification.Recommended
    247304        }
    248305    }
  • unlimited-elements-for-elementor/trunk/provider/freemius/require.php

    r2836063 r2934465  
    1414    require_once dirname( __FILE__ ) . '/config.php';
    1515    require_once WP_FS__DIR_INCLUDES . '/fs-core-functions.php';
     16    require_once WP_FS__DIR_INCLUDES . '/fs-html-escaping-functions.php';
    1617
    1718    // Logger must be loaded before any other.
  • unlimited-elements-for-elementor/trunk/provider/freemius/start.php

    r2929194 r2934465  
    1616     * @var string
    1717     */
    18     $this_sdk_version = '2.5.9';
     18    $this_sdk_version = '2.5.10';
    1919
    2020    #region SDK Selection Logic --------------------------------------------------------------------
  • unlimited-elements-for-elementor/trunk/provider/freemius/templates/account.php

    r2929194 r2934465  
    257257        <?php if ( ! $has_tabs && ! $fs->apply_filters( 'hide_account_tabs', false ) ) : ?>
    258258        <h2 class="nav-tab-wrapper">
    259             <a href="<?php echo $fs->get_account_url() ?>"
     259            <a href="<?php echo esc_url( $fs->get_account_url() ) ?>"
    260260               class="nav-tab nav-tab-active"><?php fs_esc_html_echo_inline( 'Account', 'account', $slug ) ?></a>
    261261            <?php if ( $fs->has_addons() ) : ?>
    262                 <a href="<?php echo $fs->_get_admin_page_url( 'addons' ) ?>"
     262                <a href="<?php echo esc_url( $fs->_get_admin_page_url( 'addons' ) ) ?>"
    263263                   class="nav-tab"><?php echo esc_html( $addons_text ) ?></a>
    264264            <?php endif ?>
    265265            <?php if ( $show_upgrade ) : ?>
    266                 <a href="<?php echo $fs->get_upgrade_url() ?>" class="nav-tab"><?php echo esc_html( $upgrade_text ) ?></a>
     266                <a href="<?php echo esc_url( $fs->get_upgrade_url() ) ?>" class="nav-tab"><?php echo esc_html( $upgrade_text ) ?></a>
    267267                <?php if ( $fs->apply_filters( 'show_trial', true ) && ! $fs->is_trial_utilized() && $fs->has_trial_plan() ) : ?>
    268                     <a href="<?php echo $fs->get_trial_url() ?>" class="nav-tab"><?php fs_esc_html_echo_inline( 'Free Trial', 'free-trial', $slug ) ?></a>
     268                    <a href="<?php echo esc_url( $fs->get_trial_url() ) ?>" class="nav-tab"><?php fs_esc_html_echo_inline( 'Free Trial', 'free-trial', $slug ) ?></a>
    269269                <?php endif ?>
    270270            <?php endif ?>
     
    312312                                            <?php if ( ! fs_is_network_admin() ) : ?>
    313313                                            <li>
    314                                                 <form action="<?php echo $fs->_get_admin_page_url( 'account' ) ?>" method="POST">
     314                                                <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST">
    315315                                                    <input type="hidden" name="fs_action" value="deactivate_license">
    316316                                                    <?php wp_nonce_field( 'deactivate_license' ) ?>
     
    326326                                            ) : ?>
    327327                                                <li>
    328                                                     <form action="<?php echo $fs->_get_admin_page_url( 'account' ) ?>" method="POST">
     328                                                    <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST">
    329329                                                        <input type="hidden" name="fs_action" value="downgrade_account">
    330330                                                        <?php wp_nonce_field( 'downgrade_account' ) ?>
     
    332332                                                           onclick="if ( confirm('<?php echo esc_attr( sprintf(
    333333                                                               $downgrade_x_confirm_text,
    334                                                                ( $fs->is_only_premium()  ? $cancelling_subscription_text : $downgrading_plan_text ),
     334                                                               ( $fs->is_only_premium() ? $cancelling_subscription_text : $downgrading_plan_text ),
    335335                                                               $plan->title,
    336336                                                               human_time_diff( time(), strtotime( $license->expiration ) )
     
    346346                                            <?php if ( $is_plan_change_supported ) : ?>
    347347                                                <li>
    348                                                     <a href="<?php echo $fs->get_upgrade_url() ?>"><i
     348                                                    <a href="<?php echo esc_url( $fs->get_upgrade_url() ) ?>"><i
    349349                                                            class="dashicons dashicons-grid-view"></i> <?php echo esc_html( $change_plan_text ) ?></a>
    350350                                                </li>
     
    353353                                        <?php elseif ( $is_paid_trial ) : ?>
    354354                                            <li>
    355                                                 <form action="<?php echo $fs->_get_admin_page_url( 'account' ) ?>" method="POST">
     355                                                <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST">
    356356                                                    <input type="hidden" name="fs_action" value="cancel_trial">
    357357                                                    <?php wp_nonce_field( 'cancel_trial' ) ?>
     
    364364                                    <?php endif ?>
    365365                                    <li>
    366                                         <form action="<?php echo $fs->_get_admin_page_url( 'account' ) ?>" method="POST">
    367                                             <input type="hidden" name="fs_action" value="<?php echo $fs->get_unique_affix() ?>_sync_license">
     366                                        <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>" method="POST">
     367                                            <input type="hidden" name="fs_action" value="<?php echo esc_attr( $fs->get_unique_affix() ) ?>_sync_license">
    368368                                            <?php wp_nonce_field( $fs->get_unique_affix() . '_sync_license' ) ?>
    369369                                            <a href="#" onclick="this.parentNode.submit(); return false;"><i
     
    509509                                            }
    510510                                            ?>
    511                                             <tr class="fs-field-<?php echo $p['id'] ?><?php if ( $odd ) : ?> alternate<?php endif ?>">
     511                                            <tr class="fs-field-<?php echo esc_attr( $p['id'] ) ?><?php if ( $odd ) : ?> alternate<?php endif ?>">
    512512                                                <td>
    513                                                     <nobr><?php echo $p['title'] ?><?php echo ( ! empty( $p['title'] ) ) ? ':' : '' ?></nobr>
     513                                                    <nobr><?php echo esc_attr( $p['title'] ) ?><?php echo ( ! empty( $p['title'] ) ) ? ':' : '' ?></nobr>
    514514                                                </td>
    515515                                                <td<?php if ( 'plan' === $p['id'] || 'bundle_plan' === $p['id'] ) { echo ' colspan="2"'; }?>>
     
    564564                                                                fs_require_template( 'account/partials/activate-license-button.php', $view_params ); ?>
    565565                                                            <?php else : ?>
    566                                                                 <form action="<?php echo $fs->_get_admin_page_url( 'account' ) ?>"
     566                                                                <form action="<?php echo esc_url( $fs->_get_admin_page_url( 'account' ) ) ?>"
    567567                                                                      method="POST" class="button-group">
    568568                                                                    <?php if ( $show_upgrade && $is_premium ) : ?>
    569                                                                         <a class="button activate-license-trigger <?php echo $fs->get_unique_affix() ?>" href="#"><?php fs_esc_html_echo_inline( 'Activate License', 'activate-license', $slug ) ?></a>
     569                                                                        <a class="button activate-license-trigger <?php echo esc_attr( $fs->get_unique_affix() ) ?>" href="#"><?php fs_esc_html_echo_inline( 'Activate License', 'activate-license', $slug ) ?></a>
    570570                                                                    <?php endif ?>
    571571                                                                    <input type="submit" class="button"
    572572                                                                           value="<?php echo esc_attr( $sync_license_text ) ?>">
    573573                                                                    <input type="hidden" name="fs_action"
    574                                                                            value="<?php echo $fs->get_unique_affix() ?>_sync_license">
     574                                                                           value="<?php echo esc_attr( $fs->get_unique_affix() ) ?>_sync_license">
    575575                                                                    <?php wp_nonce_field( $fs->get_unique_affix() . '_sync_license' ) ?>
    576576                                                                    <?php if ( $show_upgrade || $is_plan_change_supported ) : ?>
    577                                                                     <a href="<?php echo $fs->get_upgrade_url() ?>"
     577                                                                    <a href="<?php echo esc_url( $fs->get_upgrade_url() ) ?>"
    578578                                                                       class="button<?php
    579579                                                                           echo $show_upgrade ?
  • unlimited-elements-for-elementor/trunk/provider/freemius/templates/account/billing.php

    r2836063 r2934465  
    3636        } ?>>
    3737            <tr>
    38                 <td><label><span><?php fs_esc_html_echo_inline( 'Business name', 'business-name', $slug ) ?>:</span> <input id="business_name" value="<?php echo $billing->business_name ?>" placeholder="<?php fs_esc_attr_echo_inline( 'Business name', 'business-name', $slug ) ?>"></label></td>
    39                 <td><label><span><?php fs_esc_html_echo_inline( 'Tax / VAT ID', 'tax-vat-id', $slug ) ?>:</span> <input id="tax_id" value="<?php echo $billing->tax_id ?>" placeholder="<?php fs_esc_attr_echo_inline( 'Tax / VAT ID', 'tax-vat-id', $slug ) ?>"></label></td>
     38                <td><label><span><?php fs_esc_html_echo_inline( 'Business name', 'business-name', $slug ) ?>:</span> <input id="business_name" value="<?php echo esc_attr( $billing->business_name ) ?>" placeholder="<?php fs_esc_attr_echo_inline( 'Business name', 'business-name', $slug ) ?>"></label></td>
     39                <td><label><span><?php fs_esc_html_echo_inline( 'Tax / VAT ID', 'tax-vat-id', $slug ) ?>:</span> <input id="tax_id" value="<?php echo esc_attr( $billing->tax_id ) ?>" placeholder="<?php fs_esc_attr_echo_inline( 'Tax / VAT ID', 'tax-vat-id', $slug ) ?>"></label></td>
    4040            </tr>
    4141            <tr>
    42                 <td><label><span><?php printf( fs_esc_html_inline( 'Address Line %d', 'address-line-n', $slug ), 1 ) ?>:</span> <input id="address_street" value="<?php echo $billing->address_street ?>" placeholder="<?php printf( fs_esc_attr_inline( 'Address Line %d', 'address-line-n', $slug ), 1 ) ?>"></label></td>
    43                 <td><label><span><?php printf( fs_esc_html_inline( 'Address Line %d', 'address-line-n', $slug ), 2 ) ?>:</span> <input id="address_apt" value="<?php echo $billing->address_apt ?>" placeholder="<?php printf( fs_esc_attr_inline( 'Address Line %d', 'address-line-n', $slug ), 2 ) ?>"></label></td>
     42                <td><label><span><?php printf( fs_esc_html_inline( 'Address Line %d', 'address-line-n', $slug ), 1 ) ?>:</span> <input id="address_street" value="<?php echo esc_attr( $billing->address_street ) ?>" placeholder="<?php printf( fs_esc_attr_inline( 'Address Line %d', 'address-line-n', $slug ), 1 ) ?>"></label></td>
     43                <td><label><span><?php printf( fs_esc_html_inline( 'Address Line %d', 'address-line-n', $slug ), 2 ) ?>:</span> <input id="address_apt" value="<?php echo esc_attr( $billing->address_apt ) ?>" placeholder="<?php printf( fs_esc_attr_inline( 'Address Line %d', 'address-line-n', $slug ), 2 ) ?>"></label></td>
    4444            </tr>
    4545            <tr>
    46                 <td><label><span><?php fs_esc_html_echo_inline( 'City', 'city', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Town', 'town', $slug ) ?>:</span> <input id="address_city" value="<?php echo $billing->address_city ?>" placeholder="<?php fs_esc_attr_echo_inline( 'City', 'city', $slug ) ?> / <?php fs_esc_attr_echo_inline( 'Town', 'town', $slug ) ?>"></label></td>
    47                 <td><label><span><?php fs_esc_html_echo_inline( 'ZIP / Postal Code', 'zip-postal-code', $slug ) ?>:</span> <input id="address_zip" value="<?php echo $billing->address_zip ?>" placeholder="<?php fs_esc_attr_echo_inline( 'ZIP / Postal Code', 'zip-postal-code', $slug ) ?>"></label></td>
     46                <td><label><span><?php fs_esc_html_echo_inline( 'City', 'city', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Town', 'town', $slug ) ?>:</span> <input id="address_city" value="<?php echo esc_attr( $billing->address_city ) ?>" placeholder="<?php fs_esc_attr_echo_inline( 'City', 'city', $slug ) ?> / <?php fs_esc_attr_echo_inline( 'Town', 'town', $slug ) ?>"></label></td>
     47                <td><label><span><?php fs_esc_html_echo_inline( 'ZIP / Postal Code', 'zip-postal-code', $slug ) ?>:</span> <input id="address_zip" value="<?php echo esc_attr( $billing->address_zip ) ?>" placeholder="<?php fs_esc_attr_echo_inline( 'ZIP / Postal Code', 'zip-postal-code', $slug ) ?>"></label></td>
    4848            </tr>
    4949            <tr>
     
    306306                            <?php foreach ( $countries as $code => $country ) : ?>
    307307                                <option
    308                                     value="<?php echo $code ?>" <?php selected( $billing->address_country_code, $code ) ?>><?php echo $country ?></option>
     308                                    value="<?php echo esc_attr( $code ) ?>" <?php selected( $billing->address_country_code, $code ) ?>><?php echo esc_html( $country ) ?></option>
    309309                            <?php endforeach ?>
    310310                        </select></label></td>
    311311                <td><label><span><?php fs_esc_html_echo_inline( 'State', 'state', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Province', 'province', $slug ) ?>:</span>
    312                         <input id="address_state" value="<?php echo $billing->address_state ?>" placeholder="<?php fs_esc_html_echo_inline( 'State', 'state', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Province', 'province', $slug ) ?>"></label></td>
     312                        <input id="address_state" value="<?php echo esc_attr( $billing->address_state ) ?>" placeholder="<?php fs_esc_html_echo_inline( 'State', 'state', $slug ) ?> / <?php fs_esc_html_echo_inline( 'Province', 'province', $slug ) ?>"></label></td>
    313313            </tr>
    314314            <tr>
     
    381381                    method : 'POST',
    382382                    data   : {
    383                         action   : '<?php echo $fs->get_ajax_action( 'update_billing' ) ?>',
    384                         security : '<?php echo $fs->get_ajax_security( 'update_billing' ) ?>',
    385                         module_id: '<?php echo $fs->get_id() ?>',
     383                        action   : <?php echo wp_json_encode( $fs->get_ajax_action( 'update_billing' ) ) ?>,
     384                        security : <?php echo wp_json_encode( $fs->get_ajax_security( 'update_billing' ) ) ?>,
     385                        module_id: <?php echo wp_json_encode( $fs->get_id() ) ?>,
    386386                        billing  : billing
    387387                    },
  • unlimited-elements-for-elementor/trunk/provider/freemius/templates/admin-notice.php

    r2836063 r2934465  
    1010        exit;
    1111    }
     12
     13    /**
     14     * @var array $VARS
     15     */
    1216
    1317    $dismiss_text = fs_text_x_inline( 'Dismiss', 'as close a window', 'dismiss' );
     
    3640        }
    3741    }
     42
     43    $attributes = array();
     44    if ( ! empty( $VARS['id'] ) ) {
     45        $attributes['data-id'] = $VARS['id'];
     46    }
     47    if ( ! empty( $VARS['manager_id'] ) ) {
     48        $attributes['data-manager-id'] = $VARS['manager_id'];
     49    }
     50    if ( ! empty( $slug ) ) {
     51        $attributes['data-slug'] = $slug;
     52    }
     53    if ( ! empty( $type ) ) {
     54        $attributes['data-type'] = $type;
     55    }
     56
     57    $classes = array( 'fs-notice' );
     58    switch ( $VARS['type'] ) {
     59        case 'error':
     60            $classes[] = 'error';
     61            $classes[] = 'form-invalid';
     62            break;
     63        case 'promotion':
     64            $classes[] = 'updated';
     65            $classes[] = 'promotion';
     66            break;
     67        case 'warn':
     68            $classes[] = 'notice';
     69            $classes[] = 'notice-warning';
     70            break;
     71        case 'update':
     72        case 'success':
     73        default:
     74            $classes[] = 'updated';
     75            $classes[] = 'success';
     76            break;
     77    }
     78    if ( ! empty( $VARS['sticky'] ) ) {
     79        $classes[] = 'fs-sticky';
     80    }
     81    if ( ! empty( $VARS['plugin'] ) ) {
     82        $classes[] = 'fs-has-title';
     83    }
     84    if ( ! empty( $slug ) ) {
     85        $classes[] = "fs-slug-{$slug}";
     86    }
     87    if ( ! empty( $type ) ) {
     88        $classes[] = "fs-type-{$type}";
     89    }
    3890?>
    39 <div<?php if ( ! empty( $VARS['id'] ) ) : ?> data-id="<?php echo $VARS['id'] ?>"<?php endif ?><?php if ( ! empty( $VARS['manager_id'] ) ) : ?> data-manager-id="<?php echo $VARS['manager_id'] ?>"<?php endif ?><?php if ( ! empty( $slug ) ) : ?> data-slug="<?php echo $slug ?>"<?php endif ?><?php if ( ! empty( $type ) ) : ?> data-type="<?php echo $type ?>"<?php endif ?>
    40     class="<?php
    41         switch ( $VARS['type'] ) {
    42             case 'error':
    43                 echo 'error form-invalid';
    44                 break;
    45             case 'promotion':
    46                 echo 'updated promotion';
    47                 break;
    48             case 'warn':
    49                 echo 'notice notice-warning';
    50                 break;
    51             case 'update':
    52 //          echo 'update-nag update';
    53 //          break;
    54             case 'success':
    55             default:
    56                 echo 'updated success';
    57                 break;
    58         }
    59     ?> fs-notice<?php if ( ! empty( $VARS['sticky'] ) ) {
    60         echo ' fs-sticky';
    61     } ?><?php if ( ! empty( $VARS['plugin'] ) ) {
    62         echo ' fs-has-title';
    63     } ?><?php if ( ! empty( $slug ) ) {
    64         echo " fs-slug-{$slug}";
    65     } ?><?php if ( ! empty( $type ) ) {
    66         echo " fs-type-{$type}";
    67     } ?>"><?php if ( ! empty( $VARS['plugin'] ) ) : ?>
    68         <label class="fs-plugin-title"><?php echo $VARS['plugin'] ?></label>
     91<div class="<?php echo fs_html_get_classname( $classes ); ?>" <?php echo fs_html_get_attributes( $attributes ); ?>>
     92    <?php if ( ! empty( $VARS['plugin'] ) ) : ?>
     93        <label class="fs-plugin-title">
     94            <?php echo esc_html( $VARS['plugin'] ); ?>
     95        </label>
    6996    <?php endif ?>
     97
    7098    <?php if ( ! empty( $VARS['sticky'] ) && ( ! isset( $VARS['dismissible'] ) || false !== $VARS['dismissible'] ) ) : ?>
    71         <div class="fs-close"><i class="dashicons dashicons-no"
    72                                  title="<?php echo esc_attr( $dismiss_text ) ?>"></i> <span><?php echo esc_html( $dismiss_text ) ?></span>
     99        <div class="fs-close">
     100            <i class="dashicons dashicons-no" title="<?php echo esc_attr( $dismiss_text ) ?>"></i>
     101            <span><?php echo esc_html( $dismiss_text ); ?></span>
    73102        </div>
    74103    <?php endif ?>
     104
    75105    <div class="fs-notice-body">
    76         <?php if ( ! empty( $VARS['title'] ) ) : ?><b><?php echo $VARS['title'] ?></b> <?php endif ?>
    77         <?php echo $VARS['message'] ?>
     106        <?php if ( ! empty( $VARS['title'] ) ) : ?>
     107            <strong><?php echo fs_html_get_sanitized_html( $VARS['title'] ); ?></strong>
     108        <?php endif ?>
     109
     110        <?php echo fs_html_get_sanitized_html( $VARS['message'] ); ?>
    78111    </div>
    79112</div>
  • unlimited-elements-for-elementor/trunk/provider/freemius/templates/connect.php

    r2916324 r2934465  
    366366                <form action="" method="POST">
    367367                    <input type="hidden" name="fs_action"
    368                            value="<?php echo $fs->get_unique_affix() ?>_activate_existing">
    369                     <?php wp_nonce_field( 'activate_existing_' . $fs->get_public_key() ) ?>
     368                           value="<?php echo esc_attr( $fs->get_unique_affix() . '_activate_existing' ) ?>">
     369                    <?php wp_nonce_field( $fs->get_unique_affix() . '_activate_existing' ) ?>
    370370                    <input type="hidden" name="is_extensions_tracking_allowed" value="1">
    371371                    <input type="hidden" name="is_diagnostic_tracking_allowed" value="1">
     
    377377                    <?php unset( $optin_params['sites']); ?>
    378378                    <?php foreach ( $optin_params as $name => $value ) : ?>
    379                         <input type="hidden" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>">
     379                        <input type="hidden" name="<?php echo esc_attr( $name ) ?>" value="<?php echo esc_attr( $value ) ?>">
    380380                    <?php endforeach ?>
    381381                    <input type="hidden" name="is_extensions_tracking_allowed" value="1">
     
    388388            <?php endif ?>
    389389            <?php if ( $require_license_key ) : ?>
    390                 <a id="license_issues_link" href="<?php echo $fs->apply_filters( 'known_license_issues_url', 'https://freemius.com/help/documentation/wordpress-sdk/license-activation-issues/' ) ?>" target="_blank"><?php fs_esc_html_echo_inline( 'License issues?', 'license-issues', $slug ) ?></a>
     390                <a id="license_issues_link"
     391                   href="<?php echo esc_url( $fs->apply_filters( 'known_license_issues_url', 'https://freemius.com/help/documentation/wordpress-sdk/license-activation-issues/' ) ) ?>"
     392                   target="_blank"><?php fs_esc_html_echo_inline( 'License issues?', 'license-issues', $slug ) ?></a>
    391393            <?php endif ?>
    392394
     
    413415                        <a class="fs-trigger wp-core-ui" href="#" tabindex="1" style="color: inherit;"><?php echo sprintf(
    414416                                fs_esc_html_inline( 'For delivery of security & feature updates, and license management, %s needs to', 'license-sync-disclaimer', $slug ) . '<b class="fs-arrow"></b>',
    415                                 sprintf( '<nobr class="button-link" style="color: inherit;">%s</nobr>', $fs->get_plugin_title() )
     417                                sprintf( '<nobr class="button-link" style="color: inherit;">%s</nobr>', esc_html( $fs->get_plugin_title() ) )
    416418                            ) ?></a>
    417419                    <?php else : ?>
    418420                        <a class="fs-trigger wp-core-ui" href="#" tabindex="1" style="color: inherit;"><?php printf(
    419421                                fs_esc_html_inline( 'This will allow %s to', 'this-will-allow-x', $slug ) . '<b class="fs-arrow"></b>',
    420                                 sprintf( '<nobr class="button-link" style="color: inherit;">%s</nobr>', $fs->get_plugin_title() )
     422                                sprintf( '<nobr class="button-link" style="color: inherit;">%s</nobr>', esc_html( $fs->get_plugin_title() ) )
    421423                            ) ?></a>
    422424                    <?php endif ?>
     
    443445        </div>
    444446        <div class="fs-terms">
    445             <a class="fs-tooltip-trigger<?php echo is_rtl() ? ' rtl' : '' ?>" href="<?php echo esc_url( $freemius_activation_terms_url ) ?>" target="_blank" rel="noopener" tabindex="1">Powered by Freemius<?php if ( $require_license_key ) : ?> <span class="fs-tooltip" style="width: 170px"><?php echo $fs->get_text_inline( 'Freemius is our licensing and software updates engine', 'permissions-extensions_desc' ) ?></span><?php endif ?></a>
     447            <a class="fs-tooltip-trigger<?php echo is_rtl() ? ' rtl' : '' ?>" href="<?php echo esc_url( $freemius_activation_terms_url ) ?>" target="_blank" rel="noopener" tabindex="1">Powered by Freemius<?php if ( $require_license_key ) : ?> <span class="fs-tooltip" style="width: 170px"><?php echo esc_html( $fs->get_text_inline( 'Freemius is our licensing and software updates engine', 'permissions-extensions_desc' ) ) ?></span><?php endif ?></a>
    446448            &nbsp;&nbsp;-&nbsp;&nbsp;
    447449            <a href="https://freemius.com/privacy/" target="_blank" rel="noopener"
  • unlimited-elements-for-elementor/trunk/provider/freemius/templates/forms/optout.php

    r2896157 r2934465  
    119119    $form_id = "fs_opt_out_{$fs->get_id()}";
    120120?>
    121 <div id="<?php echo $form_id ?>"
     121<div id="<?php echo esc_attr( $form_id ) ?>"
    122122     class="fs-modal fs-modal-opt-out"
    123      data-plugin-id="<?php echo $fs->get_id() ?>"
    124      data-action="<?php echo $fs->get_ajax_action( $ajax_action ) ?>"
    125      data-security="<?php echo $fs->get_ajax_security( $ajax_action ) ?>"
     123     data-plugin-id="<?php echo esc_attr( $fs->get_id() ) ?>"
     124     data-action="<?php echo esc_attr( $fs->get_ajax_action( $ajax_action ) ) ?>"
     125     data-security="<?php echo esc_attr(  $fs->get_ajax_security( $ajax_action ) ) ?>"
    126126     style="display: none">
    127127    <div class="fs-modal-dialog">
     
    146146        <?php foreach ( $permission_groups as $i => $permission_group ) : ?>
    147147            <?php if ( ! empty( $permission_group[ 'prompt' ] ) ) : ?>
    148                 <div class="fs-<?php echo $permission_group[ 'id' ] ?>-opt-out fs-opt-out-disclaimer" data-group-id="<?php echo $permission_group[ 'id' ] ?>" style="display: none">
     148                <div class="fs-<?php echo esc_attr( $permission_group[ 'id' ] ) ?>-opt-out fs-opt-out-disclaimer" data-group-id="<?php echo esc_attr( $permission_group[ 'id' ] ) ?>" style="display: none">
    149149                    <div class="fs-modal-body">
    150150                        <div class="fs-modal-panel active">
    151151                            <div class="notice notice-error inline opt-out-error-message"><p></p></div>
    152152                            <?php foreach ( $permission_group[ 'prompt' ] as $p ) : ?>
     153                                <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
    153154                                <p><?php echo $p ?></p>
    154155                            <?php endforeach ?>
     
    171172        $( document ).ready(function() {
    172173            FS.OptOut(
    173                 '<?php echo $fs->get_id() ?>',
    174                 '<?php echo $slug ?>',
    175                 '<?php echo $fs->get_module_type() ?>',
     174                <?php echo wp_json_encode( $fs->get_id() ) ?>,
     175                <?php echo wp_json_encode( $slug ) ?>,
     176                <?php echo wp_json_encode( $fs->get_module_type() ) ?>,
    176177                <?php echo $fs->is_registered( true ) ? 'true' : 'false' ?>,
    177178                <?php echo $fs->is_tracking_allowed() ? 'true' : 'false' ?>,
    178                 '<?php echo esc_js( $reconnect_url ) ?>'
     179                <?php echo wp_json_encode( $reconnect_url ) ?>
    179180            );
    180181        });
  • unlimited-elements-for-elementor/trunk/provider/freemius/templates/partials/network-activation.php

    r2836063 r2934465  
    6262            <?php foreach ( $sites as $site ) : ?>
    6363                <tr<?php if ( ! empty( $site['license_id'] ) ) {
    64                     echo ' data-license-id="' . $site['license_id'] . '"';
     64                    echo ' data-license-id="' . esc_attr( $site['license_id'] ) . '"';
    6565                } ?>>
    6666                    <?php if ( $require_license_key ) : ?>
    6767                        <td><input type="checkbox" value="true" /></td>
    6868                    <?php endif ?>
    69                     <td class="blog-id"><span><?php echo $site['blog_id'] ?></span>.</td>
     69                    <td class="blog-id"><span><?php echo esc_html( $site['blog_id'] ) ?></span>.</td>
    7070                    <td width="600"><span><?php
    7171                        $url = str_replace( 'http://', '', str_replace( 'https://', '', $site['url'] ) );
    72                         echo $url;
     72                        echo esc_html( $url );
    7373                        ?></span>
    7474                        <?php foreach ($site_props as $prop) : ?>
    75                             <input class="<?php echo $prop ?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" />
     75                            <input class="<?php echo esc_attr( $prop ) ?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" />
    7676                        <?php endforeach ?>
    7777                    </td>
  • unlimited-elements-for-elementor/trunk/provider/functions_wordpress.class.php

    r2933731 r2934465  
    34283428     * set global author data variable
    34293429     */
    3430     public static function setGlobalAuthorData() {
     3430    public static function setGlobalAuthorData($post = null) {
     3431       
    34313432        global $authordata;
    3432         if ( ! isset( $authordata->ID ) ) {
     3433       
     3434        if(empty($post))
    34333435            $post = get_post();
    3434             $authordata = get_userdata( $post->post_author );
    3435         }
     3436       
     3437        $authordata = get_userdata( $post->post_author );
     3438       
    34363439    }
    34373440   
  • unlimited-elements-for-elementor/trunk/provider/provider_helper.class.php

    r2930901 r2934465  
    327327        $memoryLimit = ini_get('memory_limit');
    328328        $htmlLimit = "<b> {$memoryLimit} </b>";
    329                
     329       
     330        $numLimit = (int)$memoryLimit;
     331
     332        if($numLimit < 512)
     333            $htmlLimit .= "<div style='color:red;font-size:13px;padding-top:4px;'> Recommended 512M, please increase php memory.</div>";
     334       
    330335        $setting = $objSettings->getSettingByName("memory_limit_text");
    331336        if(empty($setting))
  • unlimited-elements-for-elementor/trunk/readme.txt

    r2933731 r2934465  
    12521252
    12531253== Changelog ==
     1254
     1255version 1.5.75: 2023-07-05
     1256
     1257* Feature: added some suggestion text to add some memory in the troubleshooting section in case that needed
     1258* Fix: the wrong author was displayed in loop post meta data
     1259* Fix: do_shortcode to html items inside the grid and dynamic loop
     1260* Update: Updated Freemius SDK to the latest version
     1261
    12541262
    12551263version 1.5.74: 2023-07-04
  • unlimited-elements-for-elementor/trunk/release_log.txt

    r2933731 r2934465  
    11
     2version 1.5.75:
     3
     4-feature: added some suggestion text to add some memory in the troubleshooting section in case that needed
     5-bug fix: the wrong author was displayed in loop post meta data
     6-bug fix: do_shortcode to html items inside the grid and dynamic loop
     7-update: Updated Freemius SDK to the latest version
    28
    39
  • unlimited-elements-for-elementor/trunk/unlimited_elements.php

    r2930901 r2934465  
    55* Description: Unlimited Elements - Huge Widgets Pack for Elementor Website Builder, with html/css/js widget creator and editor
    66* Author: Unlimited Elements
    7 * Version: 1.5.73
     7* Version: 1.5.75
    88* Author URI: http://unlimited-elements.com
    99* Text Domain: unlimited-elements-for-elementor
Note: See TracChangeset for help on using the changeset viewer.