-
Notifications
You must be signed in to change notification settings - Fork 12
Migrating configurations from INI files
If you are a theme developer that is migrating an Infinity theme fork, or an Infinity child theme to be compatible with version 1.2 or higher, then yes.
If you edited the bundled INI configuration files, or added your own overriding INI files, you will need to convert only the specific options you changed or overrode to the new syntax. Don't worry, it's super easy.
Originally, INI files were chosen to make it easy for developers to add additional configurations and modify existing ones. Two things occurred that made INI files no longer a good choice for this:
-
Quite a few people complained that it wasn't possible to translate the strings in the INI files. We didn't think this would ever be an issue... but when developers started putting default string values for options which would appear on the front end, it became a real problem.
-
The WordPress theme-check plugin added the PHP functions which load and parse INI files to their black list of disallowed functions due to the fact that they open files directly from disk. This prevents any Infinity based themes from being accepted into the WordPress.org free theme directory.