在为主题安装子主题后,我收到了这个错误。子主题是 Crystalline。
错误是:
警告:在第 3 行的 crystal/footer.php 中为 foreach() 提供的参数无效
在footer.php
我有这个:
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
</div><!-- #main -->
<?php thematic_abovefooter(); ?>
<div id="footer">
<?php get_sidebar('subsidiary'); ?>
<div id="siteinfo">
<?php /* footer text set in theme options */ echo
stripslashes($thm_footertext); ?>
<br/><a href="http://www.reflectionmedia.ro/blog/">Crystalline
Child Theme</a>
</div><!-- #siteinfo -->
</div><!-- #footer -->
</div><!-- #wrapper .hfeed -->
<?php wp_footer() ?>
</body>
</html>