Changeset 680916
- Timestamp:
- 03/13/2013 01:29:40 AM (13 years ago)
- Location:
- wp-google-fonts/trunk
- Files:
-
- 2 edited
-
google-fonts.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-google-fonts/trunk/google-fonts.php
r680201 r680916 3 3 Plugin Name: WP Google Fonts 4 4 Plugin URI: http://adrian3.com/projects/wordpress-plugins/wordpress-google-fonts-plugin/ 5 Version: v3.1 5 Version: v3.1.1 6 6 Description: The Wordpress Google Fonts Plugin makes it even easier to add and customize Google fonts on your site through Wordpress. 7 7 Author: Adrian Hanft, Aaron Brown … … 175 175 //wp_enqueue_script('google-font-admin',$this->thispluginurl . 'scripts/gf-scripts.js',array('jquery')); 176 176 //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'); 178 178 //wp_localize_script( 'google-font-admin-ajax', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'gfvalue' => 1234 ) ); 179 179 } … … 941 941 } 942 942 }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 } 952 955 } 953 956 } -
wp-google-fonts/trunk/readme.txt
r680201 r680916 16 16 17 17 == Changelog == 18 Version 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 18 21 Version 3.1 19 22 - 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.