Subscribe to RSS feed اشترك في تغذية RSS or أو follow me بي on Twitter? على التغريد؟
WordPress introduced post revisions in v2.6. وورد في مرحلة ما بعد التنقيحات التي أدخلت في v2.6. It has been useful for multi-author blogs (and individual bloggers who revise posts several times before publishing), as they can compare revisions of their post and choose from them for publishing. لقد كان من المفيد أن تعدد المؤلف بلوق (الفردية والمدونين الذين تنقيح وظائف عدة مرات قبل النشر) ، لأنها يمكن أن تقارن من التنقيحات واختيار وظيفة منها للنشر. For most, however, this feature does not help much. بالنسبة لمعظم ولكن هذه الميزة لا يساعد كثيرا. In fact, I wouldn't be surprised if you didn't notice such a feature at all. في الواقع ، لن افاجأ اذا لم يلاحظوا هذه الميزة على الإطلاق.
The unfortunate side effect of post revisions is that it bloats the database. الآثار الجانبية المؤسفة في مرحلة ما بعد التنقيحات أنه ينفخ في قاعدة البيانات. For each edit / revision of a post, a new row is made in wp_posts table in your blog's MySQL database. عن كل تعديل أو إعادة النظر في ما بعد ، هو صف جديد في الجدول wp_posts 'sبلوق الخاص بك في قاعدة بيانات MySQL. For blogs with daily (or more frequent) posts, post revisions can increase the size of your DB greatly. لبلوق يوميا (أو أكثر تواترا) وظيفة ، في مرحلة ما بعد التنقيحات التي يمكن أن تزيد من حجم الديسيبل الخاص بك إلى حد كبير.
Look at the screenshot of results after I deleted post revisions on this blog below. انظروا الى الصورة من نتائج بعد حذف ما بعد التنقيحات على هذا بلوق أدناه. Note that I delete post revisions frequently, else the number of rows deleted would have been greater. نلاحظ أن أحذف ما بعد التنقيحات في كثير من الأحيان ، وإلا فإن عدد الصفوف التي تم حذفها من شأنه زيادة. You can imagine how large it will be for blogs which have never had their post revisions deleted. يمكنك أن تتخيل كيف سيكون كبيرا لبلوق التي لم يسبق لها في مرحلة ما بعد التنقيحات حذفها.


How to remove post revisions in WordPress database كيفية إزالة ما بعد التنقيحات وورد في قاعدة البيانات
Thanks to the power of MySQL, you can remove all post revisions with a single command. وبفضل قوة MySQL ، يمكنك إزالة كل ما بعد التنقيحات مع قيادة واحدة. Login to phpMyAdmin(or similar) and click to get into your WordPress database. ادخل الى phpMyAdmin (أو ما شابه) وانقر على الوصول الى قاعدة البيانات الخاصة بك وورد. Then click SQL tab, and paste the code below to the SQL command box: ثم انقر فوق علامة التبويب SQL ، والصق الشفرة ادناه الى المربع SQL القيادة :
DELETE FROM wp_posts WHERE post_type = "revision"; تحذف من wp_posts أين post_type = "مراجعة" ؛
This should remove all post revisions. هذا وينبغي إزالة كل ما بعد التنقيحات. As with any other database manipulation commands, make sure to back up your database before running it. وكما هو الحال مع أي قاعدة بيانات التلاعب الأوامر ، تأكد من عمل نسخة احتياطية من قاعدة البيانات الخاصة بك قبل تشغيل.
Related reading يتصل ريدينج
- Disable / turn off post revisions in WordPress تعطيل / إيقاف تشغيل وظيفة في التنقيحات وورد
- Cleano: delete Windows temporary files Cleano : حذف الملفات المؤقتة ويندوز
- How to remove / delete / erase files permanently on Windows كيفية إزالة أو حذف / مسح الملفات بشكل دائم على ويندوز
- I've switched to Ubuntu Linux – post your tips here لقد تحولت إلى أوبونتو لينكس -- في مرحلة ما بعد النصائح الخاصة بك هنا
Didn't work for me. لا يعمل بالنسبة لي.
Error خطأ
SQL query: استعلام SQL :
DELETE FROM wp_posts WHERE post_type = “revision†تحذف من wp_posts أين post_type = â € € œrevisionâ
MySQL said: MySQL قال :
#1054 – Unknown column '“revision†# 1054 -- غير معروف العمود '¢ â ، ¬" revisionà ¢ â ، ¬