Add fix for acf symlink realpath issue
This commit is contained in:
parent
866c3d3cd2
commit
f56520fbad
1 changed files with 9 additions and 0 deletions
|
|
@ -1,5 +1,14 @@
|
|||
<?php
|
||||
|
||||
// This is supposed to prevent the symlink/absolute path issue https://github.com/elliotcondon/acf/issues/124
|
||||
// see https://github.com/elliotcondon/acf/issues/124#issuecomment-118247299
|
||||
add_action('init', "initHook", 0); // We use the 0 to bypass priority
|
||||
function initHook() {
|
||||
if(function_exists('acf')) {
|
||||
acf()->settings["dir"] = WP_CONTENT_URL."/plugins/advanced-custom-fields/";
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'td_theme_styles' );
|
||||
function td_theme_styles() {
|
||||
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue