-
Notifications
You must be signed in to change notification settings - Fork 49
/
index.php
executable file
·67 lines (53 loc) · 1.8 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/*
Plugin Name: ACF QuickEdit Fields
Plugin URI: https://github.com/mcguffin/acf-quickedit-fields
Description: Show Advanced Custom Fields in post list table. Edit field values in Quick Edit and / or Bulk edit.
Author: Jörn Lund
Version: 3.3.7
Author URI: https://github.com/mcguffin
License: GPL3
Requires WP: 4.8
Requires PHP: 5.6
Text Domain: acf-quickedit-fields
Domain Path: /languages/
*/
/* Copyright 2019 Jörn Lund
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
*/
/*
Plugin was generated with Jörn Lund's WP Skelton
https://github.com/mcguffin/wp-skeleton
*/
namespace ACFQuickEdit;
if ( ! defined('ABSPATH') ) {
die('FU!');
}
if ( is_admin() || wp_doing_ajax() ) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'include/autoload.php';
Core\Core::instance( __FILE__ );
$acf_qef_ajax_actions = [
// QuickEdit
'inline-save',
'inline-save-tax',
'get_acf_post_meta',
// Field group admin
'acf/field_group/render_field_settings',
// Polylang
'pll_update_post_rows',
'pll_update_term_rows',
];
// performance
if ( ! wp_doing_ajax() || ( isset($_REQUEST['action']) && in_array( wp_unslash($_REQUEST['action']), $acf_qef_ajax_actions ) ) ) {
Admin\Admin::instance();
}
}