mirror of
https://gh.wpcy.net/https://github.com/fairpm/server.git
synced 2026-06-20 03:02:27 +08:00
26 lines
817 B
PHP
26 lines
817 B
PHP
<?php
|
|
/**
|
|
* Plugin name: GlotPress: Custom Routes
|
|
* Description: Provides custom routes like <code>/locale</code> or <code>/stats</code> for translate.wordpress.org.
|
|
* Version: 2.0
|
|
* Author: WordPress.org
|
|
* Author URI: http://wordpress.org/
|
|
* License: GPLv2 or later
|
|
*/
|
|
|
|
namespace WordPressdotorg\GlotPress\Routes;
|
|
|
|
use WordPressdotorg\Autoload;
|
|
|
|
// Store the root plugin file for usage with functions which use the plugin basename.
|
|
define( __NAMESPACE__ . '\PLUGIN_FILE', __FILE__ );
|
|
|
|
if ( ! class_exists( '\WordPressdotorg\Autoload\Autoloader', false ) ) {
|
|
include __DIR__ . '/vendor/wordpressdotorg/autoload/class-autoloader.php';
|
|
}
|
|
|
|
// Register an Autoloader for all files.
|
|
Autoload\register_class_path( __NAMESPACE__, __DIR__ . '/inc' );
|
|
|
|
// Instantiate the Plugin.
|
|
Plugin::get_instance();
|