0
Wordpressのパッチを作成しています。ワードプレスのこのjQueryコードで何か問題があります
これはXMLが
<?xml version='1.0' standalone='yes'?><wp_ajax><response action='autosave_1'><wp_error id='1' position='1'><response_data><![CDATA[<p>
<h1>Error establishing a database connection</h1>
<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or we can't contact the database server at <code>localhost</code>. This could mean your host's database server is down.</p>
<ul>
<li>Are you sure you have the correct username and password?</li>
<li>Are you sure that you have typed the correct hostname?</li>
<li>Are you sure that the database server is running?</li>
</ul>
<p>If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the <a href='http://wordpress.org/support/'>WordPress Support Forums</a>.</p>
</p>]]></response_data><supplemental></supplemental></wp_error></response></wp_ajax>
そして、上記のXMLを解析するスクリプトは何かということです:wp-ajax-response.dev.js
問題がある:jQuery('wp_error', child).each().size()
は常にさえ<wp_error>
タグを持っている上記のXMLのためのゼロを返して。
なぜこれが起こりますか?