You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
Right now, the Singleton pattern in Subtitles relies on PHP 5 >= 5.3.0. Specifically, get_called_class and new static (late static binding) are not compatible with PHP 5.2.4, which WordPress still supports. I need to 1) see if there's a better way to handle this design pattern that accounts for PHP 5.2.4 and 2) see if I even need it at all.
The text was updated successfully, but these errors were encountered:
The first three versions of Subtitles relied on at least PHP 5.3. Unfortunately, late static binding isn't available to PHP 5.2.4, which WordPress supports as a minimum requirement and which is currently used by over 42 percent of all WordPress installs. http://wordpress.org/about/stats/
This change adds the Singleton design pattern into Subtitles_Admin and removes any functions that are specific to PHP 5.3 only. See #8.
Right now, the Singleton pattern in Subtitles relies on PHP 5 >= 5.3.0. Specifically, get_called_class and
new static
(late static binding) are not compatible with PHP 5.2.4, which WordPress still supports. I need to 1) see if there's a better way to handle this design pattern that accounts for PHP 5.2.4 and 2) see if I even need it at all.The text was updated successfully, but these errors were encountered: