Automattic / _s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
http://underscores.me/
GNU General Public License v2.0
10.96k stars 3.12k forks source link

customize.js question #1321

Closed Lootstep closed 5 years ago

Lootstep commented 6 years ago

If I Change the functions like for example wp.customize( 'header_textcolor', function( value ) { value.bind( function( to ) { To something like wp.customize( 'header_textcolor', function( dog ) { value.bind( function( cat ) { too all the function names in customize.js The code stops working. and I can't find a reason why. Are "to" and "value" are core functions used by all themes and I should always use them, or is there another file/s I need to edit too. sorry new to php and JavaScript

philiparthurmoore commented 6 years ago

It shouldn't matter whether you use value and to as names as long as there is consistency. What's your full code snippet?

grappler commented 5 years ago

I see one problem with your code. Instead of wp.customize( 'header_textcolor', function( dog ) { value.bind( function( cat ) { should be wp.customize( 'header_textcolor', function( dog ) { dog.bind( function( cat ) {

As this is a general question and not a bug with _s I will close the issue.