String Locator

外掛說明

When working on themes and plugins you often notice a piece of text that appears hardcoded into the files, you need to modify it, but you don’t know what theme or plugin it’s in, and certainly not which individual file to look in.

Easily search through your themes, plugins or even WordPress core and be presented with a list of files, the matched text and what line of the file matched your search.
You can then quickly make edits directly in your browser by clicking the link from the search results.

By default a consistency check is performed when making edits to files, this will look for inconsistencies with braces, brackets and parenthesis that are often accidentally left in.
This drastically reduces the risk of breaking your site when making edits, but is in no way an absolute guarantee.

Create a replica of your live site a.k.a – WordPress Staging site before testing substitutions.

螢幕擷圖

  • Searching WordPress for the string hello dolly.
  • Search screen when editing is disabled.
  • Having clicked the link for one of the results and being taken to the editor in the browser.
  • Smart-Scan has detected an inconsistency in the use of braces.

常見問題集

Will Smart-Scan guarantee my site is safe when making edits?

Although it will do it’s best at detecting incorrect usage of the commonly used symbols (parenthesis, brackets and braces), there is no guarantee every possible error is detected. The best safe guard is to keep consistent backups of your site (even when not making edits).

As of version 1.6, the plugin will check your site health after performing an edit. If the site is returning a site breaking error code, we’ll revert to the previous version of the file.

My search is failing and I am told that my search is an invalid pattern

This error is only related to regex searches, and is based off how PHP reads your regex string.

When writing your search string, make sure to wrap your search in forward slashes (/), directly followed by any modifiers like case insensitive (i) that you may want to use.

使用者評論

2024 年 11 月 24 日
A powerful addition to your debugging toolkit.
2024 年 10 月 2 日
Hello, this plugin saved lot my time to translate my website! Thank you for this amazing and very usefull plugin! :))))
2024 年 1 月 15 日
This has been maybe the biggest timesaving plugin I’ve got. There’s is one slight corner case. If you rename your plugin folder through your wp config, and tell it to search just the plugin folder, this can’t find it… it really should read the plguin folder name from the config, not just assume it’s always going to be the default name. I’ll post this in the support forums for the dev, too.But it’s such a useful plugin, that I use so frequently, that I can’t deduct a star for that. Very useful tool, works for me exactly as advertised.
2023 年 11 月 2 日
WarningThe maximum time your server allows a script to run (1) is too low for the plugin to run as intended, at startup 2 seconds have passed I reached out to my hosting and they said to reach out to you with the error. “the PHP max_execution_time is currently set to 120” no support
閱讀全部 121 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈String Locator〉的開發相關工作。

參與者

〈String Locator〉外掛目前已有 16 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈String Locator〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.6.6 (2024-08-21)

  • Fixed missing URL input sanitization.
  • Verified compatibility with WordPress 6.6

2.6.5 (2024-03-12)

  • Verified compatibility with WordPress 6.5

2.6.4 (2024-03-12)

  • Verified compatibility with WordPress 6.4

2.6.3 (2023-08-10)

  • CSS/JS Loading bug fixes

2.6.2 (2023-08-10)

  • Added InstaWP integration.
  • WP ORG Support ticket fixes.

2.6.1 (2022-11-02)

  • Fixed a bug causing certain setups to be unable to perform searches when editing would also be unavailable.
  • Fixed a bug causing certain plugins to prevent the search results list from being displayed properly.
  • Verified compatibility with WordPress 6.1

2.6.0 (2022-07-20)

  • Added database search feature.
  • Added tools for quickly replacing data in the search results.
  • Added many more filters and actions.
  • Added hardening of file path checks.
  • Removed one-time donation notice.
  • Removed jQuery dependency in favor of vanilla JavaScript code.
  • Separated search class into a base class for extenders.
  • Fixed bug with code viewer sizes when resizing your window.
  • Fixed bug in the list view if special characters were in the search string.
  • Fixed a bug where RegEx search validation may have a false positive check for invalid patterns.
  • Fixed missing translator function if Javascript is missing.
  • Improved capability checks for displaying the search interface when editing is disabled.

Older entries

See changelog.txt for the version history.