Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garyjones/genesis-ignore-deprecated
Stops the Genesis Framework deprecated functions file from loading on every request, giving a small performance benefit
https://github.com/garyjones/genesis-ignore-deprecated
Last synced: about 1 month ago
JSON representation
Stops the Genesis Framework deprecated functions file from loading on every request, giving a small performance benefit
- Host: GitHub
- URL: https://github.com/garyjones/genesis-ignore-deprecated
- Owner: GaryJones
- License: gpl-2.0
- Created: 2013-07-29T22:37:51.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-19T14:01:25.000Z (about 8 years ago)
- Last Synced: 2024-04-23T08:07:48.431Z (7 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Genesis Ignore Deprecated
Stops the Genesis deprecated functions file from loading on every request, giving a small performance benefit
## Description
Genesis Framework 2.0 includes a new boolean value `genesis_load_deprecated` filter just before the loading of the file that includes all of the old deprecated functions.
Deprecated functions are ones which shoudn't be used for some reason, the most common being that they may be removed in a future version of the software. WordPress has apparently never deleted any function and Genesis has only deleted a few that were not being used.
In the case of Genesis Framework 2.0, that stands at 72 deprecated functions out of a total of 355.
This filter means you can turn off loading of the deprecated functions, if you know your theme and plugins are not using any of them, for a small performance benefit. A quick un-scientific test suggested about 0.13MB of memory usage was saved. This is likely less than 1% of the total memory usage for a front-end or admin request (depends on other plugins and variables), but it's still a saving.
## Installation
### Upload
1. Download the latest tagged archive (choose the "zip" option).
2. Go to the __Plugins -> Add New__ screen and click the __Upload__ tab.
3. Upload the zipped archive directly.
4. Go to the Plugins screen and click __Activate__.### Manual
1. Download the latest tagged archive (choose the "zip" option).
2. Unzip the archive.
3. Copy the folder to your `/wp-content/plugins/` directory.
4. Go to the Plugins screen and click __Activate__.Check out the Codex for more information about [installing plugins manually](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
### Git
Using git, browse to your `/wp-content/plugins/` directory and clone this repository:
`git clone [email protected]:GaryJones/genesis-ignore-deprecated.git genesis-ignore-deprecated`
Then go to your Plugins screen and click __Activate__.
## Credits
Built by [Gary Jones](https://twitter.com/GaryJ)
Copyright 2013 [Gamajo Tech](http://gamajo.com/)