Skip to content

Commit

Permalink
change to Mudlet ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
Delwing committed Apr 29, 2022
1 parent d678ce8 commit fd63045
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mudlet-release.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function mudlet_post_release()
$post_id = wp_insert_post(array(
'post_title' => $result->name,
'post_content' => '[' . self::SHORTCODE . ']' . $result->id . '[/' . self::SHORTCODE . ']',
'post_status' => 'draft',// $result->draft ? 'draft' : 'publish',
'post_status' => $result->draft ? 'draft' : 'publish',
'post_category' => array($release_category)
));
add_post_meta($post_id, 'release-post', $result->id, true);
Expand All @@ -113,7 +113,7 @@ function mudlet_post_release()
wp_update_post(array(
'ID' => $post_in_lang,
'post_title' => $result->name,
'post_status' => 'draft',// $result->draft ? 'draft' : 'publish',
'post_status' => $result->draft ? 'draft' : 'publish',
));
echo "Post ID: $post_in_lang updated.\n";
}
Expand Down Expand Up @@ -144,7 +144,7 @@ function __construct($version)

public function request_info()
{
return GetHttpWrapper::get('https://github.com/Delwing/mudlet-release-plugin/releases/latest/download/info.json', $this->cache_key);
return GetHttpWrapper::get('https://github.com/Mudlet/mudlet-release-plugin/releases/latest/download/info.json', $this->cache_key);
}

function info($res, $action, $args)
Expand Down

0 comments on commit fd63045

Please sign in to comment.