[wp-trac] [WordPress Trac] #3367: Proposed change
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 17 21:21:48 GMT 2006
#3367: Proposed change
----------------------------+-----------------------------------------------
Reporter: WillemGrooters | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Optimization | Version: 2.0.5
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
For having Wordpress run under OpenVMS, I would like to suggest a change
to classes.php. lines 600-616:
These lines contain a mixture of single and double quotes that the HP-PHP
engine cannot handle. It's the only place where strings are delimited by
single quotes, and values with double, like this (line 600)
if ( $this->is_attachment ) {
$where .= ' AND (post_status = "attachment")';
This causes errors in accessing MySQL via PHP; the very same problem
arises when the SQL-command is issues within PHPMyAdmin, though MYSQL
itself has no trouble with it.
If this is changed so strings are delimited by double quotes and the
values with single:
if ( $this->is_attachment ) {
$where .= " AND (post_status = 'attachment')";
the problems are over.
Secondly, this is more consistent to the rest of the code, for what I have
examined.
--
Ticket URL: <http://trac.wordpress.org/ticket/3367>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list