Commit 5ff91453 authored by Bartosz Moczulski's avatar Bartosz Moczulski
Browse files

Replaced PLL_INC with POLYLANG_DIR/include

parent 9c3c2a23
......@@ -62,7 +62,7 @@ if ( defined( 'WP_CLI' ) && WP_CLI ) {
WP_CLI::add_hook( 'before_invoke:pll menu', function() {
# make sure localized (temporary) nav menu locations are always registered
require_once PLL_INC . '/nav-menu.php';
require_once POLYLANG_DIR . '/include/nav-menu.php';
$pll_nav_menu = new \PLL_Nav_Menu( \PLL() );
$pll_nav_menu->create_nav_menu_locations();
......
......@@ -45,7 +45,7 @@ class BaseCommand extends \WP_CLI_Command
$this->pll = \PLL();
# make Polylang API functions available
$this->api = new Api( PLL_INC . '/api.php' );
$this->api = new Api( POLYLANG_DIR . '/include/api.php' );
}
}
......
Markdown is supported
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