@@ -97,7 +97,9 @@ public function modify_transient($transient)
97
97
if ($ checked = $ transient ->checked ) {
98
98
$ this ->get_repository_info ();
99
99
100
- $ out_of_date = version_compare ($ this ->github_response ['tag_name ' ], $ checked [$ this ->basename ], 'gt ' );
100
+ $ tag_name = str_replace ("v " , "" , $ this ->github_response ['tag_name ' ]);
101
+ $ tag_name = str_replace ("V " , "" , $ tag_name );
102
+ $ out_of_date = version_compare ($ tag_name , $ checked [$ this ->basename ], 'gt ' );
101
103
102
104
if ($ out_of_date ) {
103
105
$ new_files = $ this ->github_response ['zipball_url ' ];
@@ -107,7 +109,7 @@ public function modify_transient($transient)
107
109
'url ' => $ this ->plugin ['PluginURI ' ],
108
110
'slug ' => $ slug ,
109
111
'package ' => $ new_files ,
110
- 'new_version ' => $ this -> github_response [ ' tag_name ' ]
112
+ 'new_version ' => $ tag_name
111
113
];
112
114
113
115
$ transient ->response [$ this ->basename ] = (object ) $ plugin ;
@@ -127,12 +129,16 @@ public function plugin_popup($result, $action, $args)
127
129
if ($ args ->slug == current (explode ('/ ' , $ this ->basename ))) {
128
130
$ this ->get_repository_info ();
129
131
$ slug = current (explode ('/ ' , $ this ->basename ));
132
+
133
+ $ tag_name = str_replace ("v " , "" , $ this ->github_response ['tag_name ' ]);
134
+ $ tag_name = str_replace ("V " , "" , $ tag_name );
135
+
130
136
$ plugin = [
131
137
'name ' => isset ($ this ->plugin ['Name ' ]) ? $ this ->plugin ['Name ' ] : '' ,
132
138
'slug ' => $ slug ,
133
139
'requires ' => '5.3 ' ,
134
140
'tested ' => '5.4 ' ,
135
- 'version ' => $ this -> github_response [ ' tag_name ' ] ,
141
+ 'version ' => $ tag_name ,
136
142
'author ' => $ this ->plugin ['Author ' ],
137
143
'author_profile ' => $ this ->plugin ['AuthorURI ' ],
138
144
'last_updated ' => $ this ->github_response ['published_at ' ],
0 commit comments