Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #238 from xwp/bugfix/notification-setting
Browse files Browse the repository at this point in the history
Use notification.setting instead of notification.data.setting
  • Loading branch information
westonruter authored Sep 1, 2016
2 parents 0caaf65 + d562377 commit 57a5703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/customize-post-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
*/
addPostFieldControlNotification: function addPostFieldControlNotification( code, notification ) {
var isSettingNotification, isSettingPropertyNotification;
isSettingNotification = -1 !== code.indexOf( ':' ) || notification.data && notification.data.setting; // Note that sniffing for ':' is deprecated as of #36944.
isSettingNotification = -1 !== code.indexOf( ':' ) || notification.setting; // Note that sniffing for ':' is deprecated as of #36944 & #37890.
isSettingPropertyNotification = notification.data && notification.data.setting_property === this.setting_property;
if ( isSettingPropertyNotification || ! isSettingNotification ) {
return api.Values.prototype.add.call( this, code, notification );
Expand Down

0 comments on commit 57a5703

Please sign in to comment.