summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/sal/class.json-api-site-base.php')
-rw-r--r--plugins/jetpack/sal/class.json-api-site-base.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/jetpack/sal/class.json-api-site-base.php b/plugins/jetpack/sal/class.json-api-site-base.php
index 848ee90c..a124512a 100644
--- a/plugins/jetpack/sal/class.json-api-site-base.php
+++ b/plugins/jetpack/sal/class.json-api-site-base.php
@@ -51,6 +51,8 @@ abstract class SAL_Site {
abstract public function is_mapped_domain();
+ abstract public function get_unmapped_url();
+
abstract public function is_redirect();
abstract public function is_headstart_fresh();
@@ -93,6 +95,8 @@ abstract class SAL_Site {
abstract public function get_podcasting_archive();
+ abstract public function get_import_engine();
+
abstract public function get_jetpack_seo_front_page_description();
abstract public function get_jetpack_seo_title_formats();
@@ -175,7 +179,7 @@ abstract class SAL_Site {
switch ( $context ) {
case 'edit' :
- if ( ! current_user_can( 'edit_post', $post ) ) {
+ if ( ! current_user_can( 'edit_post', $post->ID ) ) {
return new WP_Error( 'unauthorized', 'User cannot edit post', 403 );
}
break;
@@ -380,7 +384,7 @@ abstract class SAL_Site {
}
function get_xmlrpc_url() {
- $xmlrpc_scheme = apply_filters( 'wpcom_json_api_xmlrpc_scheme', parse_url( get_option( 'home' ), PHP_URL_SCHEME ) );
+ $xmlrpc_scheme = apply_filters( 'wpcom_json_api_xmlrpc_scheme', wp_parse_url( get_option( 'home' ), PHP_URL_SCHEME ) );
return site_url( 'xmlrpc.php', $xmlrpc_scheme );
}
@@ -477,10 +481,6 @@ abstract class SAL_Site {
return get_admin_url();
}
- function get_unmapped_url() {
- return get_site_url( get_current_blog_id() );
- }
-
function get_theme_slug() {
return get_option( 'stylesheet' );
}