-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.txt
934 lines (685 loc) · 26.4 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
=== WP FOFT Loader ===
Contributors: seezee, freemius
Donate link: https://messengerwebdesign.com/donate
Author URI: https://github.com/seezee
Plugin URI: https://wordpress.org/plugins/wp-foft-loader/
Tags: font ,web font, performance, speed
Requires at least: 4.6.0
Tested up to: 6.6.2
Requires PHP: 7.0
Stable tag: 2.1.36
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Optimize and speed up web font loading and improve UX by minimizing Flash of Invisible Text, Flash of Unstyled Text, and DOM Reflow.
== Description ==
This plugin implements and automates Zach Leatherman’s [“Critical FOFT with preload, with a polyfill fallback emulating font-display: optional”](https://github.com/zachleat/web-font-loading-recipes#the-compromise-critical-foft-with-preload-with-a-polyfill-fallback-emulating-font-display-optional) to optimize and speed up web font loading and improve UX by minimizing Flash of Invisible Text, Flash of Unstyled Text, and DOM Reflow.
== Acknowledgement ==
This plugin is based on [Hugh Lashbrooke’s Starter Plugin](https://github.com/hlashbrooke/WordPress-Plugin-Template), a robust and GPL-licensed code template for creating a standards-compliant WordPress plugin.
== PRO only features ==
* Support for 7 additional font-weights
* Small-caps support
* Finer-grained control of default CSS
* Default options reset
* Warn user of unsaved changes when navigating plugin tabs
== Installation ==
### USING THE WordPress DASHBOARD
1. Navigate to “Add New” in the plugins dashboard
2. Search for “WP FOFT Loader”
3. Click “Install Now”
4. Activate the plugin on the Plugin dashboard
5. Go to Settings -> WP FOFT Loader, upload your fonts, and configure the settings.
### UPLOADING IN WordPress DASHBOARD
1. Click the download button on this and save “wp-foft-loader.zip” to your computer
2. Navigate to “Add New” in the plugins dashboard
3. Navigate to the “Upload” area
4. Select “wp-foft-loader.zip” from your computer
5. Click “Install Now”
6. Activate the plugin in the Plugin dashboard
7. Go to Settings -> WP FOFT Loader, upload your fonts, and configure the settings.
### USING FTP
1. Download the WP FOFT Loader ZIP file
2. Extract the WP FOFT Loader ZIP file to your computer
3. Upload the “wp-foft-loader” directory to the `/wp-content/plugins/` directory
4. Activate the plugin in the Plugin dashboard
5. Go to Settings -> WP FOFT Loader, upload your fonts, and configure the settings.
### UPGRADING TO WP FOFT LOADER PRO
1. Go to Settings -> WP FOFT Loader -> Upgrade
2. Fill out the payment form and submit
3. Your license key will automatically be entered
### DOWNLOAD FROM GITHUB
1. Download the plugin via [https://github.com/seezee/WP-FOFT-Loader](https://github.com/seezee/WP-FOFT-Loader)
2. Follow the directions for using <abbr>FTP</abbr>
== Configuration ==
= Video Tutorials =
[Episode 1. Intro and Background](https://youtu.be/0C0lDJ3T12o)
[Episode 2. Font Squirrel Generator (WOFF & WOFF2)](https://youtu.be/-StFYcOSDCU)
= Generating and Uploading the Font Files =
Upload two files for each web font: a WOFF file and a WOFF2 file. We recommend you use [Font Squirrel’s Webfont Generator](https://www.fontsquirrel.com/tools/webfont-generator) to generate the files. Mandatory Font Squirrel settings are:
Select “Expert”
Font Formats: “WOFF”
“WOFF2”
Advanced Options: “Font Name Suffix” = -webfont
For detailed recommended settings, see the plugin Upload options screen.
**Filenames must follow the proper naming convention:** `$family`-`$variant`-webfont.`$filetype`.
**$family**
: The font family base name without style. Case-insensitive. May contain letters, numerals, and underscores but no hyphens or spaces.
**$variant**
: The font style. Can be weight, style, or a combination of both. *Case-sensitive*.
**-webfont**
: Mandatory suffix. Append to $variant.
**$filetype**
: The file type, i.e., “woff” or “woff2”.
**Example**: for the bold weight italic style of Times New Roman, rename the files to timesnewroman-boldItalic-webfont.woff and timesnewroman-boldItalic-webfont.woff2.
Allowed weights and styles and their CSS mappings are:
- regular | normal (maps to 400)
- italic (maps to 400)
- boldItalic (maps to 700)
__For small-caps support and extended font-weight support, please upgrade to__ [__WP FOFT Loader PRO__](https://checkout.freemius.com/mode/dialog/plugin/4955/plan/7984/licenses/1/).
This plugin supports 1 – 4 font families. For example, you might have a display font for headings, a serif-font for body text, a sans-serif font for UI elements, such as navigation labels, and a monospaced font for tabular data and code examples.
= Subset =
Upload up to 4 small, subsetted fonts. For each font, upload a WOFF & WOFF2 file (for a total of up to 8 files). Each font will act as a placeholder until the full fonts load.
**Filenames must follow the proper naming convention:** `$family`-optimized.`$filetype`.
**$family**
: The font family base name without style. Case-insensitive. May contain letters, numerals, and underscores but no hyphens or spaces. Each $family base name should match the name used for the matching font uploaded on the previous upload screen.
**-optimized**
: Mandatory suffix. Append to $family.
**$filetype**
: The file type, i.e., “woff” or “woff2”.
**Example**: If you uploaded timesnewroman-regular-webfont.woff and timesnewroman-regular-webfont.woff2 as your body font on the previous screen, name the subsetted versions timesnewroman-optimized.woff and timesnewroman-optimized.woff2 respectively.
To subset and encode your fonts, we recommend you use Font Squirrel’s Webfont Generator. Mandatory Font Squirrel settings are:
Select “Expert”
Font Formats: “WOFF”
“WOFF2”
Fix Missing Glyphs: None
Subsetting: “Custom Subsetting” with the Unicode Ranges 0065-0041-005A,0061-007A
Leave everything else unchecked
OpenType Features: None
OpenType Flattening: None
CSS: Leave unchecked
Advanced Options: “Font Name Suffix” = -optimized
For detailed recommended settings, see the plugin Subset options screen.
= CSS =
@import rules are automatically handled by this plugin. You may manually inline your font-related CSS in the document `<head>` here. Place rules pertaining only to the font-family, font-weight, font-style, and font-variation properties here.
#### Plugin CSS
The plugin loads some CSS by default. You may disable it from this screen.
#### Font Display
The plugin uses `font-display: swap` by default. You can override the [`font-display`](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display) property here.
#### CSS Stage 1
Declarations placed in this field will load subsetted fonts as placeholders while the full fonts load.
* Use only the family name followed by Subset (case-sensitive)
* Family names must match the names you input on the “Subset” screen.
* All declarations must start with the fonts-stage-1 class
See the Documentation screen to view the Stage 1 CSS that this plugin loads by default.
Incorrect:
.nav-primary { // Missing class: .fonts-stage-1
font-family: latoSubset, sans-serif;
}
.fonts-stage-1 #footer-secondary {
font-family: lato, san-serif; // Missing “Subset” suffix
}
.fonts-stage-1 div.callout {
font-family: latoSubset, san-serif;
font-size: 1rem; // “font-family,” “font-weight,” “font-style,”
// and “font-variant” rules only
}
.fonts-stage-1 div.callout {
font-family: latosubset, san-serif; // “Subset” suffix is case-sensitive
}
Correct:
.fonts-stage-1 .nav-primary {
font-family: latoSubset, sans-serif;
}
#### CSS Stage 2
* Use only the family name
* Family names must match the file names for the fonts you uploaded on the “Upload” screen.
* Omit weights and styles from the font name
* All declarations must start with the fonts-stage-2 class
* For best performance, please minify your CSS before pasting it into the form.
See the Documentation screen to view the Stage 2 CSS that this plugin loads by default.
Incorrect:
tbody { // Missing class: .fonts-stage-2
font-family: lato, Corbel, "Lucida Grande", sans-serif;
font-weight: 400;
font-style: normal;
}
.fonts-stage-2 span.bolder {
font-family: lato-bold, Corbel, "Lucida Grande", sans-serif; // Don’t include style in font name.
// Better yet, omit declaration altogether.
font-weight: 700;
}
.fonts-stage-2 div.callout {
font-family: lato-regular, Corbel, "Lucida Grande", san-serif;
font-size: 1rem; // “font-family,” “font-weight,” “font-style,”
// and “font-variant” rules only
}
Correct:
.fonts-stage-2 div.callout {
font-family: lato, Corbel, "Lucida Grande", sans-serif;
font-weight: 400;
font-style: normal;
}
.fonts-stage-2 div.callout {
// No need to redeclare the font-family — all weights map to a single family name
font-weight: 700; // This will use the lato-bold font
}
For best performance, please [minify your CSS](https://cssminifier.com/) before pasting it into the form.
= Font Stacks =
Change the default font fallbacks in case your custom fonts don’t load. Don’t include the names of your default custom fonts here.
= Further Documentation =
See the Documentation screen to view the CSS this plugin loads by default and to view video tutorials.
== Screenshots ==
1. Uploads screen: upload your custom web fonts here
2. Optimize screen: tells fontobserver.js which fonts to load for stage 1
3. Base64 screen: inlines Base64 data URI for subsetted stage 1 fonts
4. CSS screen: all font-related CSS goes here so it can be inlined.
5. Font Stacks screen: sets the default font stacks
6. Documentation (1): Information about the CSS that the plugin loads by default
7. Documentation (2): Video tutorials
== Frequently Asked Questions ==
### What is the plugin for?
This plugin implements and automates [Zach Leatherman’s Critical FOFT with preload, with a polyfill fallback emulating font-display: optional](https://github.com/zachleat/web-font-loading-recipes#the-compromise-critical-foft-with-preload-with-a-polyfill-fallback-emulating-font-display-optional). According to [a tweet from Mr. Leatherman](https://twitter.com/zachleat/status/1187810081175474176), this technique is the best compromise between font speed loading and a positive user experience.
### How may I help improve this plugin?
I’d love to hear your feedback. In particular, tell me about your experience configuring the plugin. Are the instructions clear? Do I need to reword them? Did I leave out something crucial? You get the drift.
### I’d like to do more
I’m looking for collaborators to improve the code. If you are an experienced WordPress programmer, hit me up!
### I’d like to do even more
Feel free to send a donation to my [Paypal account](https://paypal.me/messengerwebdesign?locale.x=en_US). Or buy me a beer if you’re in town.
== Translations ==
* English: Default language, always included
Would you like to help translate WP FOFT Loader into your own language? [You can do that here!](https://translate.wordpress.org/projects/wp-plugins/wp-foft-loader)
== Dependencies ==
This plugin includes these third-party libraries in its package.
* [HTMLPurifier](https://github.com/ezyang/htmlpurifier)
* [CSSTidy](https://github.com/Cerdic/CSSTidy)
* [Fontawesome](https://fontawesome.com)
== Changelog ==
= 2.1.36 =
* 2024-10-23
* Tested up to WordPress 6.6.2
* Update Freemius SDK
= 2.1.35 =
* 2024-08-29
* Tested up to WordPress 6.6.1
= 2.1.34 =
* 2024-05-07
* Tested up to WordPress 6.5.3
= 2.1.33 =
* 2024-05-02
* Tested up to WordPress 6.5.2
* BUGFIX: Cast variables to integers to avoid precision error in PHP 8.3
* Update Freemius SDK
= 2.1.32 =
* 2023-12-21
* Tested up to WordPress 6.4.2
= 2.1.31 =
* 2023-11-20
* Tested up to WordPress 6.4.11
= 2.1.30 =
* 2023-08-28
* Tested up to WordPress 6.3
* Freemius SDK update to 2.5.11
= 2.1.29 =
* 2023-07-05
* Freemius SDK update to 2.5.10
= 2.1.28 =
* 2023-04-21
* Tested up to WordPress 6.2
= 2.1.27 =
* 2022-11-23
* Tested up to WordPress 6.1.1
= 2.1.26 =
* 2022-07-24
* Tested up to WordPress 6.0.1
= 2.1.25 =
* 2022-05-27
* Tested up to WordPress 6.0.0
= 2.1.24 =
* 2022-05-17
* Added type attribute to style tag
= 2.1.23 =
* 2022-04-05
* Tested up to WordPres 5.9.3
= 2.1.22 =
* 2022-03-11
* Tested up to WordPres 5.9.2
= 2.1.21 =
* 2022-02-24
* Security Fix
= 2.1.20 =
* 2022-02-22
* Tested up to WordPress 5.9.1
= 2.1.19 =
* 2022-02-10
* Updated to Fontawesome 6.0.0
* Don’t add SRI hash to fallback scripts if external scripts don’t load
= 2.1.18 =
* 2022-01-26
* Tested up to WordPress 5.9
= 2.1.17 =
* 2022-01-20
* Update contact & support URL on plugins page for PRO users
= 2.1.16 =
* 2022-01-10
* Tested up to WordPress 5.8.3
* Check for FREE vs. PRO and serve appropriate support URL
= 2.1.16 =
* 2021-11-11
* Tested up to WordPress 5.8.2
= 2.1.16 =
* 2021-09-09
* Tested up to WordPress 5.8.1
= 2.1.13 =
* 2021-07-23
* Tested up to WordPress 5.8
* Minor changes to README
* Update documentation in the settings screen
= 2.1.12 =
* 2021-05-20
* Added short description to README
* Updated plugin tags
* Other README changes
* Updated header in main plugin file
= 2.1.11 =
* 2021-05-13
* Tested up to WordPress 5.7.2
= 2.1.10 =
* 2021-04-22
* Tested up to WordPress 5.7.1
* BUGFIX: Fixed incorrect classname in admin API & unminified settings.js
* Fixed premium code not being removed from free plugin
* Generated new .pot file
= 2.1.9 =
* 2021-03-12
* Tested up to WordPress 5.7
= 2.1.8 =
* 2021-01-19
* BUGFIX: Fix undefined variable $uploadmessage
* Update to Fontawesome 5.15.2
= 2.1.7 =
* 2021-01-18
* BUGFIX: Fix checklink() naming collision
= 2.1.6 =
* 2021-01-18
* Provide fallback for external Fontawesome script per WordPress standards
= 2.1.5 =
* 2021-01-08
* Tested up to 5.6
* BUGFIX: Restored missing upload button on plugin main page
* Reformatted and updated code to meet WordPress coding standards
= 2.1.4 =
* 2020-10-08
* Tested up to 5.5.3
* Update FREEMIUS SDK to v.2.4.1
* Use Dashicons coffee glyph instead of FontAwesome coffee glyph in plugin meta
* Corrected and improved usage examples
= 2.1.3 =
* 2020-09-30
* BUGFIX: prior release contained an undefined variable and a typo'd function name, causing a fatal error in the FREE plugin
= 2.1.2 =
* 2020-09-30
* SECURITY FIX: escape or sanitize all translatable strings
* (PRO only) Remove deprecated custom message from AreYouSure.js
* Minor copy improvements
* Other minor fixes
= 2.1.1 =
* 2020-09-27
* BUGFIX: (FREE version only) Fix missing variables in class-wp-foft-loader-settings.php
= 2.1.0 =
* 2020-09-27
* BUGFIX: Restore ajax for form submissions
* BUGFIX: Restore missing form reset button
* Refactor i18n
= 2.0.37 =
* 2020-09-02
* BUGFIX: Fix missing offset in class-wp-foft-loader-settings.php
* Remove unused JS files from FREE version
* Tested up to v5.5.1
= 2.0.36 =
* 2020-06-17
* BUGFIX: Fix missing Fontawesome glyphs on admin settings page
= 2.0.35 =
* 2020-06-16
* Tested up to 5.4.2
= 2.0.34 =
* 2020-04-30
* Tested up to 5.4.1
= 2.0.33 =
* 2020-04-21
* Update Fontawesome library
* Correct typo in LICENSE
= 2.0.32 =
* 2020-04-01
* Tested up to WordPress 5.4
* Remove surrounding underscores in plugin constants per WordPress coding standards
= 2.0.31 =
* 2020-01-01
* BUGFIX: change assigment operators to comparisons in class-wp-foft-loader.php & class-wp-foft-loader-ratings.php
= 2.0.30 =
* 2019-12-20
* Add option to keep database options on uninstall in case of upgrading to PRO version
= 2.0.29 =
* 2019-12-18
* MINOR BUGFIX: Fix missing coffee cup icon in plugin meta
= 2.0.28 =
* 2019-12-09
* BUGFIX: Fix CORS policy error
* Add translation strings for plugin meta
= 2.0.27 =
* 2019-12-08
* BUGFIX: Fix reset form not displaying
* BUGFIX: Check for NULL tab before displaying reset form
* Use define() instead of const to define globals
* Check if globals are already set & show error message if they are
* Refactor Freemius checks: concatenate instead of nesting, use if … else instead of additional if statement
= 2.0.26 =
* 2019-12-06
* BUGFIX: Fix AJAX not firing on save
* Fixed missing space in success & error admin messages on save
* Renamed Font Awesome scripts & modified classname to avoid collisions with other themes & plugins
* Load main Font Awesome script from CDN
= 2.0.25 =
* 2019-12-03
* Improvements to configuration instructions on upload & subset screens
= 2.0.24 =
* 2019-12-03
* Include unminified scripts in assets to aid debugging
= 2.0.23 =
* 2019-12-02
* BUGFIX: fix broken path for fallback.min.js
= 2.0.22 =
* 2019-12-02
* BUGFIX: fix improper Freemius filter in wp-foft-loader.php
* BUGFIX: fix path error that prevents one of the optimized fonts from loading
* Add font-display property to subsetted font declaration
= 2.0.21 =
* 2019-11-29
* BUGFIX: Fix update success notice showing if not updated
= 2.0.20 =
* 2019-11-29
* Fixed missing spaces to upgrade success notice v2.0.17 – v2.0.19
= 2.0.19 =
* 2019-11-29
* BUGFIX: moved wpfl_activation() below wpfl_check_version() so they fire in correct order
* Added get_option() check for FALSE in wpfl_check_version()
= 2.0.19 =
* 2019-11-29
* BUGFIX: corrected version check error
= 2.0.17 =
* 2019-11-29
* Add aria-label to meta links
* Improved URL sanitization with esc_url()
* Some internationalization fixes
* Regenerate .POT file
* Tweaks to ratings microcopy
= 2.0.16 =
* 2019-11-29
* Change settings page slug to wp-foft-loader
* Add class-wp-foft-loader-ratings.php
* Additional capability & pagenow() checks
= 2.0.15 =
* 2019-11-25
* BUGFIX: proper check for whether options are set in class-wp-foft-loader-jsvars.php
* BUGFIX: prevent loading of inline Font Face Observer JS until user uploads at least one font & sets at least one option on main screen
= 2.0.14 =
* 2019-11-25
* BUGFIX: fix undefined variable $promises in class-wp-foft-loader-head.php
= 2.0.13 =
* 2019-11-25
* BUGFIX: change default options from empty to NULL to avoid missing font in Javascript font preload
* Minor admin CSS changes
* Minor revision to descriptive text on settings page
* POT file updated
= 2.0.12 =
* 2019-11-25
* Fix missing fontawesome glyphs in plugins settings page main heading
= 2.0.11 =
* 2019-11-24
* BUGFIX: Fix mixed content error in file upload path
= 2.0.10 =
* 2019-11-24
* BUGFIX: use array_pad() to finally fix undefined offset in class-wp-foft-loader-settings.php
= 2.0.9 =
* 2019-11-24
* BUGFIX: fix more undefined offsets
* BUGFIX: change "$" to "jQuery" in "ays-beforeunload-shim.min.js"
= 2.0.8 =
* 2019-11-23
* Sanitize variables jsObs & jsLoad with wp_json_encode()
* BUGFIX: replace all instances of undefined variable $version with constant WPFL_VERSION
* BUGFIX: fix more undefined variables & offsets
* BUGFIX: fix constant referring to wrong directory path
= 2.0.7 =
* 2019-11-22
* BUGFIXES: Check for existence of variables and arrays & fix undefined offsets
= 2.0.6 =
* 2019-11-19
* Move HTMLPurifier & CSSTidy to vendor directory
* Fix "Buy the Developer a Coffee" link in plugin meta
* Add author & plugin URIs to readme
= 2.0.5 =
* 2019-11-15
* Tested up to WordPress 5.3
= 2.0.4 =
* 2019-11-12
* BUGFIX: fixed improper Freemius "if" statements
* BUGFIX: plugin no longer fails to uninstall
* BUGFIX: plugin now deletes options properly on uninstall
* Added new Admin messages for new installs & updates
* Added WPFL_BASE & WPFL_VERSION constants & replaced limited-scope variables
* New PRO feature: finer-grained control over default CSS output
* New PRO feature: ability to restore plugin defaults
= 2.0.3 =
* 2019-11-07
* Improved support for small-caps in PRO version
* Warn on change without saving PRO version only
* Added admin messages after plugin activation or update
* Auto-disactivate FREE plugin when activating PRO version
* Fix README typos & formatting
* Remove out-of-date README info (translators)
* Add version check in wp_options table
= 2.0.2 =
* 2019-11-05
* Moved support for extended font weights and small-caps to PRO plugin
* Integrated FREEMIUS code for PRO plugin
* Eliminated redundant output if user uploads fewer than 4 fonts
* Changed font declarations to auto-populated select
* Moved font declarations to plugin settings tab
* Use template literals in class-wp-foft-loader-jsvars.php
* Ajaxify admin messages
* Prepend random exclamations to admin messages
* Update HTMLPurifier to v4.12.0
* Update CSSTidy to v1.7.1
* Removed out-of-date translation files
= 2.0.1 =
* 2019-10-30
* **IMPORTANT** Versions >= 2.0.0 and up introduce breaking changes from versions <= 1.0.47
* Users upgrading from v1.x.x will need to visit the “Subset” screen and configure subsetted fonts
* Fixed error in class-wp-foft-loader-jsvars
= 2.0.0 =
* 2019-10-30
* **IMPORTANT** This is a major update with breaking changes
* Users upgrading from v1.x.x will need to visit the “Subset” screen and configure subsetted fonts
* Move from “Critical FOFT with Data URI” to “Critical FOFT with preload, with a polyfill fallback emulating font-display”
= 1.0.47 =
* 2019-10-16
* Tested up to WordPress 1.0.46
= 1.0.46 =
* 2019-09-26
* Fix undefined offset `0`
* Fix undefined index `placeholder`
= 1.0.45 =
* 2019-09-26
* Remove undefined variable $parent from class mimes
* Add variable $plugin to class meta
= 1.0.44 =
* 2019-09-25
* Add links to plugin meta
= 1.0.43 =
* 2019-09-25
* Update plugin description in main file
= 1.0.42 =
* 2019-09-25
* Add `samp` tag to default CSS
= 1.0.41 =
* 2019-09-25
* Add `kbd` tag to default CSS
= 1.0.40 =
* 2019-09-12
* Remove unused dev code from HTMLPurifier & CSSTidy
= 1.0.39 =
* 2019-09-08
* Security update: Fix XSS double-quoted attribute flaw in class-wp-foft-loader-settings.php
= 1.0.38 =
* 2019-09-05
* Remove admin script enqueuing since we’re not using it and it throws a 404
= 1.0.37 =
* 2012-08-19
* Added package.json
* Minor updates to readme.txt & readme.md
= 1.0.36 =
* 2019-08.13
* Fixed uploader bug. WOFF & WOFF2 files now permitted & upload to correct folder
= 1.0.35 =
* 2019-07-31
* Update CSSTidy library to v1.7.0
= 1.0.34 =
* 2019-07-29
* Modifed HTMLTidy config in class-wp-foft-loader-head.php
= 1.0.33 =
* 2019-07-07
* Updated .pot file
* Replaced incorrect Dutch .po & .mo
= 1.0.32 =
* 2019-07-05
* BUGFIX in class-wp-foft-loader-settings.php
* Better installation instructions
= 1.0.31 =
* 2019-07-04
* More sanitization
* Pass PHPCS/WPCS checks
* Remove unused metabox code
= 1.0.30 =
* 2019-06-27
* Fixed incorrect Dutch .po filenames
= 1.0.29 =
* 2019-06-28
* More sanitizing
* Changes to README content
* Corrected some errors in Dutch translation
= 1.0.28 =
* 2019-06-27
* Create correct icon sizes for WP Plugin Repository
* Fix readme.txt formatting
* Changes to README content
= 1.0.27 =
* 2019-06-27
* Code formatting now meets WordPress standards
* Strict type checking on comparisons
* Use Yoda case where appropriate
* Convert unnecessary concatenations to single strings
* Added Dutch translation
= 1.0.26 =
* 2019-06-25
* Minor bugfix (fixed typo in code)
= 1.0.25 =
* 2019-06-21
* Additional NULL value checks before outputting styles
* Other code improvements
* Numerous documentation improvements
* Added first two video tutorials (more to come)
= 1.0.24 =
* 2019-06-19
* BUGFIXes: fixed typos in output CSS
* Separated Stage 1 and Stage 2 CSS in CSS screen
* Added Documentation screen
* Major edits to body copy
* Removed internationalization where it’s not needed
= 1.0.23 =
* 2019-06-18
* Use HTMLPurifier & CSSTidy to sanitize user input custom CSS
= 1.0.22 =
* 2019-06-17
* Improve introductory microcopy on Settings page
* BUGFIX: fixed incorrect textdomain
= 1.0.21 =
* 2019-06-17
* Update custom CSS output in /includes/class-wp-foft-loader-head.php (convert `<` back to `>` child selector after sanitizing)
* Update default CSS output in /includes/class-wp-foft-loader-head.php (don’t escape `>`)
= 1.0.20 =
* 2019-06-16
* Add font-display option to CSS Settings screen
* Update .pot, .po, & .mo language files
= 1.0.19 =
* 2019-06-16
* Improve file-naming convention documentation
= 1.0.18 =
* 2019-06-16
* Improve file-naming convention documentation
* Use definition list for Font Squirrel suggested settings
* Open media uploader in Upload view instead of Library view
* Trim unused code from class-wp-foft-loader-admin-api.php
* Update .pot, .po, & .mo language files
= 1.0.17 =
* 2019-06-15
* Reverted recommended Em Square Value setting
= 1.0.16 =
* 2019-06-15
* Corrected font weight mapping in README & upload instructions
* Updated recommended Font Squirrel Generator settings
= 1.0.15 =
* 2019-06-14
* Added missing change to changelog & re-assigned version numbers
= 1.0.14 =
* 2019-06-14
* Added plugin banner & icon
= 1.0.13 =
* 2019-06-14
* Corrected GPL License info
= 1.0.12 =
* 2019-06-14
* Corrected version numbering error
* Fixed typo in README description
= 1.0.11 =
* 2019-06-14
* Corrected license URI
= 1.0.10 =
* 2019-06-14
* Upgraded GNU Public License from v2 to v3
= 1.0.9 =
* 2019-06-14
* Corrected Contributers username
= 1.0.8 =
* 2019-06-14
* Add Requires PHP to README
= 1.0.7 =
* 2019-06-14
* Add screenshots
= 1.0.6 =
* 2019-06-14
* Create readme.txt
* Add comments to readme.md
= 1.0.5 =
* 2019-06-14
* Upgrade license from GNU GPL 2 to GNU GPL 3
* Fix Undefined index: placeholder in class-wp-foft-loader-admin-api.php
* Add acknowledgement to README
= 1.0.4 =
* 2019-06-13
* README formatting fix
= 1.0.3 =
* 2019-06-13
* Further README formatting improvements
= 1.0.2 =
* 2019-06-13
* Fixed README formatting & added Pros & Cons to FAQ
= 1.0.1 =
* 2019-06-13
* Removed trailing comma if font stack is not set
= 1.0 =
* 2019-06-13
* Initial release
== Upgrade Notice ==
= 2.1.36 =
* 2024-10-23
* Tested up to WordPress 6.6.2
* Update Freemius SDK