); // Don't enforce minimum font size if a font size has explicitly set a min and max value. if ( ! empty( $minimum_font_size_limit ) && ( ! $minimum_font_size_raw && ! $maximum_font_size_raw ) ) { /* * If a minimum size was not passed to this function * and the user-defined font size is lower than $minimum_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', ) );
Warning: include(): Failed opening '/home/tourismg/public_html/wp-content/plugins/wordpress-seo/vendor/composer/../../vendor_prefixed/symfony/dependency-injection/Container.php' for inclusion (include_path='.:') in /home/tourismg/public_html/wp-content/plugins/one-click-demo-import/vendor/composer/ClassLoader.php on line 444

Fatal error: Uncaught Error: Class 'YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container' not found in /home/tourismg/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php:19 Stack trace: #0 /home/tourismg/public_html/wp-content/plugins/wordpress-seo/src/main.php(57): require_once() #1 /home/tourismg/public_html/wp-content/plugins/wordpress-seo/lib/abstract-main.php(44): Yoast\WP\SEO\Main->get_container() #2 /home/tourismg/public_html/wp-content/plugins/wordpress-seo/src/functions.php(34): Yoast\WP\Lib\Abstract_Main->load() #3 /home/tourismg/public_html/wp-content/plugins/wordpress-seo/wp-seo-main.php(457): YoastSEO() #4 /home/tourismg/public_html/wp-content/plugins/wordpress-seo/wp-seo.php(50): require_once('/home/tourismg/...') #5 /home/tourismg/public_html/wp-settings.php(517): include_once('/home/tourismg/...') #6 /home/tourismg/public_html/wp-config.php(96): require_once('/home/tourismg/...') #7 /home/tourismg/public_html/wp-load.php(50): require_once('/home/tourismg/...') #8 /home/touri in /home/tourismg/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php on line 19