joenova
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Db Abstraction] Issue with using multisiteAgreed.
Also, this fixes the “Posts” and “Pages” listings if anyone was curious.
Not sure if this is how to “properly” fix it or not, but I got it working this way.
In “ds_wp3_private_blog.php” look for the line:
add_filter( 'login_url', 'ds_my_login_page_redirect' );
and on the next line I put:
$current_blog->public = get_option('blog_public');
Again, not sure if placement or this code is how it should be done but it’s how I hacked it to get it working.
I upgraded a previous version to 3.4.2 and it seems to work fine. However I then did a clean install of 3.4.2 for another project and it doesn’t work.
I need this working ASAP so I am looking into the code now. I will post my fix if/when I find it.
Forum: Plugins
In reply to: [WP Db Abstraction] Issue with using multisiteFound the fix for anyone who’s interested.
In ‘translations.php’ around line 739 in the ‘translate_limit()’ function you currently have:
if ( count($limit_matches) == 5 && $limit_matches[1] != '0' ) { $true_offset = true; } elseif ( count($limit_matches) == 5 && $limit_matches[1] == '0' ) { $limit_matches[1] = $limit_matches[4]; }
This needs to be changed to:
if ( count($limit_matches) == 6 && $limit_matches[1] != '0' ) { $true_offset = true; } elseif ( count($limit_matches) == 6 && $limit_matches[1] == '0' ) { $limit_matches[1] = $limit_matches[4]; }
Hope this helps someone else!