forked from jchristopher/attachments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
30 lines (26 loc) · 1.01 KB
/
index.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
<?php
/**
* Plugin Name: Attachments
* Plugin URI: https://github.com/jchristopher/attachments
* Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
* Author: Jonathan Christopher
* Author URI: http://mondaybynoon.com/
* Version: 3.5.8
* Text Domain: attachments
* Domain Path: /languages/
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if( ( defined( 'ATTACHMENTS_LEGACY' ) && ATTACHMENTS_LEGACY === true ) || version_compare( $wp_version, '3.5', '<' ) ) {
// load deprecated version of Attachments
require_once dirname( __FILE__ ) . '/deprecated/attachments.php';
} else {
define( 'ATTACHMENTS_DIR', plugin_dir_path( __FILE__ ) );
define( 'ATTACHMENTS_URL', plugin_dir_url( __FILE__ ) );
// load current version of Attachments
require_once dirname( __FILE__ ) . '/classes/class.attachments.php';
}