~canonical-sysadmins/wordpress/4.9.1

« back to all changes in this revision

Viewing changes to wp-admin/js/inline-edit-post.js

  • Committer: axino
  • Date: 2017-04-21 09:50:23 UTC
  • mfrom: (1.1.24 upstream)
  • Revision ID: axino@canonical.com-20170421095023-9ovs9chcswvhibbe
Merge WP4.7.4 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
                // enable autocomplete for tags
116
116
                if ( 'post' === type ) {
117
117
                        $( 'tr.inline-editor textarea[data-wp-taxonomy]' ).each( function ( i, element ) {
 
118
                                /*
 
119
                                 * While Quick Edit clones the form each time, Bulk Edit always re-uses
 
120
                                 * the same form. Let's check if an autocomplete instance already exists.
 
121
                                 */
 
122
                                if ( $( element ).autocomplete( 'instance' ) ) {
 
123
                                        // jQuery equivalent of `continue` within an `each()` loop.
 
124
                                        return;
 
125
                                }
 
126
 
118
127
                                $( element ).wpTagsSuggest();
119
128
                        } );
120
129
                }