افزونه Better Search Replace

توضیحات

هنگامی که سایت وردپرس خود را به یک دامنه یا سرور جدید منتقل می کنید، احتمالاً برای اینکه همه چیز به درستی کار کند، نیاز به اجرای جستجو/جایگزینی در پایگاه داده دارید. خوشبختانه، چندین پلاگین برای این کار موجود است، با این حال، همه رویکرد متفاوتی نسبت به چند ویژگی کلیدی دارند. این افزونه بهترین ویژگی های این افزونه ها را ادغام می کند و ویژگی های زیر را در یک افزونه ساده گنجانده است:

  • پشتیبانی از سریال سازی برای همه جداول
  • امکان انتخاب جداول خاص
  • امکان اجرای یک “اجرای خشک” برای مشاهده تعداد فیلدهایی که به روز می شوند
  • بدون نیاز به سرور به غیر از نصب در حال اجرا وردپرس
  • پشتیبانی از وردپرس شبکه

ویژگی های صرفه جویی در زمان موجود در نسخه Pro:

  • مشاهده کنید که دقیقاً چه چیزی در طول جستجو/جایگزینی تغییر کرده است
  • هنگام اجرای جستجو/جایگزینی از پایگاه داده پشتیبان تهیه و وارد کنید
  • پشتیبانی ایمیل اولویت از توسعه دهنده افزونه
  • پروفایل‌های سفارشی را برای تکرار سریع جستجو/جایگزینی در آینده ذخیره یا بارگیری کنید
  • پشتیبانی و به‌روز رسانی به مدت 1 سال

درباره Better Search Replace Pro بیشتر بیاموزید

عملکرد جستجو و جایگزینی به شدت مبتنی بر اتصال است / اسکریپت Search Replace DB منبع باز و عالی است که برای استفاده از توابع پایگاه داده بومی وردپرس برای اطمینان از سازگاری اصلاح شده است.

زبان‌های پشتیبانی شده

  • انگلیسی
  • فرانسوی
  • آلمانی
  • اسپانیایی

می‌خواهید مشارکت کنید؟

می‌توانید در گیت‌هاب یک مشکل را باز کنید یا یک درخواست جلب ارائه دهید.

عکس‌های صفحه

  • صفحه Better Search Replace به منو “ابزارها” اضافه شد
  • پس از اجرای جستجو/تعویض خشک اجرا.

نصب

Better Search Replace را مانند هر افزونه وردپرس دیگری نصب کنید.

روش داشبورد:

  1. وارد مدیریت وردپرس خود شوید و به افزونه‌ها بروید -> افزودن جدید
  2. “Better Search Replace” را در نوار جستجو تایپ کنید و این افزونه را انتخاب کنید
  3. روی «نصب» و سپس «فعال کردن افزونه» کلیک کنید

روش بارگذاری:

  1. افزونه را از حالت فشرده خارج کنید و پوشه “better-search-replace” را در پوشه “wp-content/plugins” خود آپلود کنید.
  2. افزونه را از طریق منوی افزونه‌ها در وردپرس فعال کنید

سوالات متداول

استفاده از جستجوی بهترین جایگزین

پس از فعال‌سازی، جستجوی بهترین جایگزین صفحه‌ای را در زیر صفحه منوی «ابزارها» در مدیریت وردپرس شما اضافه می‌کند.

آیا هاست من پشتیبانی می‌شود؟

آره! این افزونه باید با هر میزبانی سازگار باشد.

آیا می‌توانم با این افزونه به سایت خود آسیب برسانم؟

Yes! Entering a wrong search or replace string could damage your database. Because of this, it is always advisable to have a backup of your database before using this plugin.

چگونه در وردپرس چند سایته کار می‌کند؟

When this plugin is installed on a WordPress multisite network:

  • Subsite administrators can only search and replace within tables that belong to that subsite by visiting Dashboard > Tools > Better Search Replace from WP Admin of the subsite.
  • Network administrators (i.e. Super Admins) and administrators of the primary site can search and replace across all tables in the multisite network by visiting Dashboard > Tools > Better Search Replace from WP Admin of the primary site.

To change which users have access to the plugin, the user capability can be modified via code using the bsr_capability filter.

چگونه می‌توانم هنگام تغییر آدرس از این افزونه استفاده کنم؟

اگر سایت خود را از یک سرور به سرور دیگر منتقل می‌کنید و آدرس نصب وردپرس خود را تغییر می‌دهید، روش زیر به شما این امکان را می‌دهد که به راحتی بدون تأثیرگذاری بر سایت قدیمی این کار را انجام دهید:

  1. از پایگاه داده در سایت فعلی خود نسخه پشتیبان تهیه کنید
  2. پایگاه داده را روی هاست جدید خود نصب کنید
  3. در هاست جدید، آدرس سایت جدید را در فایل wp-config.php تعریف کنید، همانطور که نشان داده شده است اینجا
  4. در آدرس مدیریت جدید خود وارد شوید و جستجوی بهترین جایگزین را در آدرس سایت قدیمی برای آدرس سایت جدید اجرا کنید
  5. ثابت site_url را که به wp-config.php اضافه کردید حذف کنید. همچنین ممکن است لازم باشد htaccess. خود را با رفتن به تنظیمات -> پیوندهای ثابت و ذخیره تنظیمات.

اطلاعات بیشتر در مورد انتقال وردپرس را می‌توانید در اینجا بیابید.

نقد و بررسی‌ها

