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.

スクリーンショット

  • 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.

FAQ

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.

評価

2022年2月7日
This plugin crashed my entire website, not even disabling plugins helped getting my website back up, the only thing I could do was to restore the daily backup my hosting creates. I could've lost all of my work because of this plugin, create a backup before you even install it.
2022年2月4日
genial si necesitas traducir algo y no sabes si está en un plugin, en la plantilla, en WordPress... Con este plugin encuentras la ruta y luego con LOCO Translate o editando con POEdit traduces lo que sea
2022年1月19日
Wish I found this plugin earlier. So easy to find file location from code. Wow+++ Sometimes it took me days to find solution but now it takes seconds. Thanks a lot!
2021年9月11日
Great for finding a string or expression, but you'd better use FTP to edit your files because if you type a wrong comma, your WP might stop altogether.
2021年8月2日
This plugin saved me hours of searching while my developer was on vacation, thx man, good job.
107件のレビューをすべて表示

貢献者と開発者

String locator はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“String locator” は12ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“String locator” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

2.5.0 (2022-02-27)

  • Fixed a bug where content would have slashes stripped unexpectedly.
  • Improved table spacing on search results.
  • Improved loopback checks to also check admin access.
  • Hardened the search iterator so users can’t accidentally perform unexpected directory traversal.
  • Introduced actions and filters in various places to enable extenders, and future enhancements.
  • Moved all ajax requests to dedicated REST endpoints.
  • Refactored file structure.

Older entries

See changelog.txt for the version history