Plugin Directory

Changeset 680916


Ignore:
Timestamp:
03/13/2013 01:29:40 AM (13 years ago)
Author:
adrian3
Message:

Version 3.11 Version 3.11
Fixed a bug that affected anyone upgrading from versions 3.0 or 3.0.1 to 3.1 where your old font settings were not saved. If your settings are gone, all you have to do is select the same font in the same slot as before. The rest of your settings for that font (where it's used, custom css, etc) will still be there in many cases. In some cases you will not and you'll have to re-enter them. If they don't remember them, you can try to get them by visiting a cached version of your site on Google and copying the CSS the plugin provided in the source (view your webpage source to see it).

Location:
wp-google-fonts/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-google-fonts/trunk/google-fonts.php

    r680201 r680916  
    33Plugin Name: WP Google Fonts
    44Plugin URI: http://adrian3.com/projects/wordpress-plugins/wordpress-google-fonts-plugin/
    5 Version: v3.1
     5Version: v3.1.1
    66Description: The Wordpress Google Fonts Plugin makes it even easier to add and customize Google fonts on your site through Wordpress.
    77Author: Adrian Hanft, Aaron Brown
     
    175175                //wp_enqueue_script('google-font-admin',$this->thispluginurl . 'scripts/gf-scripts.js',array('jquery'));
    176176                //wp_enqueue_script('google-font-admin-ajax',$this->thispluginurl . 'scripts/gf-scripts-ajax.js',array('jquery'));
    177                 wp_enqueue_style('gf-admin-style',$this->thispluginurl . 'styles/gf-style.css');
     177                wp_enqueue_style('gf-admin-style',$this->thispluginurl . 'styles/gf-style.css', array(), '3.1.1');
    178178                //wp_localize_script( 'google-font-admin-ajax', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'gfvalue' => 1234 ) );
    179179            }
     
    941941                        }
    942942                    }else{
    943                         /*working with the old array, set new array to empty for this font */
    944                         $this->options['googlefont_selections'][$name] = array(
    945                                 'family' => null,
    946                                 'variants' => array(),
    947                                 'subsets' => array()
    948                             );
    949                        
    950                         /* clear old option */
    951                         $this->options[$option] = '';
     943                        /* skip it if it has already been converted */
     944                        if(!isset($this->options['googlefont_selections'][$name]['family']) || !$this->options['googlefont_selections'][$name]['family']){
     945                            /*working with the old array or empty array, set new array to empty for this font */
     946                            $this->options['googlefont_selections'][$name] = array(
     947                                    'family' => null,
     948                                    'variants' => array(),
     949                                    'subsets' => array()
     950                                );
     951                               
     952                            /* clear old option */
     953                            $this->options[$option] = '';
     954                        }
    952955                    }
    953956                }
  • wp-google-fonts/trunk/readme.txt

    r680201 r680916  
    1616
    1717== Changelog ==
     18Version 3.11
     19- Fixed a bug that affected anyone upgrading from versions 3.0 or 3.0.1 to 3.1 where your old font settings were not saved. If your settings are gone, all you have to do is select the same font in the same slot as before. The rest of your settings for that font (where it's used, custom css, etc) will still be there in many cases. In some cases you will not and you'll have to re-enter them. If they don't remember them, you can try to get them by visiting a cached version of your site on Google and copying the CSS the plugin provided in the source (view your webpage source to see it).
     20
    1821Version 3.1
    1922- Rewritten back end, this time using AJAX and smarter logic so that loading the settings page is much faster
Note: See TracChangeset for help on using the changeset viewer.