forked from wp-plugins/comment-attachment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomment-attachment.php
51 lines (42 loc) · 1.69 KB
/
comment-attachment.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
44
45
46
47
48
49
50
51
<?php
/*
Plugin Name: Comment Attachment
Plugin URI: http://latorante.name
Description: Wordpress out-of-the-box comment attachment functionality. Offer your visitors the ability to attach images, or documents to their comments that automatically attach to your Wordpress media gallery. Make the attachments visible, downloadable as you wish.
Author: latorante
Author URI: http://latorante.name
Author Email: [email protected]
Version: 1.5.5
License: GPLv2
Text Domain: comment-attachment
Domain Path: /languages/
*/
/*
Copyright 2013 Martin Picha (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* 1. If no Wordpress, go home
*/
if (!defined('ABSPATH')) { exit; }
/**
* 2. Check minimum requirements (wp version, php version)
* Reason behind this is, we just need PHP 5.3 at least,
* and wordpress 3.3 or higher. We just can't run the show
* on some outdated installation.
*/
require_once('check.php');
reqCheck::checkRequirements();
/**
* 3. Go, and do Comment Attachment!
*/
require_once('comment-attachment-init.php');