m_font_size_limit, * do not calculate a fluid value. */ if ( $preferred_size['value'] <= $minimum_font_size_limit['value'] ) { return $preset['size']; } } // If no fluid max font size is available use the incoming value. if ( ! $maximum_font_size_raw ) { $maximum_font_size_raw = $preferred_size['value'] . $preferred_size['unit']; } /* * If no minimumFontSize is provided, create one using * the given font size multiplied by the min font size scale factor. */ if ( ! $minimum_font_size_raw ) { $preferred_font_size_in_px = 'px' === $preferred_size['unit'] ? $preferred_size['value'] : $preferred_size['value'] * 16; /* * The scale factor is a multiplier that affects how quickly the curve will move towards the minimum, * that is, how quickly the size factor reaches 0 given increasing font size values. * For a - b * log2(), lower values of b will make the curve move towards the minimum faster. * The scale factor is constrained between min and max values. */ $minimum_font_size_factor = min( max( 1 - 0.075 * log( $preferred_font_size_in_px, 2 ), $default_minimum_font_size_factor_min ), $default_minimum_font_size_factor_max ); $calculated_minimum_font_size = round( $preferred_size['value'] * $minimum_font_size_factor, 3 ); // Only use calculated min font size if it's > $minimum_font_size_limit value. if ( ! empty( $minimum_font_size_limit ) && $calculated_minimum_font_size <= $minimum_font_size_limit['value'] ) { $minimum_font_size_raw = $minimum_font_size_limit['value'] . $minimum_font_size_limit['unit']; } else { $minimum_font_size_raw = $calculated_minimum_font_size . $preferred_size['unit']; } } $fluid_font_size_value = wp_get_computed_fluid_typography_value( array( 'minimum_viewport_width' => $minimum_viewport_width, 'maximum_viewport_width' => $maximum_viewport_width, 'minimum_font_size' => $minimum_font_size_raw, 'maximum_font_size' => $maximum_font_size_raw, 'scale_factor' => $default_scale_factor, ) ); if ( ! empty( $fluid_font_size_value ) ) { return $fluid_font_size_value; } return $preset['size']; } // Register the block support. WP_Block_Supports::get_instance()->register( 'typography', array( 'register_attribute' => 'wp_register_typography_support', 'apply' => 'wp_apply_typography_support', ) ); 07 « April « 2013 « chicagoareafire.com
Fatal error: Uncaught Error: Call to undefined function wp_get_typography_font_size_value() in /home/psvjbuqk/public_html/blog/wp-includes/class-wp-theme-json.php:1986 Stack trace: #0 /home/psvjbuqk/public_html/blog/wp-includes/class-wp-theme-json.php(2427): WP_Theme_JSON::compute_style_properties(Array, Array, Array, Array, '.wp-block-pullq...', false) #1 /home/psvjbuqk/public_html/blog/wp-includes/global-styles-and-settings.php(300): WP_Theme_JSON->get_styles_for_block(Array) #2 /home/psvjbuqk/public_html/blog/wp-includes/script-loader.php(2515): wp_add_global_styles_for_blocks() #3 /home/psvjbuqk/public_html/blog/wp-includes/class-wp-hook.php(324): wp_enqueue_global_styles('') #4 /home/psvjbuqk/public_html/blog/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /home/psvjbuqk/public_html/blog/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/psvjbuqk/public_html/blog/wp-includes/script-loader.php(2262): do_action('wp_enqueue_scri...') #7 /home/psvjbuqk/public_html/blog/wp-includes/ in /home/psvjbuqk/public_html/blog/wp-includes/class-wp-theme-json.php on line 1986