@@ -8,9 +8,6 @@ function pmpro_init() {
8
8
require_once (PMPRO_DIR . '/includes/states.php ' );
9
9
require_once (PMPRO_DIR . '/includes/currencies.php ' );
10
10
11
- // Block styles loaded early in frontend and dashboard.
12
- wp_enqueue_style ( 'pmpro_blocks_style ' , plugins_url ( 'css/blocks.style.css ' , dirname (__FILE__ ), array (), PMPRO_VERSION , 'screen ' ) );
13
-
14
11
if ( is_admin () ) {
15
12
// Admin scripts and styles. We could use the admin_enqueue_scripts, but this works too.
16
13
@@ -26,9 +23,6 @@ function pmpro_init() {
26
23
));
27
24
wp_enqueue_script ( 'pmpro_admin ' );
28
25
29
- // Block styles loaded in the editor only.
30
- wp_enqueue_style ( 'pmpro_blocks_editor ' , plugins_url ( 'css/blocks.editor.css ' , dirname (__FILE__ ), array (), PMPRO_VERSION , 'screen ' ) );
31
-
32
26
$ admin_css_rtl = false ;
33
27
if (file_exists (get_stylesheet_directory () . "/paid-memberships-pro/css/admin.css " )) {
34
28
$ admin_css = get_stylesheet_directory_uri () . "/paid-memberships-pro/css/admin.css " ;
@@ -157,20 +151,6 @@ function pmpro_pages_shortcode($atts, $content=null, $code="")
157
151
{
158
152
global $ pmpro_page_name ;
159
153
$ temp_content = pmpro_loadTemplate ($ pmpro_page_name , 'local ' , 'pages ' );
160
-
161
- /*
162
- ob_start();
163
-
164
- if(file_exists(get_stylesheet_directory() . "/paid-memberships-pro/pages/" . $pmpro_page_name . ".php"))
165
- include(get_stylesheet_directory() . "/paid-memberships-pro/pages/" . $pmpro_page_name . ".php");
166
- elseif(file_exists(get_template_directory() . "/paid-memberships-pro/pages/" . $pmpro_page_name . ".php"))
167
- include(get_template_directory() . "/paid-memberships-pro/pages/" . $pmpro_page_name . ".php");
168
- else
169
- include(PMPRO_DIR . "/pages/" . $pmpro_page_name . ".php");
170
-
171
- $temp_content = ob_get_contents();
172
- // ob_end_clean();
173
- */
174
154
return apply_filters ("pmpro_pages_shortcode_ " . $ pmpro_page_name , $ temp_content );
175
155
}
176
156
add_shortcode ("pmpro_ " . $ pmpro_page_name , "pmpro_pages_shortcode " );
0 commit comments