Skip to content

Commit

Permalink
Merge pull request #789 from anhskohbo/patch-1
Browse files Browse the repository at this point in the history
Use quotes for label[for=""] selecttor
  • Loading branch information
jtsternberg committed Nov 5, 2016
2 parents a879a75 + 6e74900 commit 57e60dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/cmb2.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ window.CMB2 = window.CMB2 || {};

// Create the media frame.
media.frames[ media.field ] = wp.media( {
title: cmb.metabox().find('label[for=' + media.field + ']').text(),
title: cmb.metabox().find('label[for="' + media.field + '"]').text(),
library : media.fieldData.queryargs || {},
button: {
text: l10n.strings[ isList ? 'upload_files' : 'upload_file' ]
Expand Down

0 comments on commit 57e60dc

Please sign in to comment.