diff options
Diffstat (limited to 'plugins/jetpack/sal/class.json-api-site-jetpack-base.php')
-rw-r--r-- | plugins/jetpack/sal/class.json-api-site-jetpack-base.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/jetpack/sal/class.json-api-site-jetpack-base.php b/plugins/jetpack/sal/class.json-api-site-jetpack-base.php index b521a10f..156fe2b0 100644 --- a/plugins/jetpack/sal/class.json-api-site-jetpack-base.php +++ b/plugins/jetpack/sal/class.json-api-site-jetpack-base.php @@ -1,5 +1,4 @@ <?php - require_once dirname( __FILE__ ) . '/class.json-api-site-base.php'; abstract class Abstract_Jetpack_Site extends SAL_Site { @@ -30,6 +29,15 @@ abstract class Abstract_Jetpack_Site extends SAL_Site { function before_render() { } + protected function wp_memory_limit() { + return $this->get_constant( 'WP_MEMORY_LIMIT' ); + } + + protected function wp_max_memory_limit() { + return $this->get_constant( 'WP_MAX_MEMORY_LIMIT' ); + } + + function after_render( &$response ) { // Add the updates only make them visible if the user has manage options permission and the site is the main site of the network if ( current_user_can( 'manage_options' ) && $this->is_main_site( $response ) ) { |