HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: //proc/thread-self/cwd/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 );