Title: Please recode deprecated jQuery code
Last modified: March 8, 2022

---

# Please recode deprecated jQuery code

 *  [megamurmulis](https://wordpress.org/support/users/megamurmulis/)
 * (@megamurmulis)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/please-recode-deprecated-jquery-code/)
 * Currently plugin still uses shorthands and old code that requires jquery-migrate
   plugin. Changing this manually after every plugin update is too time-consuming..
 *     ```
       ### blog-designer v3.0.7
       =======================================
       ### FILE: /blog-designer/admin/js/admin_script.js
       Line 1:    jQuery('document').ready(function () {
       Line 587:  jQuery(document).ready(function () {
       Line 1867: jQuery('document').ready(function () {
       #Change to:	jQuery(function () {
       -----------------------------
       Line 519:  jQuery(window).load(function () {
       #Change to:	.on('load', function () {
       -----------------------------
       Line 49:   btnUp.click(function () {
       Line 60:   btnDown.click(function () {
       Line 473:  jQuery('.bd-form-class .bdp-restore-default').click(function () {
       Line 525:  bd_plugin_admin.click(function (event) {
       Line 535:  jQuery('.sol_deactivation_reasons').click(function () {
       Line 538:  jQuery('#sbtDeactivationFormClosebd').click(function (event) {
       Line 572:  jQuery('.bd-form-class .bd-setting-handle > li').click(function (event) {
       Line 600:  jQuery("#bd-submit-button").click(function () {
       Line 604:  jQuery("#bd-submit-ticker-button").click(function () {
       Line 865:  jQuery('.bd_template_tab li a').click(function (e) {
       Line 1911: jQuery(document).click('.clickDisable', function (e) {
       #Change to ".on":
       	.on('click', function () {
       	.on('click', function (e) {
       	.on('click', function (event) {
       	.on('click', '.clickDisable', function (e) {
       -----------------------------
       Line 25:  jQuery(".range-slider__value").change(function () {
       Line 147: jQuery("input[name='template_alternativebackground']").change(function () {
       Line 165: jQuery("input[name='social_share']").change(function () {
       Line 406: jQuery("input[name='rss_use_excerpt']").change(function () {
       Line 436: jQuery("input[name='readmore_on']").change(function () {
       Line 613: jQuery('#blog_page_display').change(function () {
       Line 628: jQuery("select[name='pagination_type']").change(function () {
       Line 900: jQuery("input[name='display_slider_controls']").change(function () {
       #Change to ".on":	.on('change', function () {
       -----------------------------
       Line 608: jQuery(".bd-settings-wrappers .postbox table tr td:first-child").hover(function () {
       #Change to ".on":	.on('mouseenter mouseleave', function() {
       -----------------------------
       Line 945: jQuery('#bd-template-search').keyup(function () {
       #Change to ".on":	.on('keyup', function() {
       -----------------------------
       Line 477: jQuery('form.bd-form-class')[0].submit();
       #Change to ".trigger":	.trigger('submit');
       =======================================
       ###FILE: /blog-designer/public/js/designer.js
       Line 1:   jQuery(document).ready(function ($) {
       Line 191: jQuery(document).ready(function() {
       Line 207: jQuery(document).ready(function() {
       #Change to:	jQuery(function ($) {
       -----------------------------
       Line 52:  jQuery(".bdp-load-more-btn").click(function () {
       #Change to ".on":	.on('click', function () {
       -----------------------------
       Line 60: jQuery(window).resize(function () {
       #Change to ".on":	.on('resize', function () {
       =======================================
       ###FILE: /blog-designer/includes/promo-notice.php
       Line 70: jQuery(document).ready( function() {
       #Change to:	jQuery(function() {
       -----------------------------
       Line 70: $("#blog_designer_promo .blog_designer_promo-close").click(function(){
       #Change to ".on":	.on("click", function () {
       =======================================
       ###FILE: /blog-designer/includes/promo_notice.php
       Line 61: jQuery(document).ready( function() {
       #Change to:	jQuery(function() {
       -----------------------------
       Line 63: $("#blog_designer_promo .blog_designer_promo-close").click(function(){
       #Change to ".on":	.on("click", function () {
       =======================================
       ###FILE: /blog-designer/public/class-blog-designer-lite-public.php
       Line 289: jQuery(document).ready(function () {
       #Change to:	jQuery(function() {
       =======================================
       ###FILE: /blog-designer/public/class-blog-designer-scroll-widget.php
       Line 195: jQuery(document).ready(function(e) {
       #Change to:	jQuery(function(e) {
       =======================================
       ```
   

The topic ‘Please recode deprecated jQuery code’ is closed to new replies.

 * ![](https://ps.w.org/blog-designer/assets/icon-256x256.png?rev=2053820)
 * [Blog Designer](https://wordpress.org/plugins/blog-designer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blog-designer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blog-designer/)
 * [Active Topics](https://wordpress.org/support/plugin/blog-designer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blog-designer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blog-designer/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 0 replies
 * 1 participant
 * Last reply from: [megamurmulis](https://wordpress.org/support/users/megamurmulis/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/please-recode-deprecated-jquery-code/)
 * Status: not resolved