File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ export default class Sitemapper {
331
331
} else {
332
332
let fields = { } ;
333
333
for ( const [ field , active ] of Object . entries ( this . fields ) ) {
334
- if ( active ) {
334
+ if ( active && site [ field ] ) {
335
335
fields [ field ] = site [ field ] [ 0 ]
336
336
}
337
337
}
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ describe('Sitemapper', function () {
119
119
} ) ;
120
120
} ) ;
121
121
122
- it ( 'https://www.channable .com/sitemap.xml sitemaps should contain extra fields' , function ( done ) {
122
+ it ( 'https://wp.seantburke .com/sitemap.xml sitemaps should contain extra fields' , function ( done ) {
123
123
this . timeout ( 30000 ) ;
124
- const url = 'https://www.channable .com/sitemap.xml' ;
124
+ const url = 'https://wp.seantburke .com/sitemap.xml' ;
125
125
sitemapper = new Sitemapper ( {
126
126
fields : { "loc" : true ,
127
127
"lastmod" : true ,
You can’t perform that action at this time.
0 commit comments