Commit 11159eae authored by John James Jacoby's avatar John James Jacoby
Browse files

Refactor for mu-plugins usage.

parent 9022b79f
......@@ -8,9 +8,9 @@
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Description: Protect posts from being deleted
* Version: 0.1.0
* Version: 1.0.0
* Text Domain: wp-post-protect
* Domain Path: /assets/lang/
* Domain Path: /wp-post-protect/assets/languages/
*/
// Exit if accessed directly
......@@ -24,7 +24,7 @@ defined( 'ABSPATH' ) || exit;
function _wp_post_protect() {
// Get the plugin path
$plugin_path = plugin_dir_path( __FILE__ );
$plugin_path = plugin_dir_path( __FILE__ ) . 'wp-post-protect/';
// Classes
require_once $plugin_path . 'includes/admin.php';
......@@ -42,7 +42,7 @@ add_action( 'plugins_loaded', '_wp_post_protect' );
* @return string
*/
function wp_post_protect_get_plugin_url() {
return plugin_dir_url( __FILE__ );
return plugin_dir_url( __FILE__ ) . 'wp-post-protect/';
}
/**
......@@ -53,5 +53,5 @@ function wp_post_protect_get_plugin_url() {
* @return int
*/
function wp_post_protect_get_asset_version() {
return 201603110001;
return 201611200001;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment