Bug Fix: Page Expiration Robot Pro Obsolete Jquery UI 1.8.3
Recently I have discovered a bug in this great plugin. It simply uses obsolete version of jquery ui that makes some of the elements not functioned dependent on the new version. I would like to share my fix in case it helps anyone who is having the same problem.
Note to the author: This is not the way to enqueue your external javascript in WordPress. You can check the WordPress Codex page as a reference.
Replace
<script type="text/javascript" src="<?php echo $pluginpath; ?>js/javascripts/mColorPicker.js"></script> <!-- COG IT TEAM --> <script type="text/javascript" src="<?php echo $pluginpath; ?>js/jquery-ui-1.8.16.custom.min.js"></script> <script type="text/javascript" src="<?php echo $pluginpath; ?>js/jquery-ui-sliderAccess.js"></script> <script type="text/javascript" src="<?php echo $pluginpath; ?>js/jquery-ui-timepicker-addon.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo $pluginpath; ?>style/jquery-ui-1.css">
with
<script type="text/javascript" src="<?php echo $pluginpath; ?>js/javascripts/mColorPicker.js"></script> <!-- COG IT TEAM --> <script type="text/javascript" src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <script type="text/javascript" src="<?php echo $pluginpath; ?>js/jquery-ui-sliderAccess.js"></script> <script type="text/javascript" src="<?php echo $pluginpath; ?>js/jquery-ui-timepicker-addon.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo $pluginpath; ?>style/jquery-ui-1.css">
Awesome article.