Changeset 2983454
- Timestamp:
- 10/25/2023 06:32:20 AM (2 years ago)
- Location:
- outranking
- Files:
-
- 28 added
- 4 edited
-
tags/1.1.3 (added)
-
tags/1.1.3/README.txt (added)
-
tags/1.1.3/api (added)
-
tags/1.1.3/api/api.php (added)
-
tags/1.1.3/assets (added)
-
tags/1.1.3/assets/css (added)
-
tags/1.1.3/assets/css/outranking_admin.css (added)
-
tags/1.1.3/assets/images (added)
-
tags/1.1.3/assets/images/error.svg (added)
-
tags/1.1.3/assets/images/export.svg (added)
-
tags/1.1.3/assets/images/import.svg (added)
-
tags/1.1.3/assets/images/map-pin.svg (added)
-
tags/1.1.3/assets/images/outranking_dark_long.png (added)
-
tags/1.1.3/assets/images/outranking_white_long.png (added)
-
tags/1.1.3/assets/images/setting.svg (added)
-
tags/1.1.3/assets/images/time.svg (added)
-
tags/1.1.3/assets/images/user-profile.jpg (added)
-
tags/1.1.3/assets/index.php (added)
-
tags/1.1.3/assets/js (added)
-
tags/1.1.3/assets/js/outranking_admin.js (added)
-
tags/1.1.3/changelog.txt (added)
-
tags/1.1.3/inc (added)
-
tags/1.1.3/inc/ajax.php (added)
-
tags/1.1.3/inc/core.php (added)
-
tags/1.1.3/inc/index.php (added)
-
tags/1.1.3/inc/metabox.php (added)
-
tags/1.1.3/index.php (added)
-
tags/1.1.3/outranking.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/api/api.php (modified) (4 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/outranking.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
outranking/trunk/README.txt
r2981703 r2983454 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 5.6 7 Stable tag: 1. 0.57 Stable tag: 1.1.3 8 8 License: GNU General Public License v3 or later 9 9 License URL: https://www.gnu.org/licenses/gpl-3.0.en.html … … 55 55 = v1.1.2 : Sep 22 2023 = 56 56 - Content filteration for image, iframe and anchor tag 57 58 = v1.1.3 : Oct 25 2023 = 59 - Bug Fixes -
outranking/trunk/api/api.php
r2981703 r2983454 193 193 'args' => array(), 194 194 // 'permission_callback' => __NAMESPACE__ . 'outranking_api_check_authentication', 195 'permission_callback'=>function(){ return true; } 195 'permission_callback' => function () { 196 return true; 197 } 196 198 )); 197 199 } … … 230 232 * @since 1.1.0 231 233 */ 232 $post_content = apply_filters('the_content', wptexturize(get_post_field('post_content', $post_id)));233 // print_r($post_content);234 /**234 $post_content = html_entity_decode(apply_filters('the_content', wptexturize(get_post_field('post_content', $post_id)))); 235 // print_r($post_content); 236 /** 235 237 * Check if find text exists in the content 236 238 * @since 1.1.0 237 239 */ 238 if (!stripos($post_content, wptexturize($data['find_text']))) { 240 $find_text_formatted = html_entity_decode(wptexturize($data['find_text'])); 241 if (!stripos($post_content, $find_text_formatted)) { 239 242 return new WP_Error('invalid_find_text', 'Provided find_text is not present in the content', array('status' => 400)); 240 243 } … … 243 246 * @since 1.1.0 244 247 */ 245 $new_content = str_replace(wptexturize($data['find_text']), wptexturize($data['replace_text']),$post_content); 246 247 /** 248 $replace_text_formatted = html_entity_decode(wptexturize($data['replace_text'])); 249 $new_content = str_replace($find_text_formatted, $replace_text_formatted, $post_content); 250 251 /** 248 252 * Check if content is replaced 249 253 * @since 1.1.0 250 254 */ 251 if (!stripos($new_content, wptexturize($data['replace_text']))) {255 if (!stripos($new_content, $replace_text_formatted)) { 252 256 return new WP_Error('unable_to_replace', 'Unable to replace the provided text', array('status' => 500)); 253 257 } … … 395 399 $post_type = get_post_type(); 396 400 $matching_urls[] = array('url' => $url, 'type' => $post_type); 397 398 401 } 399 402 wp_reset_postdata(); -
outranking/trunk/changelog.txt
r2981703 r2983454 39 39 ===== v1.1.2 : Sep 22 2023 ===== 40 40 - Content filteration for image, iframe and anchor tag 41 42 ===== v1.1.3 : Oct 25 2023 ===== 43 - Bug Fixes -
outranking/trunk/outranking.php
r2981703 r2983454 3 3 Plugin Name: Outranking 4 4 Description: Outranking Extension for WordPress 5 Version: 1.1. 25 Version: 1.1.3 6 6 Author: Outranking LLC 7 7 Author URI: https://www.outranking.io/
Note: See TracChangeset
for help on using the changeset viewer.