Plugin Directory

Changeset 2983454


Ignore:
Timestamp:
10/25/2023 06:32:20 AM (2 years ago)
Author:
outranking
Message:

Version 1.1.3 updated

Location:
outranking
Files:
28 added
4 edited

Legend:

Unmodified
Added
Removed
  • outranking/trunk/README.txt

    r2981703 r2983454  
    55Tested up to: 6.1.1
    66Requires PHP: 5.6
    7 Stable tag: 1.0.5
     7Stable tag: 1.1.3
    88License: GNU General Public License v3 or later
    99License URL: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    5555= v1.1.2 : Sep 22 2023 =
    5656- 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  
    193193        'args' => array(),
    194194        // 'permission_callback' => __NAMESPACE__ . 'outranking_api_check_authentication',
    195         'permission_callback'=>function(){ return true; }
     195        'permission_callback' => function () {
     196            return true;
     197        }
    196198    ));
    197199}
     
    230232     * @since 1.1.0
    231233     */
    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    /**
    235237     * Check if find text exists in the content
    236238     * @since 1.1.0
    237239     */
    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)) {
    239242        return new WP_Error('invalid_find_text', 'Provided find_text is not present in the content', array('status' => 400));
    240243    }
     
    243246     * @since 1.1.0
    244247     */
    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    /**
    248252     * Check if content is replaced
    249253     * @since 1.1.0
    250254     */
    251     if (!stripos($new_content, wptexturize($data['replace_text']))) {
     255    if (!stripos($new_content, $replace_text_formatted)) {
    252256        return new WP_Error('unable_to_replace', 'Unable to replace the provided text', array('status' => 500));
    253257    }
     
    395399            $post_type = get_post_type();
    396400            $matching_urls[] = array('url' => $url, 'type' => $post_type);
    397          
    398401        }
    399402        wp_reset_postdata();
  • outranking/trunk/changelog.txt

    r2981703 r2983454  
    3939===== v1.1.2 : Sep 22 2023 =====
    4040- 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  
    33Plugin Name: Outranking
    44Description: Outranking Extension for WordPress
    5 Version: 1.1.2
     5Version: 1.1.3
    66Author: Outranking LLC
    77Author URI: https://www.outranking.io/
Note: See TracChangeset for help on using the changeset viewer.