server/web/app/plugins/f-translate/wporg-gp-routes/wporg-gp-routes.php
Chuck Adams 82911790e4
add ignored plugin files
Signed-off-by: Chuck Adams <chaz@chaz.works>
2026-01-03 15:10:13 -07:00

26 lines
816 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();