Duplicates WP125 Functionality for WordPress 4.3 and Beyond
Unfortunately, with WordPress 4.3, the long-lived success of Matt Harzewski’s WP125 came to an end. WP125 Reloaded attempts to revive the WP125 functionality for WP 4.3 and beyond.
Having created an extended version of this with additional features for a specific client, I had to update the WP125 for WordPress 4.3. I have tested this in a fresh 4.3 install on themes twentythirteen, twentyfourteen, and twentyfifteen. It has also been tested by others on at least 3 websites.
- Download the zip file, un-zip it and place the folder in your child theme’s /wp-content/plugins/ directory.
- If you are not using the old WP125, simply activate the plugin.
- If you are using the old WP125 plugin:
- If you want to keep your previous ad data: Deactivate wp125. Activate wp125R. This should retain all of your previous ad data. You may now open the plugins directory and delete the wp125 plugin. This will delete the files only. Your ad data will still be in the WordPress database and will be accessible by WP125 Reloaded.
- If you have no previous ad data you want to keep: You may uninstall wp125. This will remove all WP125 files and the MySQL table containing all of your ads. (Your ad images will still be in your Media library.)
There should be only one change in functionality so use this widget exactly as you would WP125, with one exception: The widget title is now set like other widgets, in the Appearance->Widget area, not in the WP125 settings area.
Code Changes from WP125
- The widget_class.php file was completely replaced to remove the old PHP 4.0 constructor code, deprecated in 4.3, and provide a widget class more compatible with the current WordPress Codex Widgets API post.
- Replaced all calls to wpdb::escape, which has been deprecated since version 3.6.
- Fixed code causing “undefined”-related notices.