Skip to content

Commit

Permalink
Cleaned up most leftover inline comment style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarst committed Jun 5, 2015
1 parent 24d8a6a commit f09252f
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 17 deletions.
9 changes: 5 additions & 4 deletions admin/class-sitemaps-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ function delete_sitemaps() {
if ( $options['enablexmlsitemap'] === true ) {

$file_to_check_for = array(
// ABSPATH . 'sitemap.xml',
// ABSPATH . 'sitemap.xslt',
// ABSPATH . 'sitemap.xsl',
/**
* ABSPATH . 'sitemap.xml',
* ABSPATH . 'sitemap.xslt',
* ABSPATH . 'sitemap.xsl',
*/
ABSPATH . 'sitemap_index.xml',
);

Expand Down Expand Up @@ -56,7 +58,6 @@ function delete_sitemaps() {
* @param string $new_status New post status.
* @param string $old_status Old post status.
* @param \WP_Post $post Post object.
*/
function status_transition( $new_status, $old_status, $post ) {
if ( $new_status != 'publish' ) {
Expand Down
4 changes: 3 additions & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?php
//Nothing to see here.
/**
* Nothing to see here.
*/
4 changes: 3 additions & 1 deletion css/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?php
//Nothing to see here.
/**
* Nothing to see here.
*/
4 changes: 3 additions & 1 deletion frontend/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?php
//Nothing to see here.
/**
* Nothing to see here.
*/
4 changes: 3 additions & 1 deletion images/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?php
//Nothing to see here.
/**
* Nothing to see here.
*/
1 change: 0 additions & 1 deletion inc/class-sitemaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ function build_root_map() {
// Must use custom raw query because WP User Query does not support ordering by usermeta.
// Retrieve the newest updated profile timestamp overall.
// TODO order by usermeta supported since WP 3.7, update implementation? R.

$date_query = "
SELECT mt1.meta_value FROM $wpdb->users
INNER JOIN $wpdb->usermeta ON ($wpdb->users.ID = $wpdb->usermeta.user_id)
Expand Down
4 changes: 3 additions & 1 deletion inc/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?php
//Nothing to see here.
/**
* Nothing to see here.
*/
4 changes: 0 additions & 4 deletions inc/wpseo-non-ajax-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ function wpseo_title_test() {
);
$resp = wp_remote_get( get_bloginfo( 'url' ), $args );

// echo '<pre>'.$resp['body'].'</pre>';

if ( ( $resp && ! is_wp_error( $resp ) ) && ( 200 == $resp['response']['code'] && isset( $resp['body'] ) ) ) {
$res = preg_match( '`<title>([^<]+)</title>`im', $resp['body'], $matches );

Expand Down Expand Up @@ -60,8 +58,6 @@ function wpseo_title_test() {
}

// Commented out? add_filter( 'switch_theme', 'wpseo_title_test', 0 ); R.


/**
* Test whether the active theme contains a <meta> description tag.
*
Expand Down
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?php
//Nothing to see here.
/**
* Nothing to see here.
*/
4 changes: 3 additions & 1 deletion js/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?php
//Nothing to see here.
/**
* Nothing to see here.
*/
4 changes: 3 additions & 1 deletion languages/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?php
//Nothing to see here
/**
* Nothing to see here
*/

0 comments on commit f09252f

Please sign in to comment.