summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/sal/class.json-api-site-base.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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' );
}