PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / trunk
MainWP Dashboard: Self-hosted WordPress Management for Agencies vtrunk
6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 5.2.2 5.3 All 153 releases
← All changes | class/class-mainwp-post-base-handler.php +6 -1 5.2trunk View file →
@@ -6,8 +6,13 @@
6 6 */
7 7
8 8 namespace MainWP\Dashboard;
9 9
10 +// Exit if accessed directly.
11 +if ( ! defined( 'ABSPATH' ) ) {
12 + exit;
13 +}
14 +
10 15 /**
11 16 * Class MainWP_Post_Base_Handler
12 17 *
13 18 * @package MainWP\Dashboard
@@ -113,9 +118,9 @@
113 118 *
114 119 * Add ajax action.
115 120 *
116 121 * @param string $action Action to perform.
117 - * @param string $callback Callback to perform.
122 + * @param mixed $callback Callback to perform.
118 123 * @param int $priority priority aciton.
119 124 * @param int $accepted number args.
120 125 */
121 126 public function add_action( $action, $callback, $priority = 10, $accepted = 2 ) {