31 lines
899 B
PHP
31 lines
899 B
PHP
<?php
|
|
/**
|
|
* Plugin Name: AceIDE
|
|
* Plugin URI: https://github.com/AceIDE/AceIDE
|
|
* Description: WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
|
|
* Version: 2.6.2
|
|
* Author: AceIDE
|
|
* License: GPL3
|
|
**/
|
|
|
|
// Exit if accessed directly
|
|
if ( !defined( 'ABSPATH' ) ) exit;
|
|
|
|
if ( !file_exists( __DIR__ . '/vendor/' ) ) {
|
|
trigger_error( 'Composer "vendor/" directory missing.', E_USER_ERROR );
|
|
}
|
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
$fileops = new AceIDE\Editor\Modules\FileOps;
|
|
$ide = new AceIDE\Editor\IDE;
|
|
|
|
$ide->extend($fileops);
|
|
|
|
// As long as the GitOps module is under development, let's only make it
|
|
// available to WordPress users with WP_DEBUG enabled.
|
|
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
|
|
$gitops = new AceIDE\Editor\Modules\GitOps;
|
|
$ide->extend($gitops);
|
|
}
|