WPYog Documents

Changelog

1.5.0

New Features

  • Added columns shortcode attribute — display documents in a 2, 3, or 4 column grid layout. Example: [wpyog-document-list columns=”2″]. Responsive: collapses to 2 columns on tablet, 1 column on mobile.
  • Added live Shortcode Generator admin page (replaces static Shortcode Reference). Includes category dropdown populated from real categories, columns selector, limit, sort, and display options with a one-click copy button.
  • Added “More Plugins” section to the Shortcode Generator page showcasing WPYog Team, WPYog News, and poppinsdigital.com.

Design / CSS

  • Complete frontend CSS redesign — replaced plain bullet list with a professional card-row layout.
  • Color-coded file type icon badges: PDF (red), Word (blue), Excel (green), PowerPoint (orange), Images (purple), ZIP (yellow).
  • Hover effects: accent left-bar, icon scale, download button lift shadow.
  • Download action rendered as a pill icon button with aria-label.
  • Date displayed as a rounded badge.
  • Description shown with a light hairline separator.
  • Single document box styled with left accent border and hover lift shadow.
  • Fully responsive — mobile (≤768px) collapses all layouts to 1 column; tablet (≤900px) collapses 3–4 columns to 2.

Admin UX

  • Admin sidebar menu label changed from “WPYog Documents” to “Documents”.
  • Admin sidebar icon now renders correctly on all admin pages (not just document screens).
  • Updated Author and Author URI to poppinsdigital.com.
  • Updated plugin description shown in the WordPress Plugins list screen.
  • Shortcode column in the document list retained for quick copy.

Bug Fixes

  • Fixed missing wp_reset_postdata() after both WP_Query loops — was corrupting the global $post for anything rendered after the shortcode.
  • Fixed incorrect esc_html() on an array in the single document shortcode.
  • Fixed wpautop() wrapping shortcode output — was injecting <p> tags inside <ul>/<li> causing invalid HTML.
  • Fixed $wpdb->prepare() usage — SHOW TABLES query now uses prepare() with %s placeholder and esc_like().
  • Fixed unsafe $wpdb direct table name interpolation in legacy upgrade routine — now uses esc_sql().
  • Fixed description overflow in multi-column layouts — switched from margin-left to padding-left with box-sizing: border-box.
  • Fixed title text rendering vertically in document list — added flex: 1; min-width: 0 to title link.

Code Quality / Security

  • Removed extract() from shortcode function — replaced with explicit variable assignments.
  • Scoped admin CSS and JS to wpyog_document post type screens only (was loading on all admin pages).
  • Added WPYOG_DOCUMENTS_VERSION constant for proper asset cache-busting on updates.
  • Added if ( ! defined( ‘ABSPATH’ ) ) exit; guard.
  • Prefixed all template variables with wpyog_ for WordPress coding standards compliance.
  • Renamed save_wpyog_document_meta_data → wpyog_save_document_meta_data.
  • Added translators comment for aria-label sprintf call.
  • Frontend CSS now loads only when a shortcode is present on the page (lazy load).
  • All upgrade notices trimmed to under 300 characters.
  • Tested on WordPress 7.0. Requires WordPress 5.0+.

1.3.7

  • Added other file type icons.
  • Tested on WordPress 6.9.

1.3.6

  • Security enhancements.
  • Added wp_unslash() to unslash user input.
  • Added text domain for translation.

1.3.5

  • Added new route to download the file.
  • Security enhancements.
  • Added nonce to meta fields of the plugin.

1.3.4

  • Added sanitize function for the text input field.

Plugin Website
Visit website

Author
WPYog
Version:
1.5.0
Last Updated
June 2, 2026
Active Installs
100
Requires
WordPress 5.0
Tested Up To
WordPress 7.0
Requires PHP
7.0

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.