WordPress.org

Plugin Directory

Changeset 1594917


Ignore:
Timestamp:
02/13/2017 12:41:49 PM (3 years ago)
Author:
hnle
Message:

tfnsj 0.2.1 change admin boot timing

Location:
twentyfifteen-noto-sans-jp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • twentyfifteen-noto-sans-jp/trunk/2015-notosans-ja.php

    r1594495 r1594917  
    55Plugin URI: https://hinaloe.net/portfolio/twentyfifteen-noto-sans-jp
    66Description: The font of TwentyFifteen is changed to a Japanese Gothic font.
    7 Version: 0.2.0
     7Version: 0.2.1
    88Author: Hinaloe
    99Author URI: https://hinaloe.net/
     
    1515
    1616require_once( dirname( __FILE__ ) . '/admin/customizer.php' );
    17 if ( is_admin() ) { require_once( dirname( __FILE__ ) . '/admin/editor-style.php' ); }
     17if ( is_admin() ) {
     18    require_once( dirname( __FILE__ ) . '/admin/editor-style.php' );
     19}
    1820
    1921if ( ! function_exists( 'twentyfifteen_fonts_url' ) ) :
     
    3638function tfnsj_font_weight_genearate_css( $important = false ) {
    3739    if ( $weights = get_option( 'tf_font_weight' ) ) {
    38         $css = '';
     40        $css       = '';
    3941        $important = $important ? '!important' : '';
    4042        if ( isset( $weights['normal'] ) ) {
  • twentyfifteen-noto-sans-jp/trunk/admin/editor-style.php

    r1594495 r1594917  
    11<?php
     2
    23if ( ! function_exists( 'add_action' ) ) {
    34    exit;
     
    5657}
    5758
    58 TfNsJ_Admin_Style::init();
     59add_action( 'admin_init', array( 'TfNsJ_Admin_Style', 'init' ) );
Note: See TracChangeset for help on using the changeset viewer.