Skip to content

Commit 02e23b8

Browse files
committed
Remove unused variables
1 parent 36baa35 commit 02e23b8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

includes/class-location-plugins.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public static function micropub_set_location( $input, $args ) {
252252
if ( ! $term ) {
253253
$term = Location_Taxonomy::get_post_location( $venue );
254254
if ( $term ) {
255-
Location_Taxonomy::set_location( $id, $term );
255+
Location_Taxonomy::set_location( $args['ID'] , $term );
256256
}
257257
}
258258
}

includes/weather/class-weather-provider-metoffice.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,6 @@ public function weather_type( $type ) {
195195
* @return string Textual Summary of Status Code.
196196
**/
197197
public static function code_map( $type ) {
198-
$conditions = array();
199-
if ( array_key_exists( $code, $conditions ) ) {
200-
return $conditions[ $code ];
201-
}
202198
$types = array(
203199
0 => 800,
204200
1 => 800,

0 commit comments

Comments
 (0)