PluginProbe
WP Ultimate Post Grid / 1.6
WP Ultimate Post Grid v1.6
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | vendor/vafpress/data/sources.php +0 -25 2.7.01.6 View file →
@@ -102,10 +102,8 @@
102 102 return array();
103 103
104 104 $fonts = file_get_contents(dirname(__FILE__) . '/gwf.json');
105 105 $fonts = json_decode($fonts);
106 - if( !property_exists($fonts, $face) )
107 - return null;
108 106 $weights = $fonts->{$face}->weights;
109 107
110 108 foreach ($weights as $weight)
111 109 {
@@ -123,36 +121,13 @@
123 121 return array();
124 122
125 123 $fonts = file_get_contents(dirname(__FILE__) . '/gwf.json');
126 124 $fonts = json_decode($fonts);
127 - if( !property_exists($fonts, $face) )
128 - return null;
129 125 $styles = $fonts->{$face}->styles;
130 126
131 127 foreach ($styles as $style)
132 128 {
133 129 $result[] = array('value' => $style, 'label' => $style);
134 - }
135 -
136 - return $result;
137 -}
138 -
139 -VP_Security::instance()->whitelist_function('vp_get_gwf_subset');
140 -
141 -function vp_get_gwf_subset($face)
142 -{
143 - if(empty($face))
144 - return array();
145 -
146 - $fonts = file_get_contents(dirname(__FILE__) . '/gwf.json');
147 - $fonts = json_decode($fonts);
148 - if( !property_exists($fonts, $face) )
149 - return null;
150 - $subsets = $fonts->{$face}->subsets;
151 -
152 - foreach ($subsets as $subset)
153 - {
154 - $result[] = array('value' => $subset, 'label' => $subset);
155 130 }
156 131
157 132 return $result;
158 133 }