Quantcast
Viewing all articles
Browse latest Browse all 2917

avidre on "WP integration broken & possible fix"

Zenphoto v. 1.4.5.7 - WP integration broken & possible fix
@ sbillard/acrylian
NOT A "BUG":
Fatal error: Cannot redeclare build_query() in... WordPress/Includes/functions.

I really appreciate all the work you have put into Zenphoto and love using it!

I do know that you are not usually concerned about problems/conflicts with WordPress, but it would be nice if I could retain the functionality you intended when you revised the zp-core/functions-basic.php to add some features (sometime after vers 1.4.4.8, which works fine)
.
I have been using the "Ruzee hack" for years and have a lot of effort invested in customizing your default theme to work with WP, and am very happy with the results.

So, my question is... is there some way for you (or me) to rewrite a couple of your newer functions so as to _NOT_ use the term "build_query"?

Any feedback you care to give will be greatly appreciated. References to the two functions follow:

Zenphoto v. 1.4.5.7 - PATH: zp-core/functions-basic.php

==/ STARTING ON LINE 1056 [note: "createsa" is your typo, not mine]
/**
* createsa query string from the array passed
* @param array $parts
* @return string
* COMMENT-OUT BY NEIL 2013-1217 ************************************************************
*/
/**
//function build_query($parts) {
// $q = '';
// foreach ($parts as $name => $value) {
// $q .= $name . '=' . $value . '&';
// }
// return substr($q, 0, -1);
}

*/

==/ LINE 1138
/*
$parts['query'] = build_query($pairs);
* * COMMENT-OUT BY NEIL 2013-1217 ************************************************************
*/

Thanks in advance for your time!
Neil - a big fan of Zenphoto


Viewing all articles
Browse latest Browse all 2917

Trending Articles