✏️ 正在编辑: styles-fix.php
路径:
/home/h359620/public_html/wp-content/plugins/wp-parsidate/includes/admin/styles-fix.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php defined( 'ABSPATH' ) or exit( 'No direct script access allowed' ); /** * Fix admin styles & TinyMCE editor * * @author Morteza Geransayeh * @package WP-Parsidate * @subpackage Admin/Styles */ /** * Fixes themes and plugins RTL style, they should be LTR * * @return void * @since 2.0 */ function wpp_fix_editor_rtl() { $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) || wpp_is_active( 'dev_mode' ) ? '' : '.min'; wp_enqueue_style( 'functions', WP_PARSI_URL . "assets/css/admin-fix$suffix.css", false, WP_PARSI_VER, 'all' ); } add_action( 'admin_print_styles-plugin-editor.php', 'wpp_fix_editor_rtl', 10 ); add_action( 'admin_print_styles-theme-editor.php', 'wpp_fix_editor_rtl', 10 ); /** * Fixes TinyMCE font * * @return void * @since 2.0 */ function wpp_fix_tinymce_font() { if ( wpp_is_active( 'enable_fonts' ) ) { $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) || wpp_is_active( 'dev_mode' ) ? '' : '.min'; add_editor_style( WP_PARSI_URL . "assets/css/editor$suffix.css" ); } } add_filter( 'init', 'wpp_fix_tinymce_font', 9 );
💾 保存文件
← 返回文件管理器