Title: Mukesh Kumar's Replies | WordPress.org

---

# Mukesh Kumar

  [  ](https://wordpress.org/support/users/goss/)

 *   [Profile](https://wordpress.org/support/users/goss/)
 *   [Topics Started](https://wordpress.org/support/users/goss/topics/)
 *   [Replies Created](https://wordpress.org/support/users/goss/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/goss/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/goss/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/goss/engagements/)
 *   [Favorites](https://wordpress.org/support/users/goss/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [My site www.bloggin.gs are Hacked via use this php file](https://wordpress.org/support/topic/my-site-wwwbloggings-are-hacked-via-use-this-php-file/)
 *  Thread Starter [Mukesh Kumar](https://wordpress.org/support/users/goss/)
 * (@goss)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/my-site-wwwbloggings-are-hacked-via-use-this-php-file/#post-3057638)
 * Checking all post on above list…. but not working….
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [My site www.bloggin.gs are Hacked via use this php file](https://wordpress.org/support/topic/my-site-wwwbloggings-are-hacked-via-use-this-php-file/)
 *  Thread Starter [Mukesh Kumar](https://wordpress.org/support/users/goss/)
 * (@goss)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/my-site-wwwbloggings-are-hacked-via-use-this-php-file/#post-3057631)
 * Hello esmi my Thesis also hacked theme. modify my theme but modification are 
   not work…. help me…. Esmi
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] [Plugin: Google XML Sitemaps] XML Parsing Error: junk after document element](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-xml-parsing-error-junk-after-document-element/)
 *  [Mukesh Kumar](https://wordpress.org/support/users/goss/)
 * (@goss)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-xml-parsing-error-junk-after-document-element/#post-2453880)
 * in `/wp-includes/query.php` change this
 *     ```
       // Always sanitize
       		foreach ( $this->posts as $i => $post ) {
       			$this->posts[$i] = sanitize_post( $post, 'raw' );
       		}
       ```
   
 * to
 *     ```
       // Sanitize before caching so it'll only get done once
       		for ( $i = 0; $i < $this->post_count; $i++ ) {
       			$this->posts[$i] = sanitize_post($this->posts[$i], 'raw');
       		}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] [Plugin: Google XML Sitemaps] XML Parsing Error: junk after document element](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-xml-parsing-error-junk-after-document-element/)
 *  [Mukesh Kumar](https://wordpress.org/support/users/goss/)
 * (@goss)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-xml-parsing-error-junk-after-document-element/#post-2453879)
 *     ```
       // Always sanitize
       		foreach ( $this->posts as $i => $post ) {
       			$this->posts[$i] = sanitize_post( $post, 'raw' );
       		}
       ```
   
 * to
 *     ```
       // Sanitize before caching so it'll only get done once
       		for ( $i = 0; $i < $this->post_count; $i++ ) {
       			$this->posts[$i] = sanitize_post($this->posts[$i], 'raw');
       		}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] [Plugin: Google XML Sitemaps] XML Parsing Error: junk after document element](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-xml-parsing-error-junk-after-document-element/)
 *  [Mukesh Kumar](https://wordpress.org/support/users/goss/)
 * (@goss)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-xml-parsing-error-junk-after-document-element/#post-2453877)
 * in /wp-includes/query.php change this
 * /`/ Always sanitize
    foreach ( $this->posts as $i => $post ) { $this->posts[$
   i] = sanitize_post( $post, ‘raw’ ); }` to /`/ Sanitize before caching so it’ll
   only get done once for ( $i = 0; $i < $this->post_count; $i++ ) { $this->posts[
   $i] = sanitize_post($this->posts[$i], ‘raw’); }` Poor hack I know!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] [Plugin: Google XML Sitemaps] error on line 2 at column 1: Extra content at the end of the document](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-error-on-line-2-at-column-1-extra-content-at-the-end-of-the-document/)
 *  Thread Starter [Mukesh Kumar](https://wordpress.org/support/users/goss/)
 * (@goss)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-error-on-line-2-at-column-1-extra-content-at-the-end-of-the-document/#post-2449686)
 * Thanks **Henri** its… working….
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] [Plugin: Google XML Sitemaps] error on line 2 at column 1: Extra content at the end of the document](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-error-on-line-2-at-column-1-extra-content-at-the-end-of-the-document/)
 *  Thread Starter [Mukesh Kumar](https://wordpress.org/support/users/goss/)
 * (@goss)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-error-on-line-2-at-column-1-extra-content-at-the-end-of-the-document/#post-2449599)
 * Also i am see on firebox and enternet explore
 * **XML Parsing Error: junk after document element
    Location: [http://mukesh.co/sitemap.xml](http://mukesh.co/sitemap.xml)
   Line Number 2, Column 1:<b>Warning</b>: Invalid argument supplied for foreach()
   in <b>/home/mukeshco/public_html/wp-includes/query.php</b> on line <b>2746</b
   > ^

Viewing 7 replies - 1 through 7 (of 7 total)