[wp-trac] [WordPress Trac] #4275: PHP Exec Widgets repeat in WP 2.2
widget implementation
WordPress Trac
wp-trac at lists.automattic.com
Wed May 16 13:10:25 GMT 2007
#4275: PHP Exec Widgets repeat in WP 2.2 widget implementation
----------------------------+-----------------------------------------------
Reporter: technosailor | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.2.1
Component: Administration | Version:
Severity: normal | Keywords: widgets needs-patch
----------------------------+-----------------------------------------------
As widgets should create a completely BW-compat version of the widgets
plugin, it is an unnecessary burden on the community to expect common
third party widgets such as the PHP Exec widget to behave differently.
Currently, take a fresh install of WP 2.2, activate PHP Exec widget
plugin, set the number of PHP widget to 3. Drag all three PHP Code widgets
onto a sidebar and set each one to use different bits of PHP code. I used:
{{{
<?php
echo'<pre>';
print_r(array('apple','orange'));
echo'</pre>';
?>
}}}
{{{
<?php
echo'<pre>';
print_r(array('pineapple','mango'));
echo'</pre>';
?>
}}}
{{{
<?php
echo'<pre>';
print_r(array('grape','cherry'));
echo'</pre>';
?>
}}}
When I go and look at the result on the blog, there are three instances
of:
{{{
Array
(
[0] => apple
[1] => orange
)
}}}
Bad news.
--
Ticket URL: <http://trac.wordpress.org/ticket/4275>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list