Bug Fix: Page Expiration Robot Pro Obsolete Jquery UI 1.8.3

By Haktan Suren, PhD
In Blog
May 2nd, 2013
1 Comment
7031 Views

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">

About the Author

Haktan Suren, PhD
- Webguru, Programmer, Web developer, and Father :)

One Response to “Bug Fix: Page Expiration Robot Pro Obsolete Jquery UI 1.8.3”

  1. Anglea says:

    Awesome article.

Wrap your code in <code class="{language}"></code> tags to embed!

Leave a Reply

E-mail address is required for commenting. However, it won't be visible to other users.

Loading Facebook Comments ...
Loading Disqus Comments ...