Changeset 3013685
- Timestamp:
- 12/23/2023 05:02:51 PM (2 years ago)
- Location:
- easy-search-replace
- Files:
-
- 12 added
- 2 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/admin.css (added)
-
tags/1.0.1/assets/admin.js (added)
-
tags/1.0.1/easy-search-replace.php (added)
-
tags/1.0.1/inc (added)
-
tags/1.0.1/inc/options.php (added)
-
tags/1.0.1/lib (added)
-
tags/1.0.1/lib/dom.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/easy-search-replace.php (modified) (3 diffs)
-
trunk/lib (added)
-
trunk/lib/dom.php (added)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easy-search-replace/trunk/easy-search-replace.php
r3013680 r3013685 3 3 * Plugin Name: Easy Search Replace 4 4 * Description: Easy Search Replace is a plugin that allows you to search and replace text within your WordPress. 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Author: Uzair 7 7 * Author URI: https://easywpstuff.com … … 15 15 16 16 require_once 'inc/options.php'; 17 require_once 'lib/dom.php'; 17 18 18 19 function esrn_search_replace_start($buffer) { … … 34 35 // Perform the search and replace 35 36 if (!empty($selector)) { 36 $buffer = str_replace($search, $replace, $buffer); 37 $dom = esr_str_get_html($buffer, false, true, 'UTF-8', false, PHP_EOL, ' '); 38 39 $elements = $dom->find($selector); 40 41 foreach ($elements as $element) { 42 $element->innertext = str_replace($search, $replace, $element->innertext); 43 } 44 45 $buffer = $dom->save(); 37 46 } else { 38 47 $buffer = str_replace($search, $replace, $buffer); -
easy-search-replace/trunk/readme.txt
r3013680 r3013685 1 === Easy Search and Replace ===1 === Easy Search and Replace - Find and Replace url or anything or specific element === 2 2 Contributors: easywpstuff 3 3 Tags: search, replace, find replace, search replace 4 4 Requires at least: 5.0 5 Tested up to: 6. 35 Tested up to: 6.4.2 6 6 Requires PHP: 5.6 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GNU General Public License v2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Real time search and replace without altering the files or database. find and replace inside specific HTML element with CSS Selector 12 11 13 == Description == 12 14 13 The **Easy Search and Replace** plugin allows you to perform real-time text replacements without altering the actual files. It includes an optional CSS selector feature, which allows you to perform replacements within specific CSS selectors like classes, IDs, or tags.15 The **Easy Search and Replace** plugin allows you to perform real-time text, html or url replacements without altering the actual files. It includes an optional CSS selector feature, which allows you to perform replacements within specific CSS selectors like classes, IDs, or tags. 14 16 15 17 == Features == 16 18 17 - Perform real-time textreplacements without modifying original files.19 - Perform real-time HTML, text or url replacements without modifying original files. 18 20 - Specify text or code to find and replace. 19 21 - Optional CSS selector support for targeted replacements within classes, IDs, or tags.
Note: See TracChangeset
for help on using the changeset viewer.