Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Jul 12, 2016
1 parent 45fc39e commit 5bf99ad
Showing 1 changed file with 34 additions and 32 deletions.
66 changes: 34 additions & 32 deletions modules/aioseop_sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function __construct() {
function update_sitemap_from_posts( $new_status, $old_status, $post ) {

if ( $this->option_isset( 'rewrite' ) ) {
// TODO if dynamic, delete transient (we currently don't do transients)
// TODO if dynamic, delete transient (we currently don't do transients).
return;
}

Expand Down Expand Up @@ -652,8 +652,7 @@ function filter_display_options( $options ) {
} else {
$privacy_link = '<a href="options-privacy.php">' . __( 'Privacy Settings', 'all-in-one-seo-pack' ) . '</a>';
}
$options[ $this->prefix . 'link' ] .= '<p class="aioseop_error_notice">' . sprintf( __( 'Warning: your privacy settings are configured to ask search engines to not index your site; you can change this under %s for your blog.',
'all-in-one-seo-pack' ), $privacy_link );
$options[ $this->prefix . 'link' ] .= '<p class="aioseop_error_notice">' . sprintf( __( 'Warning: your privacy settings are configured to ask search engines to not index your site; you can change this under %s for your blog.', 'all-in-one-seo-pack' ), $privacy_link );
}
if ( $this->option_isset( 'debug' ) ) {
$debug_msg = esc_html( $options["{$this->prefix}debug"] );
Expand Down Expand Up @@ -1130,8 +1129,8 @@ function log_start() {
* Stop timing and log memory usage for debug info.
*
* @param string $sitemap_type
* @param bool $compressed
* @param bool $dynamic
* @param bool $compressed
* @param bool $dynamic
*/
function log_stats( $sitemap_type = 'static', $compressed = false, $dynamic = true ) {
$time = timer_stop();
Expand Down Expand Up @@ -1195,6 +1194,9 @@ function sitemap_output_hook( $query ) {
}
}

/**
* Make dynamic xsl.
*/
function make_dynamic_xsl() {
// Make dynamic xsl file.
if ( preg_match( '#(/sitemap\.xsl)$#i', $_SERVER['REQUEST_URI'] ) ) {
Expand All @@ -1208,7 +1210,7 @@ function make_dynamic_xsl() {
/**
* Get sitemap data.
*
* @param $sitemap_type
* @param $sitemap_type
* @param int $page
*
* @return mixed|void
Expand Down Expand Up @@ -1253,7 +1255,7 @@ function get_sitemap_data( $sitemap_type, $page = 0 ) {
*
* Output sitemaps dynamically based on rewrite rules.
*
* @param $sitemap_type
* @param $sitemap_type
* @param int $page
*/
function do_rewrite_sitemap( $sitemap_type, $page = 0 ) {
Expand Down Expand Up @@ -1389,8 +1391,8 @@ function write_sitemaps( $filename, $contents ) {
*
* Write a single sitemap to the filesystem, handle compression.
*
* @param $filename
* @param $contents
* @param $filename
* @param $contents
* @param bool $gzip
*
* @return bool
Expand All @@ -1411,11 +1413,11 @@ function write_sitemap( $filename, $contents, $gzip = false ) {
*
* Helper function for handling default values.
*
* @param $defaults
* @param $prefix
* @param $cache
* @param $item
* @param bool $nodefaults
* @param $defaults
* @param $prefix
* @param $cache
* @param $item
* @param bool $nodefaults
* @param string $type
*
* @return bool
Expand Down Expand Up @@ -1460,8 +1462,8 @@ function get_default_values( $defaults, $prefix, &$cache, $item, $nodefaults = f
/**
* Get priority settings for sitemap entries.
*
* @param $item
* @param bool $nodefaults
* @param $item
* @param bool $nodefaults
* @param string $type
*
* @return bool
Expand All @@ -1484,8 +1486,8 @@ function get_default_priority( $item, $nodefaults = false, $type = '' ) {
/**
* Get frequency settings for sitemap entries.
*
* @param $item
* @param bool $nodefaults
* @param $item
* @param bool $nodefaults
* @param string $type
*
* @return bool
Expand Down Expand Up @@ -1628,8 +1630,8 @@ function get_sitemap_index_filenames() {
/**
* Build the sitemap.
*
* @param $sitemap_type
* @param int $page
* @param $sitemap_type
* @param int $page
* @param string $filename
* @param string $comment
*
Expand Down Expand Up @@ -1657,8 +1659,8 @@ function do_build_sitemap( $sitemap_type, $page = 0, $filename = '', $comment =
/**
* Write the sitemap.
*
* @param $sitemap_type
* @param int $page
* @param $sitemap_type
* @param int $page
* @param string $filename
* @param string $comment
*/
Expand Down Expand Up @@ -1856,7 +1858,7 @@ function get_sitemap_xsl() {
/**
* Output the XML for a sitemap.
*
* @param $urls
* @param $urls
* @param string $comment
*
* @return null
Expand Down Expand Up @@ -1950,7 +1952,7 @@ function output_sitemap( $urls, $comment = '' ) {
/**
* Output the XML for a sitemap index.
*
* @param $urls
* @param $urls
* @param string $comment
*
* @return null
Expand Down Expand Up @@ -1991,7 +1993,7 @@ function output_sitemap_index( $urls, $comment = '' ) {
/**
* Return an XML sitemap index as a string.
*
* @param $urls
* @param $urls
* @param string $comment
*
* @return string
Expand All @@ -2006,7 +2008,7 @@ function build_sitemap_index( $urls, $comment = '' ) {
/**
* Return an XML sitemap as a string.
*
* @param $urls
* @param $urls
* @param string $comment
*
* @return string
Expand Down Expand Up @@ -2273,7 +2275,7 @@ function get_addl_page_links() {
/**
* Scores posts based on date and relative comment count, if any.
*
* @param $date
* @param $date
* @param int $stats
*
* @return array
Expand Down Expand Up @@ -2463,9 +2465,9 @@ function get_comment_count_stats( $posts ) {
/**
* Generate sitemap priority data from an array of posts.
*
* @param $posts
* @param bool $prio_override
* @param bool $freq_override
* @param $posts
* @param bool $prio_override
* @param bool $freq_override
* @param string $linkfunc
*
* @return array
Expand Down Expand Up @@ -2617,7 +2619,7 @@ function get_author_prio_data() {
*
* @param string $include
* @param string $status
* @param int $page
* @param int $page
*
* @return array
*/
Expand Down Expand Up @@ -2709,7 +2711,7 @@ function cache_options() {
/**
* Call get_term_link with caching in place.
*
* @param $term
* @param $term
* @param string $taxonomy
*
* @return string|WP_Error
Expand Down

0 comments on commit 5bf99ad

Please sign in to comment.