13 سپتامبر 2025
This plugin helped me a lot after migrating my website from staging to live. 5 Stars for sure
2 جولای 2025
Following a change of server and security certificates, I used the plugin to change the URLs of my website to remove the ‘www.’ I had to do this as new security certificates were not generated for www. URLs. The plugin worked flawlessly!
14 آوریل 2025
This is the standard for Find-and-Replace functions on your WordPress site.The ‘Dry Run’ setting is awesome, allowing you to see how many items will be updated prior to replacing ‘Live’.If you know of a more developer friendly and robust plugin, we want to know!
خواندن تمامی 536 نقد و بررسی‌

توسعه دهندگان و همکاران

“افزونه Better Search Replace” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

“افزونه Better Search Replace” به 32 زبان ترجمه شده است. با تشکر از مترجمین برای همکاری و کمک‌هایشان.

ترجمه “افزونه Better Search Replace” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

گزارش تغییرات

1.4.10 – January 14, 2025

  • Fix: Improved security and stability

1.4.9 – October 4, 2024

  • Security: The plugin now uses its own update mechanism from WP Engine servers
  • New: Dependencies have been updated

1.4.8 – September 3, 2024

  • No changes as this was a pro-only release for Better Search Replace Pro

1.4.7 – May 30, 2024

  • Fix: The case-insensitive setting once again allows case-insensitive strings to be matched within serialized data, fixing a regression introduced in version 1.4.6

1.4.6 – April 17, 2024

  • Changed: Serialized text strings are now only deserialized when containing a match, resulting in faster performance
  • Security: Table names are now escaped when displaying search results

1.4.5 – January 18, 2024

  • Security: Unserializing an object during search and replace operations now passes 'allowed_classes' => false to avoid instantiating the object and potentially running malicious code stored in the database (thanks to Wordfence for responsible disclosure on December 18, 2023 followed by development and testing of the fix by WP Engine)
  • Fix: A regression in version 1.4.4 which caused some search results to be skipped has been fixed to ensure only numeric keyed objects are skipped

1.4.4 – December 14, 2023

  • Fix: Objects with numerical properties are now skipped to avoid causing errors

1.4.3 – September 5, 2023

  • New: Links to plugin documentation, support, feedback, and changelog are now available in the footer of WP Admin
  • بهبود: Better Search Replace هم‌اکنون با PHP 8.2 سازگار است

1.4.2 – January 11, 2023

  • Security: Arbitrary tab templates in the templates directory can no longer be loaded using a query parameter.

1.4.1 – July 25, 2022

  • Security: Selected tables are now confirmed to exist before processing the request

1.4 – April 7, 2022

  • جدید: Better Search Replace یک رابط کاربری جدید دارد
  • Improvement: Default capability required to use the plugin has changed from “install_plugins” to “manage_options” for compatibility with DISALLOW_FILE_MODS

1.3.4 – December 7, 2020

  • Improvement: WordPress 5.6 and PHP 8 compatible
  • Fix: Strings that have been serialized twice showing up as false-positives

1.3.3 – February 26, 2019

  • Fix: Some special characters interfering with search/replace
  • Security: Pass template filenames through sanitize_file_name()
  • Security: Verify nonce when downloading diagnostic info

1.3.2 – January 3, 2018

  • Fix: Only one table searched on some environments (props @Ov3rfly)
  • Tweak: Update text in sidebar

1.3.1 – September 14, 2017

  • Security: Check if data is serialized before unserializing it
  • Improvement: Increased size of table select

1.3 – November 10, 2016

  • Improvement: Updated sidebar and added pro version discount
  • Fix: Outdated links to old website
  • Fix: Prevent requests to invalid tabs

1.2.10 – June 2, 2016

  • Fix: CSS not loaded on details page

1.2.9 – December 8, 2015

  • Fix: Bug with case-insensitive searches in serialized objects
  • Fix: Bug with early skip due to lack of primary key

1.2.8 – November 25, 2015

  • Fix: Bug with report details

1.2.7 – November 24, 2015

  • Fix: Untranslateable string
  • Tweak: Check BSR_PATH instead of ABSPATH to be consistent
  • Tested with 4.4

1.2.6

  • Removed unused code/small cleanup

1.2.5

  • Improved progress bar info and styles
  • Small cleanup

1.2.4

  • Added “Settings saved” notice when saving settings
  • Fixed bug with wp_magic_quotes interfering with some search strings

1.2.3

  • Fixed bug with searching for backslashes
  • Fixed potential bug with getting tables in large multisites
  • Fixed potential notice in append_report
  • Improved handling of missing primary keys

1.2.2

  • Fixed AJAX conflict with WooCommerce
  • Fixed a few issues with translations
  • Tweaked “System Info” to use get_locale() instead of WP_LANG constant
  • Updated German translation (props @Linus Ziegenhagen)

1.2.1

  • Fixed minor issue with display of progress bar
  • Updated translation file

1.2

  • Switched to AJAX bulk processing for search/replaces
  • Decreased minimum “Max Page Size” to 1000
  • Added “Help” tab with system info for easier troubleshooting

1.1.1

  • Added ability to change max page size
  • Decreased default page size to prevent white screen issue on some environments

1.1

  • Added ability to change capability required to use plugin
  • Small bugfixes and translation fixes

1.0.6

  • Added table sizes to the database table listing
  • Added French translation (props @Jean Philippe)

1.0.5

  • Added support for case-insensitive searches
  • Added German translation (props @Linus Ziegenhagen)

1.0.4

  • Potential security fixes

1.0.3

  • Fixed issue with searching for special characters like ‘\’
  • Fixed bug with replacing some objects

1.0.2

  • Fixed untranslateable strings on submit button and submenu page.

1.0.1

  • Fixed issue with loading translations and added Spanish translation (props Eduardo Larequi)
  • Fixed bug with reporting timing
  • Updated to use “Dry Run” as default
  • Added support for WordPress Multisite (see FAQs for more info)

1.0

  • Initial release