[wp-trac] [WordPress Trac] #43898: Google Font Builder (code written)

WordPress Trac noreply at wordpress.org
Sat May 12 10:15:21 UTC 2018


#43898: Google Font Builder (code written)
-------------------------------------+-------------------------
 Reporter:  alicewondermiscreations  |       Owner:  (none)
     Type:  feature request          |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Themes                   |     Version:
 Severity:  normal                   |  Resolution:  maybelater
 Keywords:                           |     Focuses:
-------------------------------------+-------------------------

Comment (by alicewondermiscreations):

 It should be noted that if WordPress had a PSR-4 autoloader and a means of
 installing class files, this would not need to be in core. It took me
 under ten minutes to write an autoloader that works well (and also loads
 PEAR classes), but the feature request in Core is over two years old and
 looks overly complicated, and doesn't look like it will be in next version
 either.

 I suppose trying to continue to support ancient versions of PHP is
 probably why.

 With a class autoloader, then the class could be used when available and
 not used when not available, and as long as the autoloader was registered
 before plugins and themes, any plugin or theme would have access to the
 classes.

 That's probably the right solution but it just seems that an autoloader is
 not going to happen anytime soon.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43898#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list