Plugin Directory

Changeset 3586921


Ignore:
Timestamp:
06/26/2026 08:02:45 AM (4 months ago)
Author:
basszje
Message:

Version 9.8.6

Location:
maxbuttons
Files:
4 deleted
19 edited
89 copied

Legend:

Unmodified
Added
Removed
  • maxbuttons/tags/9.8.6/blocks/basic.php

    r3279932 r3586921  
    237237
    238238                $sql = $wpdb->prepare("SELECT id from $table where name = %s and status = 'publish' and id <> %d ", $name, $button_id);
    239 
    240239                $results = $wpdb->get_col($sql);
    241240
    … …  
    243242                {
    244243                        $message = __('Button name already used. Using non-unique names with the shortcode can cause issues', 'maxbuttons');
    245                         $message .=  ' ' . __('Already used in : ');
     244                        $message .=  ' ' . __('Already used in : ', 'maxbuttons');
    246245                        foreach($results as $id)
    247246                        {
    248                                 $url =  admin_url() . 'admin.php?page=maxbuttons-controller&action=edit&id=' . $id;
     247                                $url =  admin_url() . 'admin.php?page=maxbuttons-controller&action=edit&id=' . intval($id);
    249248                                $message .= ' <a href="' . esc_attr($url) . '" target="_blank">' . intval($id) . '</a> ';
    250249                        }
    … …  
    322321                                                $copyno->label = '&nbsp;';
    323322                                                $copyno->name = 'prevent-copy-message';
    324                                                 $copyno->content = "<p>" . __('<strong>Tip: </strong> You don\'t need to copy buttons to change URL or Text. See the examples on top of page') . '</p>';
     323                                                $copyno->content = "<p>" . __('<strong>Tip: </strong> You don\'t need to copy buttons to change URL or Text. See the examples on top of page', 'maxbuttons') . '</p>';
    325324                                                $screen->addField($copyno, 'start','end');
    326325                                        }
    … …  
    394393                                        $field_text->is_responsive = false;
    395394                                        $field_text->value = esc_attr($screen->getValue($field_text->id));
    396                                         $field_text->help = __('Shortcode attribute: text');
     395                                        $field_text->help = __('Shortcode attribute: text', 'maxbuttons');
    397396                                        $screen->addField($field_text, 'start', 'end');
    398397
  • maxbuttons/tags/9.8.6/blocks/responsive.php

    r2977449 r3586921  
    216216                $name->is_new = true;
    217217                $name->value = $screen->getValue($name->id);
    218                 $name->note = __('The internal name for this screen. [optional]');
     218                $name->note = __('The internal name for this screen. [optional]', 'maxbuttons');
    219219                $screen->addField($name, 'start', 'end');
    220220
    … …  
    230230                $preset->id = $screen->getFieldID('preset');
    231231                $preset->name = $preset->id;
    232                 $preset->label = __('Select a Preset');
     232                $preset->label = __('Select a Preset', 'maxbuttons');
    233233                $preset->is_new = true;
    234234                $preset->options = $preset_options;
    … …  
    339339                        $output .= "<div class='removed-note'>" . __("Save your settings first to remove the screen", 'maxbuttons') . '</div>';
    340340                        $output .= '<p><h4>' . sprintf(__('You already have %s screens. To add more responsive screens to your buttons, upgrade to MaxButtons PRO.', 'maxbuttons'), $screen::countScreens() ) . '</b></h4>';
    341                         $output .= '<h4>' . __('The best button editor for WordPress includes: ') . '</h4>';
     341                        $output .= '<h4>' . __('The best button editor for WordPress includes: ', 'maxbuttons') . '</h4>';
    342342                        $output .= '<ul>';
    343343                        $output .= '<li>' . __('Infinite amount of screens', 'maxbuttons') . '</li>';
  • maxbuttons/tags/9.8.6/classes/admin-class.php

    r2977449 r3586921  
    311311                $preview = new maxField('generic');
    312312                $preview->name = 'button-preview';
    313                 $preview->content = '<h3>' . __('Shortcode Options') . '</h3>
     313                $preview->content = '<h3>' . __('Shortcode Options', 'maxbuttons') . '</h3>
    314314                                                                                                <p>' . $button->display($display_args) . '</p>
    315315                                                                                                <p>' . __('Change the options to add shortcode attributes. ', 'maxbuttons') . '</p>';
  • maxbuttons/tags/9.8.6/classes/button.php

    r3197889 r3586921  
    576576                maxButtons::buttonDone(array("button_id" => $this->id, "document_id" => $this->document_id) );
    577577
     578                $domObj->clear();
    578579                maxUtils::endTime('button-display-'. $this->id);
    579580
  • maxbuttons/tags/9.8.6/classes/controllers/editorController.php

    r2977449 r3586921  
    170170                if ($new_button)
    171171                {
    172                         wp_redirect($url);
     172                        wp_safe_redirect($url);
    173173                        exit();
    174174                }
  • maxbuttons/tags/9.8.6/classes/controllers/listController.php

    r2977449 r3586921  
    3535  public function loadView()
    3636  {
    37     if (! isset($this->view->listView)) // Can be set by handlePost
    38       $this->view->listView = (isset($_GET["view"])) ? sanitize_text_field($_GET["view"]) : "all";
     37    if (! isset($this->view->listView))
     38    { // Can be set by handlePost
     39      $view = isset($_GET['view']) && ($_GET['view'] == 'trash') ? 'trash' : 'all';
     40      $this->view->listView = $view;
     41    }
    3942
    4043    $this->loadButtons();
  • maxbuttons/tags/9.8.6/classes/max-utils.php

    r3272308 r3586921  
    3232                $plugin_action = isset($_POST['plugin_action']) ? sanitize_text_field($_POST['plugin_action']) : '';
    3333                $nonce = isset($_POST['nonce']) ? $_POST['nonce'] : false;
    34                 $message = __( sprintf("No Handler found for action %s ", $plugin_action), 'maxbuttons');
     34                $message = sprintf(__("No Handler found for action %s ",'maxbuttons'), $plugin_action );
    3535
    3636                if (! wp_verify_nonce($nonce, 'maxajax') )
    3737                {
    38                         $message = __('Nonce not verified (' . $nonce . ')', 'maxbuttons');
     38                        $message = sprintf(__('Nonce not verified (%s)', 'maxbuttons'), sanitize_text_field($nonce) );
    3939                }
    4040                else
    … …  
    395395
    396396                // This is a fix specific for NGGallery since they load their scripts weirdly / wrongly, but do check for the presence of a style named 'fontawesome' .
    397                 wp_register_style('fontawesome', $src);
     397                wp_register_style('fontawesome', $src, [], MAXBUTTONS_VERSION_NUM);
    398398
    399399        }
  • maxbuttons/tags/9.8.6/classes/maxbuttons-admin-helper.php

    r2977449 r3586921  
    2424                $version = self::getAdVersion();
    2525                $url = self::getCheckoutURL();
    26         ?>
    27 
    28                         <?php printf(__('Upgrade to MaxButtons Pro today!  %sClick Here%s', 'maxbuttons'), '<a class="simple-btn" href="' . $url . '&utm_source=mbf-dash' . $version . '&utm_medium=mbf-plugin&utm_content=click-here&utm_campaign=cart' . $version . '" target="_blank">', '</a>' ) ?>
    29 
    30 
    31         <?php
     26       
     27                printf(__('Upgrade to MaxButtons Pro today!  %sClick Here%s', 'maxbuttons'), '<a class="simple-btn" href="' . esc_attr($url) . '&utm_source=mbf-dash' . $version . '&utm_medium=mbf-plugin&utm_content=click-here&utm_campaign=cart' . esc_attr($version) . '" target="_blank">', '</a>' );
     28
     29
    3230        }
    3331
  • maxbuttons/tags/9.8.6/classes/maxbuttons-class.php

    r3361572 r3586921  
    554554                                'wpColorPickerL10n',
    555555                                array(
    556                                         'clear'            => __( 'Clear' ),
    557                                         'clearAriaLabel'   => __( 'Clear color' ),
    558                                         'defaultString'    => __( 'Default' ),
    559                                         'defaultAriaLabel' => __( 'Select default color' ),
    560                                         'pick'             => __( 'Select Color' ),
    561                                         'defaultLabel'     => __( 'Color value' ),
     556                                        'clear'            => __( 'Clear', 'maxbuttons' ),
     557                                        'clearAriaLabel'   => __( 'Clear color', 'maxbuttons' ),
     558                                        'defaultString'    => __( 'Default', 'maxbuttons' ),
     559                                        'defaultAriaLabel' => __( 'Select default color', 'maxbuttons' ),
     560                                        'pick'             => __( 'Select Color', 'maxbuttons' ),
     561                                        'defaultLabel'     => __( 'Color value', 'maxbuttons' ),
    562562                                )
    563563                        );
  • maxbuttons/tags/9.8.6/classes/screen.php

    r2977449 r3586921  
    144144  public function addfield($field, $start = '', $end = '')
    145145  {
    146     $field_id = isset($field->id) ? $field->id : $field->template . \rand(0,1000);
     146    $field_id = isset($field->id) ? $field->id : $field->template . \wp_rand(0,1000);
    147147
    148148    // don't add if it's not our screen.
  • maxbuttons/tags/9.8.6/classes/upgrader/license.php

    r2977942 r3586921  
    7777                if ($free_url != '')
    7878                        $args["free_url"] = $free_url;
    79 
    80                 //$api_url = add_query_arg($args, $this->api_url);
    81 
    82                 //header('Content-Type: application/json');
    83 
    84                 if ($error) // errors before the request
    85                 {
    86                          return $error_body;
    87                         //echo json_encode($error_body);
    88                 //      exit();
    89                 }
    9079
    9180                $data = $this->do_api_post($args);
    … …  
    163152                                        case 'expired' :
    164153                                                $message = sprintf(
    165                                                         __( 'Your license key expired on %s.', 'maxbuttons-pro' ),
     154                                                        __( 'Your license key expired on %s.', 'maxbuttons' ),
    166155                                                        date_i18n( get_option( 'date_format' ), strtotime( strval($data->expires), current_time( 'timestamp' ) ) )
    167156                                                );
    … …  
    169158                                        case 'revoked' :
    170159                                        case 'disabled' :
    171                                                 $message = __( 'Your license key has been disabled.','maxbuttons-pro');
     160                                                $message = __( 'Your license key has been disabled.','maxbuttons');
    172161                                                break;
    173162                                        case 'missing' :
    174                                                 $message = __( 'Invalid license. Please check the license code. ', 'maxbuttons-pro');
     163                                                $message = __( 'Invalid license. Please check the license code. ', 'maxbuttons');
    175164                                                break;
    176165                                        case 'invalid' :
    177166                                        case 'site_inactive' :
    178                                                 $message = __( 'Your license is not active for this URL.', 'maxbuttons-pro' );
     167                                                $message = __( 'Your license is not active for this URL.', 'maxbuttons' );
    179168                                                break;
    180169                                        case 'item_name_mismatch' :
    181                                                 $message = sprintf( __( 'This appears to be an invalid license key for %s.', 'maxbuttons-pro' ), 'MaxButtons PRO' );
     170                                                $message = sprintf( __( 'This appears to be an invalid license key for %s.', 'maxbuttons' ), 'MaxButtons PRO' );
    182171                                                break;
    183172                                        case 'no_activations_left':
    184                                                 $message = __( 'Your license key has reached its activation limit.','maxbuttons-pro' );
     173                                                $message = __( 'Your license key has reached its activation limit.','maxbuttons' );
    185174                                                break;
    186175                                        default :
    187                                                 $message = __( 'An error occurred, please try again.', 'maxbuttons-pro' );
     176                                                $message = __( 'An error occurred, please try again.', 'maxbuttons' );
    188177                                                break;
    189178                        }
    190179                        $data->additional_info = $message ;
    191         //              $result = $new_result;
    192 
    193180                        return $data;
    194                 //echo json_encode($result);
    195         //      exit();
    196181        }
    197182
  • maxbuttons/tags/9.8.6/includes/maxbuttons-list.php

    r2977449 r3586921  
    6060                                <?php endif; ?>
    6161
    62                                 <input type="hidden" name="view" value="<?php echo $view->listView ?>" />
     62                                <input type="hidden" name="view" value="<?php echo esc_attr($view->listView) ?>" />
    6363                                <?php wp_nonce_field("mb-list","mb-list-nonce");  ?>
    6464
    … …  
    7777
    7878                                <?php if ($view->listView == 'trash'): ?>
    79                                         <button type="button" class='button alignright' value='empty-trash' data-buttonaction='empty-trash' data-confirm="<?php _e('Permanently delete all buttons in trash. Are you sure?', 'maxbuttons-pro') ?>"><?php _e('Empty Trash', 'maxbuttons'); ?></button>
     79                                        <button type="button" class='button alignright' value='empty-trash' data-buttonaction='empty-trash' data-confirm="<?php _e('Permanently delete all buttons in trash. Are you sure?', 'maxbuttons') ?>"><?php _e('Empty Trash', 'maxbuttons'); ?></button>
    8080                                <?php endif; ?>
    8181                                <?php do_action("mb-display-pagination", $view->pageArgs, 'top'); ?>
  • maxbuttons/tags/9.8.6/includes/maxbuttons-no-simplexml.php

    r2716443 r3586921  
    1111
    1212$admin = MB()->getClass('admin');
    13 $page_title = __("Packs","maxbuttons-pro");
     13$page_title = __("Packs","maxbuttons");
    1414
    1515$admin->get_header(array("title" => $page_title) );
  • maxbuttons/tags/9.8.6/includes/maxbuttons-support.php

    r2171726 r3586921  
    4646  echo maxbuttons_system_label('MySQL Version:', $mysql_version, 8) ?>
    4747
    48 <?php echo maxbuttons_system_label('Web Server:', $_SERVER['SERVER_SOFTWARE'], 11) ?>
     48<?php
     49 $software = isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : '';
     50 echo maxbuttons_system_label('Web Server:', esc_html($software)  , 11)
     51 ?>
    4952
    5053<?php echo maxbuttons_system_label('WordPress URL:', get_bloginfo('wpurl'), 8) ?>
  • maxbuttons/tags/9.8.6/index.php

    r1384110 r3586921  
     1<?php
    12// silence
  • maxbuttons/tags/9.8.6/maxbuttons.php

    r3361572 r3586921  
    11<?php
    22/*
    3 Plugin Name: MaxButtons
     3Plugin Name: MaxButtons - Create buttons
    44Plugin URI: http://maxbuttons.com
    55Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
    6 Version: 9.8.5
     6Version: 9.8.6
    77Author: Max Foundry
    88Author URI: http://maxfoundry.com
    99Text Domain: maxbuttons
    1010Domain Path: /languages
     11License: GPL v2 or later
     12
    1113
    1214Copyright 2025 Max Foundry, LLC (http://maxfoundry.com)
    … …  
    1719        define("MAXBUTTONS_ROOT_FILE", __FILE__);
    1820if (! defined('MAXBUTTONS_VERSION_NUM'))
    19         define('MAXBUTTONS_VERSION_NUM', '9.8.5');
     21        define('MAXBUTTONS_VERSION_NUM', '9.8.6');
    2022
    21 define('MAXBUTTONS_RELEASE',"15 September 2025");
     23define('MAXBUTTONS_RELEASE',"26 June 2026");
    2224
    2325if (! function_exists('MaxButtons\maxbutton_double_load'))
  • maxbuttons/tags/9.8.6/readme.txt

    r3361572 r3586921  
    33Tags: butotn creator, share button, css3 button generator, responsive buttons, css wordpress button
    44Requires at least: 5.0
    5 Tested up to: 6.8
     5Tested up to: 7.0
    66License: GPL v2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
    88Requires PHP: 7.0
    9 Stable tag: 9.8.5
     9Stable tag: 9.8.6
    1010
    1111Maxbuttons is the best and easiest button plugin for WordPress. Within minutes you can create beautiful buttons, share buttons and social icons.
    … …  
    279279== Changelog ==
    280280
     281= 9.8.6 =
     282
     283- Maintenance release
     284- Fix - Missing escape on view parameter in maxbutton list
     285- Compatible and tested with latest WordPress (7.0) and PHP (8.3)
     286
    281287= 9.8.5 =
    282288
  • maxbuttons/trunk/blocks/basic.php

    r3279932 r3586921  
    237237
    238238                $sql = $wpdb->prepare("SELECT id from $table where name = %s and status = 'publish' and id <> %d ", $name, $button_id);
    239 
    240239                $results = $wpdb->get_col($sql);
    241240
    … …  
    243242                {
    244243                        $message = __('Button name already used. Using non-unique names with the shortcode can cause issues', 'maxbuttons');
    245                         $message .=  ' ' . __('Already used in : ');
     244                        $message .=  ' ' . __('Already used in : ', 'maxbuttons');
    246245                        foreach($results as $id)
    247246                        {
    248                                 $url =  admin_url() . 'admin.php?page=maxbuttons-controller&action=edit&id=' . $id;
     247                                $url =  admin_url() . 'admin.php?page=maxbuttons-controller&action=edit&id=' . intval($id);
    249248                                $message .= ' <a href="' . esc_attr($url) . '" target="_blank">' . intval($id) . '</a> ';
    250249                        }
    … …  
    322321                                                $copyno->label = '&nbsp;';
    323322                                                $copyno->name = 'prevent-copy-message';
    324                                                 $copyno->content = "<p>" . __('<strong>Tip: </strong> You don\'t need to copy buttons to change URL or Text. See the examples on top of page') . '</p>';
     323                                                $copyno->content = "<p>" . __('<strong>Tip: </strong> You don\'t need to copy buttons to change URL or Text. See the examples on top of page', 'maxbuttons') . '</p>';
    325324                                                $screen->addField($copyno, 'start','end');
    326325                                        }
    … …  
    394393                                        $field_text->is_responsive = false;
    395394                                        $field_text->value = esc_attr($screen->getValue($field_text->id));
    396                                         $field_text->help = __('Shortcode attribute: text');
     395                                        $field_text->help = __('Shortcode attribute: text', 'maxbuttons');
    397396                                        $screen->addField($field_text, 'start', 'end');
    398397
  • maxbuttons/trunk/blocks/responsive.php

    r2977449 r3586921  
    216216                $name->is_new = true;
    217217                $name->value = $screen->getValue($name->id);
    218                 $name->note = __('The internal name for this screen. [optional]');
     218                $name->note = __('The internal name for this screen. [optional]', 'maxbuttons');
    219219                $screen->addField($name, 'start', 'end');
    220220
    … …  
    230230                $preset->id = $screen->getFieldID('preset');
    231231                $preset->name = $preset->id;
    232                 $preset->label = __('Select a Preset');
     232                $preset->label = __('Select a Preset', 'maxbuttons');
    233233                $preset->is_new = true;
    234234                $preset->options = $preset_options;
    … …  
    339339                        $output .= "<div class='removed-note'>" . __("Save your settings first to remove the screen", 'maxbuttons') . '</div>';
    340340                        $output .= '<p><h4>' . sprintf(__('You already have %s screens. To add more responsive screens to your buttons, upgrade to MaxButtons PRO.', 'maxbuttons'), $screen::countScreens() ) . '</b></h4>';
    341                         $output .= '<h4>' . __('The best button editor for WordPress includes: ') . '</h4>';
     341                        $output .= '<h4>' . __('The best button editor for WordPress includes: ', 'maxbuttons') . '</h4>';
    342342                        $output .= '<ul>';
    343343                        $output .= '<li>' . __('Infinite amount of screens', 'maxbuttons') . '</li>';
  • maxbuttons/trunk/classes/admin-class.php

    r2977449 r3586921  
    311311                $preview = new maxField('generic');
    312312                $preview->name = 'button-preview';
    313                 $preview->content = '<h3>' . __('Shortcode Options') . '</h3>
     313                $preview->content = '<h3>' . __('Shortcode Options', 'maxbuttons') . '</h3>
    314314                                                                                                <p>' . $button->display($display_args) . '</p>
    315315                                                                                                <p>' . __('Change the options to add shortcode attributes. ', 'maxbuttons') . '</p>';
  • maxbuttons/trunk/classes/button.php

    r3197889 r3586921  
    576576                maxButtons::buttonDone(array("button_id" => $this->id, "document_id" => $this->document_id) );
    577577
     578                $domObj->clear();
    578579                maxUtils::endTime('button-display-'. $this->id);
    579580
  • maxbuttons/trunk/classes/controllers/editorController.php

    r2977449 r3586921  
    170170                if ($new_button)
    171171                {
    172                         wp_redirect($url);
     172                        wp_safe_redirect($url);
    173173                        exit();
    174174                }
  • maxbuttons/trunk/classes/controllers/listController.php

    r2977449 r3586921  
    3535  public function loadView()
    3636  {
    37     if (! isset($this->view->listView)) // Can be set by handlePost
    38       $this->view->listView = (isset($_GET["view"])) ? sanitize_text_field($_GET["view"]) : "all";
     37    if (! isset($this->view->listView))
     38    { // Can be set by handlePost
     39      $view = isset($_GET['view']) && ($_GET['view'] == 'trash') ? 'trash' : 'all';
     40      $this->view->listView = $view;
     41    }
    3942
    4043    $this->loadButtons();
  • maxbuttons/trunk/classes/max-utils.php

    r3272308 r3586921  
    3232                $plugin_action = isset($_POST['plugin_action']) ? sanitize_text_field($_POST['plugin_action']) : '';
    3333                $nonce = isset($_POST['nonce']) ? $_POST['nonce'] : false;
    34                 $message = __( sprintf("No Handler found for action %s ", $plugin_action), 'maxbuttons');
     34                $message = sprintf(__("No Handler found for action %s ",'maxbuttons'), $plugin_action );
    3535
    3636                if (! wp_verify_nonce($nonce, 'maxajax') )
    3737                {
    38                         $message = __('Nonce not verified (' . $nonce . ')', 'maxbuttons');
     38                        $message = sprintf(__('Nonce not verified (%s)', 'maxbuttons'), sanitize_text_field($nonce) );
    3939                }
    4040                else
    … …  
    395395
    396396                // This is a fix specific for NGGallery since they load their scripts weirdly / wrongly, but do check for the presence of a style named 'fontawesome' .
    397                 wp_register_style('fontawesome', $src);
     397                wp_register_style('fontawesome', $src, [], MAXBUTTONS_VERSION_NUM);
    398398
    399399        }
  • maxbuttons/trunk/classes/maxbuttons-admin-helper.php

    r2977449 r3586921  
    2424                $version = self::getAdVersion();
    2525                $url = self::getCheckoutURL();
    26         ?>
    27 
    28                         <?php printf(__('Upgrade to MaxButtons Pro today!  %sClick Here%s', 'maxbuttons'), '<a class="simple-btn" href="' . $url . '&utm_source=mbf-dash' . $version . '&utm_medium=mbf-plugin&utm_content=click-here&utm_campaign=cart' . $version . '" target="_blank">', '</a>' ) ?>
    29 
    30 
    31         <?php
     26       
     27                printf(__('Upgrade to MaxButtons Pro today!  %sClick Here%s', 'maxbuttons'), '<a class="simple-btn" href="' . esc_attr($url) . '&utm_source=mbf-dash' . $version . '&utm_medium=mbf-plugin&utm_content=click-here&utm_campaign=cart' . esc_attr($version) . '" target="_blank">', '</a>' );
     28
     29
    3230        }
    3331
  • maxbuttons/trunk/classes/maxbuttons-class.php

    r3361572 r3586921  
    554554                                'wpColorPickerL10n',
    555555                                array(
    556                                         'clear'            => __( 'Clear' ),
    557                                         'clearAriaLabel'   => __( 'Clear color' ),
    558                                         'defaultString'    => __( 'Default' ),
    559                                         'defaultAriaLabel' => __( 'Select default color' ),
    560                                         'pick'             => __( 'Select Color' ),
    561                                         'defaultLabel'     => __( 'Color value' ),
     556                                        'clear'            => __( 'Clear', 'maxbuttons' ),
     557                                        'clearAriaLabel'   => __( 'Clear color', 'maxbuttons' ),
     558                                        'defaultString'    => __( 'Default', 'maxbuttons' ),
     559                                        'defaultAriaLabel' => __( 'Select default color', 'maxbuttons' ),
     560                                        'pick'             => __( 'Select Color', 'maxbuttons' ),
     561                                        'defaultLabel'     => __( 'Color value', 'maxbuttons' ),
    562562                                )
    563563                        );
  • maxbuttons/trunk/classes/screen.php

    r2977449 r3586921  
    144144  public function addfield($field, $start = '', $end = '')
    145145  {
    146     $field_id = isset($field->id) ? $field->id : $field->template . \rand(0,1000);
     146    $field_id = isset($field->id) ? $field->id : $field->template . \wp_rand(0,1000);
    147147
    148148    // don't add if it's not our screen.
  • maxbuttons/trunk/classes/upgrader/license.php

    r2977942 r3586921  
    7777                if ($free_url != '')
    7878                        $args["free_url"] = $free_url;
    79 
    80                 //$api_url = add_query_arg($args, $this->api_url);
    81 
    82                 //header('Content-Type: application/json');
    83 
    84                 if ($error) // errors before the request
    85                 {
    86                          return $error_body;
    87                         //echo json_encode($error_body);
    88                 //      exit();
    89                 }
    9079
    9180                $data = $this->do_api_post($args);
    … …  
    163152                                        case 'expired' :
    164153                                                $message = sprintf(
    165                                                         __( 'Your license key expired on %s.', 'maxbuttons-pro' ),
     154                                                        __( 'Your license key expired on %s.', 'maxbuttons' ),
    166155                                                        date_i18n( get_option( 'date_format' ), strtotime( strval($data->expires), current_time( 'timestamp' ) ) )
    167156                                                );
    … …  
    169158                                        case 'revoked' :
    170159                                        case 'disabled' :
    171                                                 $message = __( 'Your license key has been disabled.','maxbuttons-pro');
     160                                                $message = __( 'Your license key has been disabled.','maxbuttons');
    172161                                                break;
    173162                                        case 'missing' :
    174                                                 $message = __( 'Invalid license. Please check the license code. ', 'maxbuttons-pro');
     163                                                $message = __( 'Invalid license. Please check the license code. ', 'maxbuttons');
    175164                                                break;
    176165                                        case 'invalid' :
    177166                                        case 'site_inactive' :
    178                                                 $message = __( 'Your license is not active for this URL.', 'maxbuttons-pro' );
     167                                                $message = __( 'Your license is not active for this URL.', 'maxbuttons' );
    179168                                                break;
    180169                                        case 'item_name_mismatch' :
    181                                                 $message = sprintf( __( 'This appears to be an invalid license key for %s.', 'maxbuttons-pro' ), 'MaxButtons PRO' );
     170                                                $message = sprintf( __( 'This appears to be an invalid license key for %s.', 'maxbuttons' ), 'MaxButtons PRO' );
    182171                                                break;
    183172                                        case 'no_activations_left':
    184                                                 $message = __( 'Your license key has reached its activation limit.','maxbuttons-pro' );
     173                                                $message = __( 'Your license key has reached its activation limit.','maxbuttons' );
    185174                                                break;
    186175                                        default :
    187                                                 $message = __( 'An error occurred, please try again.', 'maxbuttons-pro' );
     176                                                $message = __( 'An error occurred, please try again.', 'maxbuttons' );
    188177                                                break;
    189178                        }
    190179                        $data->additional_info = $message ;
    191         //              $result = $new_result;
    192 
    193180                        return $data;
    194                 //echo json_encode($result);
    195         //      exit();
    196181        }
    197182
  • maxbuttons/trunk/includes/maxbuttons-list.php

    r2977449 r3586921  
    6060                                <?php endif; ?>
    6161
    62                                 <input type="hidden" name="view" value="<?php echo $view->listView ?>" />
     62                                <input type="hidden" name="view" value="<?php echo esc_attr($view->listView) ?>" />
    6363                                <?php wp_nonce_field("mb-list","mb-list-nonce");  ?>
    6464
    … …  
    7777
    7878                                <?php if ($view->listView == 'trash'): ?>
    79                                         <button type="button" class='button alignright' value='empty-trash' data-buttonaction='empty-trash' data-confirm="<?php _e('Permanently delete all buttons in trash. Are you sure?', 'maxbuttons-pro') ?>"><?php _e('Empty Trash', 'maxbuttons'); ?></button>
     79                                        <button type="button" class='button alignright' value='empty-trash' data-buttonaction='empty-trash' data-confirm="<?php _e('Permanently delete all buttons in trash. Are you sure?', 'maxbuttons') ?>"><?php _e('Empty Trash', 'maxbuttons'); ?></button>
    8080                                <?php endif; ?>
    8181                                <?php do_action("mb-display-pagination", $view->pageArgs, 'top'); ?>
  • maxbuttons/trunk/includes/maxbuttons-no-simplexml.php

    r2716443 r3586921  
    1111
    1212$admin = MB()->getClass('admin');
    13 $page_title = __("Packs","maxbuttons-pro");
     13$page_title = __("Packs","maxbuttons");
    1414
    1515$admin->get_header(array("title" => $page_title) );
  • maxbuttons/trunk/includes/maxbuttons-support.php

    r2171726 r3586921  
    4646  echo maxbuttons_system_label('MySQL Version:', $mysql_version, 8) ?>
    4747
    48 <?php echo maxbuttons_system_label('Web Server:', $_SERVER['SERVER_SOFTWARE'], 11) ?>
     48<?php
     49 $software = isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : '';
     50 echo maxbuttons_system_label('Web Server:', esc_html($software)  , 11)
     51 ?>
    4952
    5053<?php echo maxbuttons_system_label('WordPress URL:', get_bloginfo('wpurl'), 8) ?>
  • maxbuttons/trunk/index.php

    r1384110 r3586921  
     1<?php
    12// silence
  • maxbuttons/trunk/maxbuttons.php

    r3361572 r3586921  
    11<?php
    22/*
    3 Plugin Name: MaxButtons
     3Plugin Name: MaxButtons - Create buttons
    44Plugin URI: http://maxbuttons.com
    55Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
    6 Version: 9.8.5
     6Version: 9.8.6
    77Author: Max Foundry
    88Author URI: http://maxfoundry.com
    99Text Domain: maxbuttons
    1010Domain Path: /languages
     11License: GPL v2 or later
     12
    1113
    1214Copyright 2025 Max Foundry, LLC (http://maxfoundry.com)
    … …  
    1719        define("MAXBUTTONS_ROOT_FILE", __FILE__);
    1820if (! defined('MAXBUTTONS_VERSION_NUM'))
    19         define('MAXBUTTONS_VERSION_NUM', '9.8.5');
     21        define('MAXBUTTONS_VERSION_NUM', '9.8.6');
    2022
    21 define('MAXBUTTONS_RELEASE',"15 September 2025");
     23define('MAXBUTTONS_RELEASE',"26 June 2026");
    2224
    2325if (! function_exists('MaxButtons\maxbutton_double_load'))
  • maxbuttons/trunk/readme.txt

    r3361572 r3586921  
    33Tags: butotn creator, share button, css3 button generator, responsive buttons, css wordpress button
    44Requires at least: 5.0
    5 Tested up to: 6.8
     5Tested up to: 7.0
    66License: GPL v2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
    88Requires PHP: 7.0
    9 Stable tag: 9.8.5
     9Stable tag: 9.8.6
    1010
    1111Maxbuttons is the best and easiest button plugin for WordPress. Within minutes you can create beautiful buttons, share buttons and social icons.
    … …  
    279279== Changelog ==
    280280
     281= 9.8.6 =
     282
     283- Maintenance release
     284- Fix - Missing escape on view parameter in maxbutton list
     285- Compatible and tested with latest WordPress (7.0) and PHP (8.3)
     286
    281287= 9.8.5 =
    282288
Note: See TracChangeset for help on using the changeset viewer.