Add provider dropdown and per-project Gitea base URL to metabox

This commit is contained in:
Keith Solomon
2026-08-09 23:17:51 -05:00
parent e60a9eafb3
commit d8ce719433
3 changed files with 163 additions and 15 deletions
+12
View File
@@ -65,6 +65,18 @@ if ( ! function_exists( 'wp_remote_retrieve_header' ) ) {
if ( ! function_exists( 'error_log' ) ) {
function error_log( $message ) { /* swallow during tests */ }
}
if ( ! function_exists( 'get_post_meta' ) ) {
function get_post_meta( $post_id, $key = '', $single = false ) { return ''; }
}
if ( ! function_exists( 'update_post_meta' ) ) {
function update_post_meta( $post_id, $key, $value ) { return true; }
}
if ( ! function_exists( 'wp_unslash' ) ) {
function wp_unslash( $value ) { return $value; }
}
if ( ! function_exists( 'esc_url_raw' ) ) {
function esc_url_raw( $url ) { return $url; }
}
// Minimal WP_Error stub if Brain\Monkey doesn't supply one.
if ( ! class_exists( 'WP_Error' ) ) {