forked from Zodiac1978/tl-normalizer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunfc-normalize.php
43 lines (34 loc) · 1.35 KB
/
unfc-normalize.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Plugin Name: UNFC Nörmalize
* Plugin URI: https://github.com/gitlost/unfc-normalize
* Description: Normalizes UTF-8 input to Normalization Form C.
* Version: 1.0.7
* Author: gitlost
* Author URI: https://profiles.wordpress.org/gitlost
* License: GPLv2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: unfc-normalize
* Domain Path: /languages
*/
/*
* Originally a fork of https://github.com/Zodiac1978/tl-normalizer by Torsten Landsiedel.
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! defined( 'UNFC_VERSION' ) ) {
// These need to be synced with "readme.txt".
define( 'UNFC_VERSION', '1.0.7' ); // Sync also "package.json" and "language/unfc-normalize.pot".
define( 'UNFC_WP_AT_LEAST_VERSION', '3.9.13' );
define( 'UNFC_WP_UP_TO_VERSION', '5.2.2' );
// Handy now that other *.php stuff has been moved into subdir "includes".
define( 'UNFC_FILE', __FILE__ );
}
load_plugin_textdomain( 'unfc-normalize', false, basename( dirname( __FILE__ ) ) . '/languages' );
global $unfc_normalize; // The single instance.
// Where the magic (and the tragic) happens.
if ( ! class_exists( 'UNFC_Normalize' ) ) {
require dirname( __FILE__ ) . '/includes/class-unfc-normalize.php';
}
register_activation_hook( __FILE__, array( 'UNFC_Normalize', 'activation_check' ) );
$unfc_normalize = new UNFC_Normalize();