Changeset 2659749
- Timestamp:
- 01/19/2022 03:14:24 AM (4 years ago)
- Location:
- wp-post-modal
- Files:
-
- 3 edited
- 5 copied
-
tags/3.7.0 (copied) (copied from wp-post-modal/trunk)
-
tags/3.7.0/README.md (copied) (copied from wp-post-modal/trunk/README.md) (1 diff)
-
tags/3.7.0/public/class-wp-post-modal-public.php (copied) (copied from wp-post-modal/trunk/public/class-wp-post-modal-public.php) (5 diffs)
-
tags/3.7.0/readme.txt (copied) (copied from wp-post-modal/trunk/readme.txt) (2 diffs)
-
tags/3.7.0/wp-post-modal.php (copied) (copied from wp-post-modal/trunk/wp-post-modal.php)
-
trunk/README.md (modified) (1 diff)
-
trunk/public/class-wp-post-modal-public.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-post-modal/tags/3.7.0/README.md
r2448293 r2659749 89 89 ## Changelog 90 90 91 - 3.7.0: Security fixes 91 92 - 3.6.3: Minor fix 92 93 - 3.6.2: Namespaced modal class -
wp-post-modal/tags/3.7.0/public/class-wp-post-modal-public.php
r2448293 r2659749 56 56 $this->plugin_name = $plugin_name; 57 57 $this->version = $version; 58 59 58 } 60 59 … … 80 79 81 80 wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__) . 'css/wp-post-modal-public.css', array(), $this->version, 'all'); 82 83 81 } 84 82 … … 142 140 143 141 echo $HTML; 144 145 142 } 146 143 … … 161 158 ), 162 159 )); 163 164 160 } 165 161 … … 184 180 185 181 // get title by slug 186 $return = get_page_by_path($slug, ARRAY_A, get_post_types()); 187 188 if ($return['post_content']) { 182 $post = get_page_by_path($slug, ARRAY_A, get_post_types()); 183 184 if (!empty($post['post_password'])) { 185 $response = new WP_Error('post_password_protected', 'Post is password protected', array('status' => 403)); 186 } elseif ($post['post_status'] === "private") { 187 $response = new WP_Error('post_private', 'Post is private', array('status' => 403)); 188 } elseif ($post['post_content']) { 189 189 // render shortcodes from Visual Composer 190 $ return['post_content'] = apply_filters('the_content', $return['post_content']);191 $response = new WP_REST_Response($ return);190 $post['post_content'] = apply_filters('the_content', $post['post_content']); 191 $response = new WP_REST_Response($post); 192 192 } else { 193 193 $response = new WP_Error('post_empty', 'Post is empty', array('status' => 404)); -
wp-post-modal/tags/3.7.0/readme.txt
r2567796 r2659749 4 4 Donate link: https://allurewebsolutions.com/product/donation 5 5 Requires at least: 3.0 6 Tested up to: 5.8 6 Tested up to: 5.8.2 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 89 90 90 == Changelog == 91 5.7.0: Security fixes 91 92 3.6.3: Minor fix 92 93 3.6.2: Namespaced modal class -
wp-post-modal/trunk/README.md
r2448293 r2659749 89 89 ## Changelog 90 90 91 - 3.7.0: Security fixes 91 92 - 3.6.3: Minor fix 92 93 - 3.6.2: Namespaced modal class -
wp-post-modal/trunk/public/class-wp-post-modal-public.php
r2448293 r2659749 56 56 $this->plugin_name = $plugin_name; 57 57 $this->version = $version; 58 59 58 } 60 59 … … 80 79 81 80 wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__) . 'css/wp-post-modal-public.css', array(), $this->version, 'all'); 82 83 81 } 84 82 … … 142 140 143 141 echo $HTML; 144 145 142 } 146 143 … … 161 158 ), 162 159 )); 163 164 160 } 165 161 … … 184 180 185 181 // get title by slug 186 $return = get_page_by_path($slug, ARRAY_A, get_post_types()); 187 188 if ($return['post_content']) { 182 $post = get_page_by_path($slug, ARRAY_A, get_post_types()); 183 184 if (!empty($post['post_password'])) { 185 $response = new WP_Error('post_password_protected', 'Post is password protected', array('status' => 403)); 186 } elseif ($post['post_status'] === "private") { 187 $response = new WP_Error('post_private', 'Post is private', array('status' => 403)); 188 } elseif ($post['post_content']) { 189 189 // render shortcodes from Visual Composer 190 $ return['post_content'] = apply_filters('the_content', $return['post_content']);191 $response = new WP_REST_Response($ return);190 $post['post_content'] = apply_filters('the_content', $post['post_content']); 191 $response = new WP_REST_Response($post); 192 192 } else { 193 193 $response = new WP_Error('post_empty', 'Post is empty', array('status' => 404)); -
wp-post-modal/trunk/readme.txt
r2567796 r2659749 4 4 Donate link: https://allurewebsolutions.com/product/donation 5 5 Requires at least: 3.0 6 Tested up to: 5.8 6 Tested up to: 5.8.2 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 89 90 90 == Changelog == 91 5.7.0: Security fixes 91 92 3.6.3: Minor fix 92 93 3.6.2: Namespaced modal class
Note: See TracChangeset
for help on using the changeset viewer.