Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/1534260/cwd/plugins/jetpack/modules/ |
Upload File : |
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Module Name: Custom CSS * Module Description: Adds options for CSS preprocessor use, disabling the theme's CSS, or custom image width. * Sort Order: 2 * First Introduced: 1.7 * Requires Connection: No * Auto Activate: No * Module Tags: Appearance * Feature: Appearance * Additional Search Queries: css, customize, custom, style, editor, less, sass, preprocessor, font, mobile, appearance, theme, stylesheet */ /** * Load custom CSS */ function jetpack_load_custom_css() { include_once __DIR__ . '/custom-css/custom-css/preprocessors.php'; include_once __DIR__ . '/custom-css/custom-css.php'; } add_action( 'jetpack_modules_loaded', 'custom_css_loaded' ); /** * Enable CSS module. */ function custom_css_loaded() { $message = sprintf( // translators: %s is a link to the WordPress.org documentation. __( 'Jetpack no longer supports Custom CSS. Read the WordPress.org documentation to learn how to apply custom styles to your site: %s', 'jetpack' ), 'https://wordpress.org/documentation/article/styles-overview/#applying-custom-css' ); _deprecated_hook( 'custom_css_loaded', 'jetpack-13.5', 'WordPress Custom CSS', esc_html( $message ) ); Jetpack::enable_module_configurable( __FILE__ ); add_filter( 'jetpack_module_configuration_url_custom-css', 'jetpack_custom_css_configuration_url' ); } /** * Overrides default configuration url * * @uses admin_url * * @param string $default_url - the default URL. * @return string module settings URL */ function jetpack_custom_css_configuration_url( $default_url ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable return Jetpack_Custom_CSS_Enhancements::customizer_link( array( 'return_url' => wp_get_referer() ) ); } jetpack_load_custom_css();