Skip to content

Commit

Permalink
Rename to MB Text Limiter & Fix issues with Plugin Check (PCP)
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Oct 7, 2024
1 parent 0b48289 commit d01fcdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Meta Box Text Limiter ===
=== MB Text Limiter ===
Contributors: metabox, rilwis, paracetamol27
Donate link: https://metabox.io
Tags: custom fields, meta box, text limit
Requires at least: 5.9
Tested up to: 6.6.2
Stable tag: 1.2.1
Stable tag: 1.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -64,6 +64,10 @@ To start using text limiter, just add the following parameters to `text` or `tex

== Changelog ==

= 1.2.2 - 2024-10-07 =
- Rename to MB Text Limiter
- Fix issues with Plugin Check (PCP)

= 1.2.1 - 2024-09-12 =
- Do not count HTML tags

Expand Down
8 changes: 5 additions & 3 deletions text-limiter.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
/**
* Plugin Name: Meta Box Text Limiter
* Plugin Name: MB Text Limiter
* Plugin URI: https://metabox.io/plugins/meta-box-text-limiter/
* Description: Limit number of characters or words entered for text, textarea, and wysiwyg fields.
* Version: 1.2.1
* Version: 1.2.2
* Author: MetaBox.io
* Author URI: https://metabox.io
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

if ( ! class_exists( 'MB_Text_Limiter' ) ) {
Expand Down Expand Up @@ -79,7 +81,7 @@ public function get_value( $value, $field ) {
return $value;
}

$value = strip_tags( $value );
$value = strip_tags( $value ); // phpcs:ignore

$type = isset( $field['limit_type'] ) ? $field['limit_type'] : 'character';
if ( 'character' === $type ) {
Expand Down

0 comments on commit d01fcdd

Please sign in to comment.