Skip to content

Commit d9e57cf

Browse files
author
Chandra Patel
committed
Update inline documentation and remove un-necessary variable
1 parent 355d2d6 commit d9e57cf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

nginx-helper.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ function nginx_settings_link( $links )
402402
}
403403

404404
/**
405-
* Get latest news from https://rtcamp.com
405+
* Get latest news
406406
*
407407
* @return void
408408
*/
@@ -414,15 +414,12 @@ function rt_nginx_get_news() {
414414
return;
415415
}
416416

417-
$feed_url = 'http://rtcamp.com/blog/feed/';
418-
419-
// Get RSS Feed.
420417
require_once( ABSPATH . WPINC . '/feed.php' );
421418

422419
$maxitems = 0;
423420

424421
// Get a SimplePie feed object from the specified feed source.
425-
$rss = fetch_feed( $feed_url );
422+
$rss = fetch_feed( 'http://rtcamp.com/blog/feed/' );
426423

427424
// Checks that the object is created correctly.
428425
if ( ! is_wp_error( $rss ) ) {

0 commit comments

Comments
 (0)