درباره افزونه WP-PostViews
افزونه «WP-PostViews» یکی از افزونههای کاربردی برای وردپرس است که توسط Lester Chan توسعه مییابد. نسخه فعلی این افزونه (2.0.1) با وردپرس 6.8 و بالاتر، و PHP 8.2 و بالاتر سازگار است. آخرین بهروزرسانی این افزونه در تاریخ 1405/07/14 منتشر شده که نشاندهنده پشتیبانی فعال از سوی توسعهدهنده است. در WPFORIRAN، فایل ZIP این افزونه بهطور خودکار با مخزن رسمی WordPress.org همگامسازی میشود تا کاربران ایرانی بدون نیاز به VPN، آخرین نسخه را دریافت کنند. برای نصب افزونه «WP-PostViews»، فایل ZIP را از همین صفحه دانلود کنید. سپس از پنل مدیریت وردپرس به مسیر «افزونهها → افزودن → بارگذاری افزونه» بروید و فایل دانلود شده را آپلود کنید. پس از نصب موفقیتآمیز، روی دکمه «فعالسازی» کلیک کنید تا افزونه آماده استفاده شود. تنظیمات افزونه معمولاً در منوی پیشخوان وردپرس یا در منوی تنظیمات قابل دسترسی است. این صفحه بهطور خودکار از مخزن رسمی WordPress.org ایجاد شده است. برای دسترسی به اطلاعات کاملتر، تغییرات نسخهها (changelog)، و توضیحات تفصیلی توسط توسعهدهنده، میتوانید به صفحه رسمی این افزونه در WordPress.org مراجعه کنید. تیم WPFORIRAN در حال آمادهسازی توضیحات فارسی اختصاصی برای افزونههای پرکاربرد است.
راهنمای نصب افزونه
- فایل ZIP افزونه را با کلیک روی دکمه «دانلود نسخه 2.0.1» در بالای همین صفحه دریافت کنید. فایل از سرور WPFORIRAN در ایران ارائه میشود و نیاز به VPN ندارد.
- وارد پنل مدیریت وردپرس خود شوید و به مسیر «افزونهها → افزودن → بارگذاری افزونه» بروید.
- فایل ZIP دانلود شده (wp-postviews-2.0.1.zip) را انتخاب و آپلود کنید.
- پس از پایان نصب، روی دکمه «فعالسازی افزونه» کلیک کنید.
- افزونه WP-PostViews اکنون آماده استفاده است. برای تنظیمات، به منوی مربوطه در پنل وردپرس مراجعه کنید.
تغییرات نسخه 2.0.1
- NEW: A Settings link on the plugin’s row on the Plugins screen
- FIXED: “Count Views From” was only honoured while the page rendered. On a cached site the counting happens through a separate AJAX or REST call instead, and that path never asked the setting — so with “Registered Users Only” a guest hitting a cached page was still counted, and the bot exclusion never applied there either. Both endpoints now check the setting against the actual visitor’s login state
- FIXED: The two templates are echoed as markup on the strength of being wp_kses_post()‘d when saved — and that was true only of the settings screen. The 2.0.0 migration writes through a different door, and the row it folds in comes from a release that stored the field with no filtering at all, so a hostile template on a site upgrading from 1.78.1 was carried across verbatim and echoed to every visitor. The filtering now happens where the row is written, so WP-CLI, cron, a restored backup and another plugin all pass through it too
- FIXED: The deferred counting endpoint checked only that an ID named something, and every row in wp_posts answers to that — revisions, autosaves, auto-drafts, attachments, trashed posts, drafts, menu items, reusable blocks. An unauthenticated caller could walk the ID space writing a view row against each one, and read back the count of unpublished posts while doing it. It now requires a real, publicly viewable post, which is what the other counting path already knew