Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

Don't check for wpmu-settings.php


 
Prev Previous Post   Next Post Next
  #1  
Old Dec 20, 2010, 07:39 AM
boone
 
5 posts · Dec 2010
Don't check for wpmu-settings.php

Several places in Atahualpa, the theme checks to see whether WPMU is running by seeing whether wpmu-settings.php exists. This file has been removed in WP 3.0+, so the check always returns false, breaking ability to use images uploaded through the media uploader for the rotating image header.

WP 3.0+ has a core function is_multisite() that works nicely for this purpose. If you want to keep backward compatibility with WPMU, maybe you could do something like

if ( ( function_exists( 'is_multisite' ) && is_multisite() ) || file_exists(ABSPATH."/wpmu-settings.php") )

(Untested, but I imagine it will work.)

Thanks!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help! Exerpts, thumbnail settings don't work! Jeff G Excerpts, Read more, Pagination 3 Jul 2, 2010 08:59 AM
Catchable, no commas, missing/corrupt post info - Please check this file Flynn Atahualpa 3 Wordpress theme 4 Dec 14, 2008 02:23 PM


All times are GMT -6. The time now is 03:04 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.