[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
Hi, :-) I'm making a child theme for WordPress. I need to rewrite one function defined in ../sometheme/functions/actions.php and put that rewritten function in wp-content/themes/sometheme-child/functions/actions.php. But I want to preserve ../sometheme/functions/actions.php unchanged in any way.

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
. :-) David Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
defined... David Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
that is not currently possible in PHP. Time for some lateral thinking. :-) David Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
to put the dots on the I's, the original actions.php contains a lot of *other* functions that I don't want to touch, and that I do want to leave exposed to the updates process. It's just one single function I want to hack... Sticky problem, huh? :-) In any case, thanks for your kind help, :-) David

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread David Nelson
to overwrite, wont be used, and therefore, wouldn't your app/template/whatever be updated improperly than waht you expect it to be? Steve, maybe the above informs? In any case, the function to be overwritten is likely to remain fairly stable... All the best, :-) David Nelson -- PHP General