Server IP : 172.67.157.199 / Your IP : 3.15.168.194 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/wp-parsidate/includes/admin/ |
Upload File : |
<?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() { $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 );