From 5e85a8b55a3ce103ee47e742284f0423da51ae95 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 10 Oct 2015 15:49:56 +0000 Subject: [PATCH] Admin JS: after [34977], avoid variable names conflicts with `e`. Props afercia. Fixes #18590. git-svn-id: https://develop.svn.wordpress.org/trunk@35014 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/post.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/js/post.js b/src/wp-admin/js/post.js index c8404576c4..ea85134eb7 100644 --- a/src/wp-admin/js/post.js +++ b/src/wp-admin/js/post.js @@ -722,7 +722,7 @@ jQuery(document).ready( function($) { // permalink function editPermalink() { var i, slug_value, - e, revert_e, + $el, revert_e, c = 0, real_slug = $('#post_name'), revert_slug = real_slug.val(), @@ -738,12 +738,12 @@ jQuery(document).ready( function($) { full = full.html(); permalink.html( permalinkInner ); - e = $('#editable-post-name'); - revert_e = e.html(); + $el = $( '#editable-post-name' ); + revert_e = $el.html(); buttons.html(' '+postL10n.cancel+''); buttons.children('.save').click( function( e ) { - var new_slug = e.children('input').val(); + var new_slug = $el.children( 'input' ).val(); e.preventDefault(); if ( new_slug == $('#editable-post-name-full').text() ) { buttons.children('.cancel').click(); @@ -774,7 +774,7 @@ jQuery(document).ready( function($) { buttons.children('.cancel').click( function( e ) { e.preventDefault(); $('#view-post-btn').show(); - e.html(revert_e); + $el.html(revert_e); buttons.html(buttonsOrig); permalink.html(permalinkOrig); real_slug.val(revert_slug); @@ -787,7 +787,7 @@ jQuery(document).ready( function($) { } slug_value = ( c > full.length / 4 ) ? '' : full; - e.html('').children('input').keypress(function(e) { + $el.html( '').children('input').keypress(function(e) { var key = e.keyCode || 0; // on enter, just save the new slug, don't save the post if ( 13 == key ) {