Atahualpa 3.7.12 site logo and favicon missing on clean install
There's are a couple little bugs related to the new image directory options in 3.7.12 for users who freshly install atahualpa, or reset all settings to defaults. The site logo and fav-icon get incorrect paths if 'ata_images_dir' hasn't been written to the database yet. Easy fixes:
bfa_header_config.php Change lines 154-155 from this: Code:
$img_folder = 'ata-images'; Code:
$imgdir = get_template_directory_uri() . '/images/'; Change lines 48 from this: Code:
$imgdir = content_url() . '/ata-images/'; Code:
$imgdir = get_template_directory_uri() . '/images/favicon/'; |
That will break the new functionality. All you need do is go to ato->New Image Locations and press the 'Save Changes' button.
|
Quote:
|
The idea of the new functionality is to allow you to have the images outside of the template directory.
|
Quote:
|
I updated the first post to reflect that the same problem affects favicons. Before you guys dismiss this suggestion -- as seems to be the case considering earlier responses -- can you actually pull up the code and take a look? Consider the if statements around the code I'm suggesting should be changed:
Code:
if( !isset($bfa_ata['ata_images_dir']) OR ($bfa_ata['ata_images_dir'] == '') )
|
The problem is that the new option adds an entry into an array but does not initialize it. With your changes if someone selects wp-content as the root and the folder they name does NOT exist (say they misspell it), it will default to the Atahualpa images folder and they won't see their images.
I'll be looking into a fix for the array when I get a chance. |
Quote:
Perhaps there is one misconception I have though: I assumed defining your own image folder required it be located under wp-content/. Is it actually the case that users can specify an alternate images folder under atahualpa (not a good idea)? |
Your assumption is correct, the alternative location is within wp-content. The idea is that when you do an automatic upgrade, WordPress wipes out the contents of the theme folder and puts the new version in. By moving the images out of the theme folder, they will remain over upgrades.
|
All times are GMT -6. The time now is 05:45 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.