Plugin Directory

Changeset 1758013


Ignore:
Timestamp:
11/03/2017 01:19:23 PM (8 years ago)
Author:
WP100
Message:

Fix error message: Failed to load content css

Location:
hebrew-font/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hebrew-font/trunk/hebrew-font.php

    r1145950 r1758013  
    44 * Plugin URI: http://www.webview.co.il/plugins/hebrew-font/
    55 * Description: Hebrew Font plugin provides an easy way to use Hebrew fonts on your WordPress website.
    6  * Version: 0.2
     6 * Version: 0.3
    77 * Author: Nilly Klein
    88 * Author URI: http://www.webView.co.il
     
    3535   add_editor_style( str_replace( ',', '%2C', $font_url ) );
    3636}
    37 add_action( 'init', 'hf_wp_mce_fonts_styles' );
     37//add_action( 'init', 'hf_wp_mce_fonts_styles' );
    3838
     39function hf_wp_mce_add_css( $mce_css ) {
     40    if ( ! empty( $mce_css ) )
     41        $mce_css .= ',';
     42
     43    $mce_css .=   '//fonts.googleapis.com/earlyaccess/alefhebrew.css,' .
     44                  '//fonts.googleapis.com/earlyaccess/notosanshebrew.css,' .
     45                  '//fonts.googleapis.com/earlyaccess/opensanshebrewcondensed.css,' .
     46                  plugins_url( '/fonts/miriamclm/stylesheet.css', __FILE__ ) . ',' .
     47                  plugins_url( '/fonts/comixno2/stylesheet.css', __FILE__ ) . ','.
     48                  plugins_url( '/fonts/nehama/stylesheet.css', __FILE__ );
     49
     50    return $mce_css;
     51}
     52
     53add_filter( 'mce_css', 'hf_wp_mce_add_css' );
    3954
    4055// Enqueue plugin css
  • hebrew-font/trunk/readme.txt

    r1452870 r1758013  
    1 === Plugin Name ===
     1=== Hebrew Font ===
    22Contributors: WP100
    33Tags: hebrew, font, font-family, font-face, editor, dropdown, mce, alef, google fonts
    44Requires at least: 4.1.1
    5 Tested up to: 4.5.3
    6 Stable tag: 0.2
     5Tested up to: 4.8.3
     6Stable tag: 0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5454= 0.2 =
    5555Tested with WordPress 4.2
     56
     57= 0.3 =
     58Fix error message: Failed to load content css
Note: See TracChangeset for help on using the changeset viewer.