File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ private function check_update_uri( $updateUri ) {
77
77
) {
78
78
$ updateUri = untrailingslashit ( trim ( $ updateUri ) );
79
79
} else {
80
- return new \WP_Error ( 'poorly_formed_header_data ' , 'Poorly formed data from Update URI header ' , $ updateUri );
80
+ return new \WP_Error ( 'invalid_header_data ' , 'Invalid data from Update URI header ' , $ updateUri );
81
81
}
82
82
83
83
return $ updateUri ;
@@ -101,7 +101,7 @@ public function run() {
101
101
}
102
102
103
103
if ( empty ( $ this ->update_server ) || is_wp_error ( $ this ->update_server ) ) {
104
- return new \WP_Error ( 'bad_domain ' , 'Bad or empty update server domain ' , $ this ->update_server );
104
+ return new \WP_Error ( 'invalid_domain ' , 'Invalid update server domain ' , $ this ->update_server );
105
105
}
106
106
$ url = "$ this ->update_server /wp-json/git-updater/v1/update-api/?slug= $ this ->slug " ;
107
107
$ response = get_site_transient ( "git-updater-lite_ {$ this ->file }" );
You can’t perform that action at this time.
0 commit comments