Make WordPress Core

Ticket #51416: 51416-class-wp-sitemaps-taxonomies.2.patch

File 51416-class-wp-sitemaps-taxonomies.2.patch, 885 bytes (added by ravipatel, 4 years ago)

short code for a link issue.

  • class-wp-sitemaps-taxonomies.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: F:\xampp\htdocs\projects\wordpress\wordpress-svn\src\wp-includes\sitemaps\providers
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    9999
    100100                if ( ! empty( $taxonomy_terms->terms ) ) {
    101101                        foreach ( $taxonomy_terms->terms as $term ) {
     102                                if(empty($term)){
     103                                    continue;
     104                                }
    102105                                $sitemap_entry = array(
    103106                                        'loc' => get_term_link( $term ),
    104107                                );