Plugin Directory

Changeset 3333801


Ignore:
Timestamp:
07/24/2025 04:17:31 PM (8 months ago)
Author:
heynota
Message:

Update to version 0.17.3 from GitHub

Location:
nota-ai-tools
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • nota-ai-tools/tags/0.17.3/includes/class-nota-wp-rest.php

    r3318413 r3333801  
    4040     */
    4141    private function trim_html( $html ) {
    42         // Replace <br> tags with a space before stripping tags to prevent words from sticking together.
    43         $html = preg_replace( '/<br\s*\/?>/i', "\n", $html );
    44 
    45         // strip HTML tags from text.
    46         $text = wp_strip_all_tags( $html );
    47         $text = substr( $text, 0, 12000 );
    48    
    49         // Decode HTML entities to their corresponding characters.
    50         $text = html_entity_decode( $text, ENT_QUOTES, 'UTF-8' );
    51    
     42        // Replace <br> tags with a space before stripping tags to prevent concatenation.
     43        $text = preg_replace( '/<br\s*\/?>/i', "\n", $html );
     44        // Remove shortcodes.
     45        $text = strip_shortcodes( $html );
     46        // Remove HTML tags.
     47        $text = wp_strip_all_tags( $text );
     48        // Decode HTML entities.
     49        $text = html_entity_decode( $text, ENT_QUOTES | ENT_HTML5, 'UTF-8' );
    5250        // Normalize line breaks.
    5351        $text = preg_replace( '/\n+/', "\n", $text );
    54    
     52        // Trim to 60000 characters to meet our length limit.
     53        $text = substr( $text, 0, 60000 );
     54
    5555        return $text;
    5656    }
  • nota-ai-tools/tags/0.17.3/nota-wordpress-plugin.php

    r3318413 r3333801  
    33 * Plugin Name: Nota Tools
    44 * Description: Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more.
    5  * Version: 0.17.2
     5 * Version: 0.17.3
    66 * Author: Nota
    77 * Author URI: https://heynota.com
     
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 define( 'NOTA_PLUGIN_VERSION', '0.17.2' );
     16define( 'NOTA_PLUGIN_VERSION', '0.17.3' );
    1717
    1818if ( ! defined( 'NOTA_PLUGIN_FILE' ) ) {
  • nota-ai-tools/tags/0.17.3/readme.txt

    r3318413 r3333801  
    44License URI: http://www.gnu.org/licenses/gpl.html
    55Requires PHP: 7.2.5
    6 Stable tag: 0.17.2
     6Stable tag: 0.17.3
    77Tested up to: 6.7.2
    88
  • nota-ai-tools/trunk/includes/class-nota-wp-rest.php

    r3318413 r3333801  
    4040     */
    4141    private function trim_html( $html ) {
    42         // Replace <br> tags with a space before stripping tags to prevent words from sticking together.
    43         $html = preg_replace( '/<br\s*\/?>/i', "\n", $html );
    44 
    45         // strip HTML tags from text.
    46         $text = wp_strip_all_tags( $html );
    47         $text = substr( $text, 0, 12000 );
    48    
    49         // Decode HTML entities to their corresponding characters.
    50         $text = html_entity_decode( $text, ENT_QUOTES, 'UTF-8' );
    51    
     42        // Replace <br> tags with a space before stripping tags to prevent concatenation.
     43        $text = preg_replace( '/<br\s*\/?>/i', "\n", $html );
     44        // Remove shortcodes.
     45        $text = strip_shortcodes( $html );
     46        // Remove HTML tags.
     47        $text = wp_strip_all_tags( $text );
     48        // Decode HTML entities.
     49        $text = html_entity_decode( $text, ENT_QUOTES | ENT_HTML5, 'UTF-8' );
    5250        // Normalize line breaks.
    5351        $text = preg_replace( '/\n+/', "\n", $text );
    54    
     52        // Trim to 60000 characters to meet our length limit.
     53        $text = substr( $text, 0, 60000 );
     54
    5555        return $text;
    5656    }
  • nota-ai-tools/trunk/nota-wordpress-plugin.php

    r3318413 r3333801  
    33 * Plugin Name: Nota Tools
    44 * Description: Nota’s assistive AI tools help publishers create headlines, summaries, SEO keywords and more.
    5  * Version: 0.17.2
     5 * Version: 0.17.3
    66 * Author: Nota
    77 * Author URI: https://heynota.com
     
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 define( 'NOTA_PLUGIN_VERSION', '0.17.2' );
     16define( 'NOTA_PLUGIN_VERSION', '0.17.3' );
    1717
    1818if ( ! defined( 'NOTA_PLUGIN_FILE' ) ) {
  • nota-ai-tools/trunk/readme.txt

    r3318413 r3333801  
    44License URI: http://www.gnu.org/licenses/gpl.html
    55Requires PHP: 7.2.5
    6 Stable tag: 0.17.2
     6Stable tag: 0.17.3
    77Tested up to: 6.7.2
    88
Note: See TracChangeset for help on using the changeset viewer.