title: Wordpress customizer - Using a setting value for another control
body: <p>There are probably dozens of better ways to do this, but I'm still learning the ins and outs, so I'm starting basic.
  I'm trying to set up a range (working), for the logo, that scales only as tall as the header section is set to.</p>
  <p>AKA, So my logo image cannot scale past the header and overflow outside of it, if the header is set to a smaller size.
  I have everything working except being able to call the header_height_setting, as the maximum for my array.</p>
  <p>Any and All help is appreciated!</p>
  <p>Edit:
  No error is given,'header_height_setting' is just not being used as the max range as expected.
  The [max] for the scale, seems to be defaulting to 100px for the slider.</p>
  <p><strong>My Settings</strong></p>
  <pre><code>$wp_customize-&gt;add_control('header_height',
  array(
  'settings'      =&gt; 'header_height_setting',
  'section'       =&gt; 'header_section',
  'type'          =&gt; 'range',
  'label'         =&gt; __( 'Height', 'kd_bhw' ),
  'input_attrs' =&gt; 
  array(
  'min' =&gt; 0,
  'max' =&gt; 1000,
  'step' =&gt; 1,
  ),
  )
  );
  ----------
  $wp_customize-&gt;add_control('logo_scale',
  array(
  'settings'      =&gt; 'logo_scale',
  'section'       =&gt; 'logo_section',
  'type'          =&gt; 'range',
  'label'         =&gt; __( 'Logo Scale', 'kd_bhw' ),
  'active_callback' =&gt; 'logo_uploaded',
  'input_attrs' =&gt; 
  array(
  'min' =&gt; 1,
  'max' =&gt;  'header_height_setting',
  'step' =&gt; 1,
  ),
  )
  );
  </code></pre>
  <p><strong>How they are called</strong></p>
  <pre><code>height: &lt;?php esc_html_e( get_theme_mod( 'logo_scale' ) ); ?&gt;px;
  max-height: &lt;?php esc_html_e( get_theme_mod( 'header_height_setting' ) ); ?&gt;px;
  </code></pre>