Giter VIP home page Giter VIP logo

publisher-media-kit's Introduction

Publisher Media Kit

Pre-configured Media Kit Page using Gutenberg Block Patterns.

Support Level E2E Tests Linting PHPCompatibility Release Version WordPress tested up to version GPLv2 License

Overview

Publisher Media Kit provides a quick and easy option for small to medium sized publishers to digitize their media kit. If you are a publisher hoping for a page like the NY Times' Advertising Standard Units, but do not have a designer or developer on staff? Then this plugin is for you. If you are still using a print or PDF version of your media kit to sell space on your website, but want show advertisers looking to buy digital real estate that you are a digital-forward partner? Then this plugin is for you.

Twenty Twenty One default theme Newspack base theme
Media Kit page on frontend of site running the Twenty Twenty One default theme. Media Kit page on frontend of site running the Newspack base theme.

The plugin adds a new "Media Kit" page, block patterns, and placeholder content that can then be customized to fit your need (e.g., text, links, colors, images, adding page link to site footer).

Twenty Twenty One default theme Newspack base theme
View of block patterns and placeholder content within the block editor running the Twenty Twenty One default theme. View of block patterns and placeholder content within the block editor running the Newspack base theme.

Requirements

  • PHP Requires: 7.4
  • WordPress Requires at least: 5.7

Theme Compatibility

We have tested the plugin with the following WordPress themes and have validated that the resulting Media Kit page renders as expected on the front-end and within the block editor. Please open an issue if you find an issue with any of these themes or have an alternate, public theme with a conflict that we can help resolve.

  1. Twenty Twenty-One
  2. Newspack base theme
  3. Newspack: Joseph
  4. Newspack: Katharine
  5. Newspack: Nelson
  6. Newspack: Sacha
  7. Newspack: Scott

Installation

  1. Install the plugin via the plugin installer, either by searching for it or uploading a .ZIP file.
  2. Activate the plugin.
  3. Open the "Media Kit" page, edit the content to your needs, and hit publish!

Frequently Asked Questions

I accidentally deleted a block from my Media Kit page, how do I add it back?

Click the block inserter (+ button) in the top left of the block editor, click the Patterns tab, select Publisher Media Kit in the dropdown, and select the specific Block Pattern that you want to add back to your page.

I want to add block from my Media Kit page on a different post/page, how do I add it outside the Media Kit page?

Click the block inserter (+ button) in the top left of the block editor, click the Patterns tab, select Publisher Media Kit in the dropdown, and select the specific Block Pattern that you want to add to your post/page.

If I rename the page title (e.g. to 'Advertising') and then deactivate and subsequently reactivate the plugin, would the plugin generate a new 'Media Kit' page?

The plugin specifically checks for the page slug media-kit, meaning that even if you modify the page name, the plugin will not generate a new page unless the page slug is altered or the page is moved to the trash.

Support Level

Stable: 10up is not planning to develop any new features for this, but will still respond to bug reports and security concerns. We welcome PRs, but any that include new features should be small and easy to integrate and should not include breaking changes. We otherwise intend to keep this tested up to the most recent version of WordPress.

Changelog

A complete listing of all notable changes to Publisher Media Kit are documented in CHANGELOG.md.

Contributing

Please read CODE_OF_CONDUCT.md for details on our code of conduct, CONTRIBUTING.md for details on the process for submitting pull requests to us, and CREDITS.md for a listing of maintainers of, contributors to, and libraries used by Publisher Media Kit.

Like what you see?

publisher-media-kit's People

Contributors

bmarshall511 avatar cameronterry avatar claytoncollie avatar cldhmmr avatar davisshaver avatar dependabot[bot] avatar dkotter avatar faisal-alvi avatar github-actions[bot] avatar iamdharmesh avatar jayedul avatar jeffpaul avatar kmgalanakis avatar mehidi258 avatar mserino avatar peterwilsoncc avatar punndcoder28 avatar qasumitbagthariya avatar treykane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

publisher-media-kit's Issues

Gutenberg Block Editor should Match Admin Styles & Frontend Styles

Describe the bug
For a great user experience, Gutenberg Block Editor should Match Admin Styles & Frontend Styles.
Some block looks totally different in FE and BE. Would be great if we match both view.

Steps to Reproduce

  1. Edit 'Media Kit' page in BE
  2. Open same page in FE

Expected behavior
The layout and view/styles should match. So admin will be able to update page style according to requirement and will not need to save changes every time to just see preview of all current changes.

For ex.

  1. In the below screenshot, admin screen shows 4 column layout but FE screen shows 5 column layout.
  2. In admin screen, background color starting from end of the block and in FE, starting from middle of the block.

Screenshots

Admin View -

image

FE View-

image

Environment information
macOS Monterey, Chrome, and 2021 theme.

WordPress information

Site Health info:

Additional context

Run E2E tests on the zip generated by "Build release zip" action.

Is your enhancement related to a problem? Please describe.

We are currently running E2E tests by installing dependencies and building plugin files. This is not the most accurate plugin build that will be shipped during the release. To make E2E tests more accurate and match the plugin build with the release build generated by our deploy action, we should generate a plugin build with the "build zip" action. Running E2E tests on this build will give us more accurate results.

PR for reference: 10up/autoshare-for-twitter#206

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Our packages section should be responsive in ipad

Describe the bug
Our packages section should be responsive in ipad
Ipad viewport - (768 *1024)

Steps to Reproduce

Go to Media Kit page
Scroll down
Expected behavior
Frontend should be match with design

Screenshots
https://www.screencast.com/t/xesf1exIsS

Environment information

Device: MacBook
OS: 12.0.1
Browser and version: Chrome 96.0.4664.55, Safari 15.1
WordPress version: 5.8.2
Theme and version: Twenty Twenty-OneVersion: 1.4 , NewspackVersion: 1.54.0-alpha.1 ,
Newspack JosephVersion: 1.53.2
** Site Helth Info**

Explore sharing our Media Kit blocks/patterns with the WP.ORG Pattern Directory

Is your enhancement related to a problem? Please describe.

We’re looking to take the blocks that are included in the media kit page created by the plugin (see screenshots in the readme file) and then craft each of those blocks (except for the tab blocks one as there’s nothing to base that on currently in core) as block patterns. Our hope is that each of those blocks, tab ones not included, can get into a pattern that we can then submit to the WP.org Block Pattern Directory via the 10up account.

Designs

See existing block/pattern designs within the plugin itself (or screenshots from README.md).

Describe alternatives you've considered

n/a

Code of Conduct

  • I agree to follow this project's Code of Conduct

BE Styles do not match with the FE Styles

Describe the bug
Gutenberg had been released with the concept of WYSIWYG (what you see is what you get). In simple words, the backed should be styled exactly like the front end. In the PMK, we do not get it same for the Tabs block.

Steps to Reproduce

  1. Go to the 'Publisher Media Kit' page in the back end and in the front end.
  2. See the tabs block, designs are different on both ends.

Note: Twenty Twenty-One theme was used in this testing. All the other themes (i.e. newspack, etc.) should also be taken care of for this bug fix.

Expected behavior
The design of the tabs block including all the other blocks should be matched and exactly the same as per the WYSIWYG.

Screenshots

Backend:

image

Frontend:

image

Environment information

  • Device: MacBook
  • OS: MacOS 1.6
  • Browser and version: Chrome latest
  • WordPress version: 5.8.1

Release 1.1.0

Describe the bug

This issue is for tracking changes for the 1.1.0 release. Target release date: March 2022 or Early April.

Pre-release steps

  • Confirm build commands, ensure GitHub Actions building plugin correctly

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.1.0 for your changes.
  • Version bump: Bump the version number in package-lock.json, package.json, publisher-media-kit.php, readme.txt, and any other relevant files if it does not already reflect the version being released. Update both the plugin "Version:" property and the plugin PUBLISHER_MEDIA_KIT_VERSION constant in publisher-media-kit.php.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .distignore.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Make sure the release date added in the CHANGELOG.md.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk (git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/publisher-media-kit/. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.1.0 do not make it into the release, update their milestone to1.2.0 or Future Release

Tabs block stopped working after recent ES lint fixes

Describe the bug
As a part of the process, ES lint errors and warnings are removed recently but it caused the tabs block to stop working. Few ES lint errors displayed constants/components defined/imported but not being used in the file - so they were removed but actually, they were being used in the included files and ES lint is not smart enough to check it.

Steps to Reproduce

  1. Install plugin
  2. Activate it
  3. Go to the Publisher Media Kit page (created on plugin activation)
  4. See Tabs block are not registered.

Expected behavior
The tabs block should be visible and editable.

Screenshots
image

Still have questions? We can help section - Font style is not proper

Describe the bug
Still have questions? We can help section - Font style is not proper

Steps to Reproduce

  1. Go to Media Kit page
  2. Scroll down to Still have questions? We can help section

Expected behavior
Frontend should be match with design

Screenshots
https://www.screencast.com/t/y4CyBEnzrrTh

Environment information

  • Device: MacBook

  • OS: 12.0.1

  • Browser and version: Chrome 96.0.4664.55, Safari 15.1

  • WordPress version: 5.8.2

  • Theme and version: Twenty Twenty-OneVersion: 1.4 , NewspackVersion: 1.54.0-alpha.1 ,
    Newspack JosephVersion: 1.53.2

`

wp-core

version: 5.8.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: false
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: local
user_count: 1
dotorg_communication: true

wp-paths-sizes

wordpress_path: /Users/sudipdadhaniya/Local Sites/pmk/app/public
wordpress_size: 43.72 MB (45844471 bytes)
uploads_path: /Users/sudipdadhaniya/Local Sites/pmk/app/public/wp-content/uploads
uploads_size: 0.00 B (0 bytes)
themes_path: /Users/sudipdadhaniya/Local Sites/pmk/app/public/wp-content/themes
themes_size: 12.82 MB (13445530 bytes)
plugins_path: /Users/sudipdadhaniya/Local Sites/pmk/app/public/wp-content/plugins
plugins_size: 396.75 MB (416017515 bytes)
database_size: 2.88 MB (3014656 bytes)
total_size: 456.16 MB (478322172 bytes)

wp-active-theme

name: Newspack Scott (newspack-scott)
version: 1.53.2
author: Automattic
author_website: https://newspack.blog
parent_theme: Newspack (newspack-theme)
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-thumbnails, menus, html5, custom-logo, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-font-sizes, editor-color-palette, editor-gradient-presets, custom-spacing, responsive-embeds, amp, post-subtitle, post-formats, web-stories, editor-style, widgets
theme_path: /Users/sudipdadhaniya/Local Sites/pmk/app/public/wp-content/themes/newspack-scott
auto_update: Disabled

wp-parent-theme

name: Newspack (newspack-theme)
version: 1.54.0-alpha.1
author: Automattic
author_website: https://newspack.blog
theme_path: /Users/sudipdadhaniya/Local Sites/pmk/app/public/wp-content/themes/newspack-theme
auto_update: Disabled

wp-themes-inactive (7)

Newspack Joseph: version: 1.53.2, author: Automattic, Auto-updates disabled
Newspack Katharine: version: 1.53.2, author: Automattic, Auto-updates disabled
Newspack Nelson: version: 1.53.2, author: Automattic, Auto-updates disabled
Newspack Sacha: version: 1.53.2, author: Automattic, Auto-updates disabled
Twenty Nineteen: version: 2.1, author: the WordPress team, Auto-updates disabled
Twenty Twenty: version: 1.8, author: the WordPress team, Auto-updates disabled
Twenty Twenty-One: version: 1.4, author: the WordPress team, Auto-updates disabled

wp-plugins-active (1)

Publisher Media Kit: version: 0.1.0, author: 10up, Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: File uploads is turned off
post_max_size: 1000M
upload_max_filesize: 300M
max_effective_size: 300 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, BMP
ghostscript_version: not available

wp-server

server_architecture: Darwin 21.1.0 x86_64
httpd_software: nginx/1.16.0
php_version: 7.3.5 64bit
php_sapi: fpm-fcgi
max_input_variables: 4000
time_limit: 1200
memory_limit: 256M
max_input_time: 600
upload_max_filesize: 300M
php_post_max_size: 1000M
curl_version: 7.54.0 LibreSSL/2.6.5
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false

wp-database

extension: mysqli
server_version: 8.0.16
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /Users/sudipdadhaniya/Local Sites/pmk/app/public/wp-content
WP_PLUGIN_DIR: /Users/sudipdadhaniya/Local Sites/pmk/app/public/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable

Add a "Build release zip" GitHub Action

Is your enhancement related to a problem? Please describe.

A new Action is released: https://github.com/10up/action-wordpress-plugin-build-zip/. This is already set up in a few PRs: Insert Special Characters, Autoshare for Twitter and Simple Podcasting. As an example, you can see/download the Simple Podcasting zip here.

Please go ahead and create the same in this repository.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

`Tabs` class/folder structure does not follow psr-4 autoloading conventions.

Describe the bug

The composer.json file for this plugin sets up psr-4 autoloads for classes within the PublisherMediaKit namespace.

However, the only class PublisherMediaKit\Blocks\BlockContext\Tabs is in the file includes/classes/blocks/BlockContext/Tabs.php so does not meet this convention. The difference is that the namespace fragment Blocks uses an uppercase B, while the folder name blocks uses a lowecase B.

This hasn't come to light as an issue previously as the file for the class is manually required within the main plugin file, the composer autoloader isn't included in the distributed version on WordPress.org so this hasn't caused a problem. I expect the file is manually required as the autoloader was failing on case sensitive file systems.

require_once PUBLISHER_MEDIA_KIT_INC . '/classes/blocks/BlockContext/Tabs.php';

I see two possible fixes

  • Remove PSR-4 autoloading
  • Rename the namespace to match the lowercase B of the folder name. I'm suggesting renaming the namespace (even though it's not great to have a mix of case) as PHP namespaces are case insensitive but not all file systems are.

Steps to Reproduce

  1. Clone the repository
  2. Install composer with the optimized autoloader switch composer install --no-dev --optimize-autoloader
  3. Composer will warn: Class PublisherMediaKit\Blocks\BlockContext\Tabs located in ./includes/classes/blocks/BlockContext/Tabs.php does not comply with psr-4 autoloading standard. Skipping.

Screenshots, screen recording, code snippet

$> composer install --no-dev --optimize-autoloader
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
Class PublisherMediaKit\Blocks\BlockContext\Tabs located in ./includes/classes/blocks/BlockContext/Tabs.php does not comply with psr-4 autoloading standard. Skipping.

Environment information

  • OS: macOS Monterey 12.6.1
  • PHP: 7.4.30

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Cards are not center aligned on tablet viewport.

Is your enhancement related to a problem? Please describe.

The cards on the media kit page are not center aligned on the tablet viewport. (1024px * 768px)

Describe the solution you'd like

The cards should be center aligned, like the rest of the elements on the page.

Designs

Screenshot 2021-10-06 at 6 21 28 PM

Enhancing the visuals

Is your enhancement related to a problem? Please describe.

There is no problem but the page would look much better with some padding in those highlighted areas.
So
Screenshot 2023-03-24 at 3 26 04 PM
me are too close to the container borders

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Functionality of the Publisher Media Kit

Describe your question

So, the plugin will create a 'Media Kit' page.
What happens if I rename that filed to let's say 'Kelvin's Kit'.
If I deactivate and activate back the plugin, is the plugin supposed to create a new 'Media Kit' page?
Currently it won't unless I delete the page itself.
I was just curious as to how the plugin identifies there has already been a 'Media Kit' page created and renamed?

Code of Conduct

  • I agree to follow this project's Code of Conduct

Audience Profiles data section should be responsive in ipad

Describe the bug
Audience Profiles data section should be responsive in ipad
Ipad viewport - (768 *1024)

Steps to Reproduce

  1. Go to Media Kit page
  2. Scroll down

Expected behavior
Frontend should be match with design

Screenshots
https://www.screencast.com/t/WfGFbOUL

Environment information

  • Device: MacBook
  • OS: 12.0.1
  • Browser and version: Chrome 96.0.4664.55, Safari 15.1
  • WordPress version: 5.8.2
  • Theme and version: Twenty Twenty-OneVersion: 1.4 , NewspackVersion: 1.54.0-alpha.1 ,
    Newspack JosephVersion: 1.53.2

** Site Helth Info**

Update is not working

Describe the bug

When I try to change a value and press 'Update', I get the error 'Updating failed. The response is not a valid JSON response.'

Steps to Reproduce

  1. Go to the Media page
  2. Update a value, e.g. Change the 'The average female visitor is 38 years old' to 'The average female visitor is 37 years old'
  3. Click Update

Screenshots, screen recording, code snippet

Screenshot 2023-03-24 at 3 15 44 PM

Environment information

Device MacBook Pro (Retina, 15-inch, Mid 2015)
OS Mc Os Monterey 12.6.3
Chrome Version 111.0.5563.110 (Official Build) (x86_64)

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code review feedback

Since everything is already merged in, leaving some code review feedback in this issue rather than through the normal PR process.

includes/core.php

includes/blocks.php

includes/blocks/block-editor/tabs/

  • I'm assuming this block was just copied over from a 10up block but does seem weird to me to have a CHANGELOG.md and README.md files here

includes/blocks/utils/

includes/assets/images/

  • This image is super large, both dimensions and more importantly the file size: https://github.com/10up/publisher-media-kit/blob/develop/assets/images/cover-image.png. Since this ends up getting used by default in our Media Kit page we create, we should optimize this as much as possible. Just doing a brief test, converting that from a PNG to a JPG goes from ~18MB to ~4MB (which is way better but still really big). Wondering if there's more optimizations we can do here, maybe size dimensions down a bit?

Vertical Scroll on the media kit page

Describe the bug

There is a vertical scroll coming on the Media Kit Page.

Steps to Reproduce

  1. Visit the media-kit page in the Front End
  2. Try to scroll the page vertically

Expected behavior

There should be no vertical scroll present on the page.

Screenshots

Screenshot 2021-10-06 at 5 35 15 PM

Environment information

  • Device: MacBook
  • OS: MacOS 11.6
  • Browser and version: Chrome 94.0.4606.61
  • WordPress version: 5.8.1
  • Theme and version: Twenty Twenty One
  • Site Health Info:

`

wp-core

version: 5.8.1
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true

wp-paths-sizes

wordpress_path: /var/www/html
wordpress_size: loading...
uploads_path: /var/www/html/wp-content/uploads
uploads_size: loading...
themes_path: /var/www/html/wp-content/themes
themes_size: loading...
plugins_path: /var/www/html/wp-content/plugins
plugins_size: loading...
database_size: loading...
total_size: loading...

wp-active-theme

name: Twenty Twenty-One (twentytwentyone)
version: 1.4
author: the WordPress team
author_website: https://wordpress.org/
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-formats, post-thumbnails, menus, html5, custom-logo, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-style, editor-font-sizes, custom-background, editor-color-palette, editor-gradient-presets, responsive-embeds, custom-line-height, experimental-link-color, custom-spacing, custom-units, widgets
theme_path: /var/www/html/wp-content/themes/twentytwentyone
auto_update: Disabled

wp-themes-inactive (2)

10up Theme: version: 0.1.0, author: 10up, Auto-updates disabled
Newspack: version: 1.50.0, author: Automattic, Auto-updates disabled

wp-mu-plugins (1)

10up Plugin Scaffold: version: 0.1.0, author: 10up

wp-plugins-active (1)

Publisher Media Kit: version: 0.1.0, author: 10up, Auto-updates disabled

wp-plugins-inactive (2)

Akismet Anti-Spam: version: 4.1.12, author: Automattic (latest version: 4.2.1), Auto-updates disabled
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1692
imagemagick_version: ImageMagick 6.9.12-19 Q16 x86_64 2021-07-18 https://imagemagick.org
imagick_version: 3.5.1
file_uploads: File uploads is turned off
post_max_size: 150m
upload_max_filesize: 150m
max_effective_size: 150 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 4 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 786432
imagick::RESOURCETYPE_MAP: 4 GB
imagick::RESOURCETYPE_MEMORY: 2 GB
imagick::RESOURCETYPE_THREAD: 1
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: 2.2.5
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: not available

wp-server

server_architecture: Linux 5.10.47-linuxkit x86_64
httpd_software: nginx/1.21.1
php_version: 7.3.29 64bit
php_sapi: fpm-fcgi
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: 60
upload_max_filesize: 150m
php_post_max_size: 150m
curl_version: 7.61.1 OpenSSL/1.1.1g
suhosin: false
imagick_availability: true
pretty_permalinks: true

wp-database

extension: mysqli
server_version: 5.7.35
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/html/wp-content
WP_PLUGIN_DIR: /var/www/html/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable
`

Additional context

Release 1.2.0

This issue is for tracking changes for the 1.2.0 release. Target release date: Late June 2022 or Early July 2022.

Pre-release steps

  • Make sure the #85 is merged/closed.
  • Confirm build commands, ensure GitHub Actions building plugin correctly

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.2.0 for your changes.
  • Version bump: Bump the version number in package-lock.json, package.json, publisher-media-kit.php, readme.txt, and any other relevant files if it does not already reflect the version being released. Update both the plugin "Version:" property and the plugin PUBLISHER_MEDIA_KIT_VERSION constant in publisher-media-kit.php.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt. (Recommendation to use: https://github.com/10up/changelog-generator)
  • Props: update the CREDITS.md file with any new contributors, and confirm maintainers are accurate. (Recommendation to use: https://github.com/10up/credits-generator)
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .distignore.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Make sure the release date is added in the CHANGELOG.md.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk (git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/publisher-media-kit/. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.2.0 do not make it into the release, update their milestone to1.2.0 or Future Release

Left align the icons in the 'Why you should choose digital' section.

Is your enhancement related to a problem? Please describe.

The icons should be left aligned in the 'Why you should choose digital' section, currently it is center aligned.
I am using the Twenty Twenty One Theme.

Describe the solution you'd like

The icons should be left aligned by default.

Designs

Screenshot 2021-10-06 at 5 59 31 PM

Additional context

Add a GH Actions summary

Is your enhancement related to a problem? Please describe.

Update the plugin to use the GH Actions Report summary used in 10up/cypress-wp-utils#63. It's a very nice presentation of the test results.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

This card is going outside of the alignment

Describe the bug

This is more of a visual bug.
The instagram followers card is laying outside the vertical wall of the Media Page.

Steps to Reproduce

  1. Just open the media page
  2. Scroll to the area below the audience profile

Screenshots, screen recording, code snippet

Screenshot 2023-03-24 at 2 46 21 PM

Environment information

  • Device MacBook Pro (Retina, 15-inch, Mid 2015)
  • OS Mc Os Monterey 12.6.3
  • Chrome Version 111.0.5563.110 (Official Build) (x86_64)

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

The Tabs' Orientation Options are not supported

Describe the bug

The Orientation Options in the Tabs block are not supported unlike upstream. The Media Kit page design does not contain the Vertical orientation so the option can be removed.

Steps to Reproduce

  1. Edit the 'Media Kit' page.
  2. Go to the 'Our Rates' tabs section.
  3. Try changing the 'Orientation Options'.
  4. See it only works for horizontal, not vertical.

Screenshots, screen recording, code snippet

pmk-orientation-issue
image link

Environment information

No response

WordPress information

` ### wp-core ###

version: 5.8.3
site_language: en_US
user_language: en_US
timezone: Asia/Kolkata
permalink: /%postname%/
https_status: false
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: local
user_count: 7
dotorg_communication: true

wp-paths-sizes

wordpress_path: /Users/faisalalvi/LocalSites/wpne/app/public
wordpress_size: 43.74 MB (45862139 bytes)
uploads_path: /Users/faisalalvi/LocalSites/wpne/app/public/wp-content/uploads
uploads_size: 6.46 MB (6776453 bytes)
themes_path: /Users/faisalalvi/LocalSites/wpne/app/public/wp-content/themes
themes_size: 6.47 MB (6780262 bytes)
plugins_path: /Users/faisalalvi/LocalSites/wpne/app/public/wp-content/plugins
plugins_size: 2.91 GB (3122292916 bytes)
database_size: 37.42 MB (39239680 bytes)
total_size: 3.00 GB (3220951450 bytes)

wp-dropins (1)

db.php: true

wp-active-theme

name: Storefront (storefront)
version: 3.9.1
author: Automattic
author_website: https://woocommerce.com/
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, automatic-feed-links, custom-logo, menus, html5, custom-background, custom-header, site-logo, title-tag, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-font-sizes, editor-style, responsive-embeds, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, starter-content, widgets
theme_path: /Users/faisalalvi/LocalSites/wpne/app/public/wp-content/themes/storefront
auto_update: Disabled

wp-themes-inactive (9)

Newspack Joseph: version: 1.0.0-alpha.33, author: Automattic, Auto-updates disabled
Newspack Katharine: version: 1.0.0-alpha.33, author: Automattic, Auto-updates disabled
Newspack Nelson: version: 1.0.0-alpha.33, author: Automattic, Auto-updates disabled
Newspack Sacha: version: 1.0.0-alpha.33, author: Automattic, Auto-updates disabled
Newspack Scott: version: 1.0.0-alpha.33, author: Automattic, Auto-updates disabled
Newspack: version: 1.53.2, author: Automattic, Auto-updates disabled
Twenty Nineteen: version: 2.1, author: the WordPress team, Auto-updates disabled
Twenty Twenty: version: 1.8, author: the WordPress team, Auto-updates disabled
Twenty Twenty-One: version: 1.4, author: the WordPress team, Auto-updates disabled

wp-mu-plugins (1)

ngrok.php: author: (undefined), version: (undefined)

wp-plugins-active (7)

Bookings Helper: version: 1.0.3, author: WooCommerce, Auto-updates disabled
Publisher Media Kit: version: 1.0.0, author: 10up, Auto-updates disabled
Query Monitor: version: 3.7.1, author: John Blackbourn (latest version: 3.8.2), Auto-updates disabled
WooCommerce: version: 5.9.0, author: Automattic (latest version: 6.1.0), Auto-updates disabled
WooCommerce Bookings: version: 1.15.49, author: WooCommerce, Auto-updates disabled
WooCommerce Stripe Gateway: version: 5.7.0, author: WooCommerce (latest version: 6.0.0), Auto-updates disabled
WP Crontrol: version: 1.12.0, author: John Blackbourn & crontributors, Auto-updates disabled

wp-plugins-inactive (26)

Accessibility CheckUp: version: 1.2.0, author: 10up, Auto-updates disabled
Ads.txt Manager: version: 1.3.0, author: 10up, Auto-updates disabled
AMP: version: 2.1.4, author: AMP Project Contributors (latest version: 2.2.0), Auto-updates disabled
Bookings Generator: version: 1.0.0, author: WooCommerce, Auto-updates disabled
Distributor: version: 1.6.7, author: 10up Inc., Auto-updates disabled
Dokan: version: 3.3.2, author: weDevs (latest version: 3.3.6), Auto-updates disabled
Jetpack: version: 10.3, author: Automattic (latest version: 10.5), Auto-updates disabled
Members: version: 3.1.7, author: MemberPress, Auto-updates disabled
Newspack: version: 1.67.0-alpha.2, author: Automattic, Auto-updates disabled
Newspack Blocks: version: 1.42.1, author: Automattic, Auto-updates disabled
Newspack Newsletters: version: 1.36.1, author: Automattic (latest version: 1.38.0), Auto-updates disabled
PWA: version: 0.6.0, author: PWA Plugin Contributors, Auto-updates disabled
Restricted Site Access: version: 7.2.0, author: Jake Goldman, 10up, Oomph, Auto-updates disabled
Simple Local Avatars: version: 2.2.0, author: Jake Goldman, 10up, Auto-updates disabled
Simple Podcasting: version: 1.2.0, author: 10up (latest version: 1.2.1), Auto-updates disabled
Site Kit by Google: version: 1.45.0, author: Google (latest version: 1.48.1), Auto-updates disabled
User Switching: version: 1.5.8, author: John Blackbourn & contributors, Auto-updates disabled
W3 Total Cache: version: 2.1.9, author: BoldGrid (latest version: 2.2.1), Auto-updates disabled
WooCommerce Blocks: version: 6.3.0-dev, author: Automattic (latest version: 6.7.1), Auto-updates disabled
WooCommerce Bookings Availability: version: 1.1.19, author: WooCommerce, Auto-updates disabled
WooCommerce Deposits: version: 1.5.7, author: WooCommerce, Auto-updates disabled
WooCommerce Memberships: version: 1.22.1, author: SkyVerge, Auto-updates disabled
WooCommerce Product Vendors: version: 2.1.57, author: WooCommerce, Auto-updates disabled
WooCommerce Square: version: 2.7.0, author: WooCommerce, Auto-updates disabled
WooCommerce Xero Integration: version: 1.7.40, author: WooCommerce, Auto-updates disabled
Yoast SEO: version: 17.6, author: Team Yoast (latest version: 17.9), Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: File uploads is turned off
post_max_size: 1000M
upload_max_filesize: 300M
max_effective_size: 300 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, BMP
ghostscript_version: not available

wp-server

server_architecture: Darwin 21.1.0 x86_64
httpd_software: nginx/1.16.0
php_version: 7.3.5 64bit
php_sapi: fpm-fcgi
max_input_variables: 4000
time_limit: 1200
memory_limit: 256M
max_input_time: 600
upload_max_filesize: 300M
php_post_max_size: 1000M
curl_version: 7.54.0 LibreSSL/2.6.5
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false

wp-database

extension: mysqli
server_version: 8.0.16
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /Users/faisalalvi/LocalSites/wpne/app/public/wp-content
WP_PLUGIN_DIR: /Users/faisalalvi/LocalSites/wpne/app/public/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable

`

Code of Conduct

  • I agree to follow this project's Code of Conduct

Update gender icons to be outlines only

Is your enhancement related to a problem? Please describe.
Update male/female images to be outline only (currently can be interpreted as % of audience).

Describe the solution you'd like
New images for male/female audience members

Designs

  • male icon
  • female icon

Describe alternatives you've considered

Additional context

Minor UI - Bottom border should be full width after the title as per design

Describe the bug

  1. As per style guide/design, every border should be full width after the title. In our developed page border with is narrow.

image

Expected behavior

image


  1. Would be great if increase spacing between the title and bottom border. Will look better.

Our Page -

image

Expected Design -

image

Ps. Please do the same changes for all similar blocks on this page.

Screenshots

Environment information
macOS Monterey, Chrome Latest and 2021 theme.

WordPress information

Site Health info:

Additional context

Release version 0.9.0

This issue is for tracking changes for the 0.9.0 release to submit to WP.org for initial review / approval of the SVN repo. Target release date: November 2021.

Pre-release steps

  • None

Release steps

  • Branch: Starting from develop, cut a release branch named release/0.9.0 for your changes.
  • Version bump: Bump the version number in package-lock.json, package.json, publisher-media-kit.php, readme.txt, and any other relevant files if it does not already reflect the version being released. Update both the plugin "Version:" property and the plugin PUBLISHER_MEDIA_KIT_VERSION constant in publisher-media-kit.php.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .distignore.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk (git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/publisher-media-kit/. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 0.9.0 do not make it into the release, update their milestone to1.0.0 or Future Release.

Release version 1.0.0

This issue is for tracking changes for the 1.0.0 release. Target release date: December 2021.

Pre-release steps

  • Confirm build commands, ensure GitHub Actions building plugin correctly <-- @faisal-alvi investigating

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.0.0 for your changes.
  • Version bump: Bump the version number in package-lock.json, package.json, publisher-media-kit.php, readme.txt, and any other relevant files if it does not already reflect the version being released. Update both the plugin "Version:" property and the plugin PUBLISHER_MEDIA_KIT_VERSION constant in publisher-media-kit.php.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt.
  • Props: update CREDITS.md file with any new contributors, confirm maintainers are accurate.
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .distignore.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk (git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/publisher-media-kit/. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.0.0 do not make it into the release, update their milestone to1.1.0 or Future Release.

Add initial e2e tests & GitHub Action

Is your enhancement related to a problem? Please describe.
Initial details noted here: https://10up.github.io/Open-Source-Best-Practices/testing/
Example implementations: https://github.com/10up/simple-podcasting && https://github.com/10up/restricted-site-access

Describe the solution you'd like

  • add Cypress e2e framework into project
  • add GitHub Action testing workflow
  • add base set of plugin e2e tests

Designs

Describe alternatives you've considered

Additional context

Release 1.3.1

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.3.1 for your changes.
  • Version bump: Bump the version number in package-lock.json, package.json, publisher-media-kit.php, readme.txt, and any other relevant files if it does not already reflect the version being released. Update both the plugin "Version:" property and the plugin PUBLISHER_MEDIA_KIT_VERSION constant in publisher-media-kit.php.
  • Merge/Close #105.
  • Merge/Close #115.
  • Make sure the open issues/PRs targeted for the 1.3.1 release are closed/merged before proceeding.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt. (Recommendation to use: https://github.com/10up/changelog-generator)
  • If required, Add a note in the CHANGELOG.md and readme.txt files about the min required versions that are bumped, for example: Note that this release bumps the minimum required version of WordPress from 5.5 to 5.7 and PHP from 7.0 to 7.4.
  • Props: update the CREDITS.md file with any new contributors, and confirm maintainers are accurate. (Recommendation to use: https://github.com/10up/credits-generator)
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .distignore.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Make sure the release date is added in the CHANGELOG.md.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk (git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Test: Run through common tasks while on trunk to be sure it functions correctly.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Test the pre-release ZIP locally by downloading it from the Build release zip action artifact to ensure the plugin doesn't break after release.
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/publisher-media-kit/. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.3.1 do not make it into the release, update their milestone to 1.3.2 or Future Release.

Bump WordPress and PHP minimums

Bump WP & PHP Minimums to the following

  • WordPress to 5.7
  • PHP to 7.4
  • Remove any no-longer-needed conditional code for older version support.
  • Take a look at adjusting our testing matrices, if applicable.
  • Bump the minimums in plugin documentation and header fields.

Fix lint errors

Describe the bug
Eslint error occurred while building/watching assets.

image

Add non-female/male or gender audience groupings

Is your enhancement related to a problem? Please describe.
Some publishers may track, report, and provide advertising to more diverse segments than just "male/female". This issue is opened to track feedback from the publisher community on alternate options they would like on their Media Kit page.

Describe the solution you'd like
Please provide feedback in comments here with alternates to male/female that you would like as part of your audience profiles.

Designs

Describe alternatives you've considered

Additional context

Release 1.3.0

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.3.0 for your changes.
  • Version bump: Bump the version number in package-lock.json, package.json, publisher-media-kit.php, readme.txt, and any other relevant files if it does not already reflect the version being released. Update both the plugin "Version:" property and the plugin PUBLISHER_MEDIA_KIT_VERSION constant in publisher-media-kit.php.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt. (Recommendation to use: https://github.com/10up/changelog-generator)
  • Props: update the CREDITS.md file with any new contributors, and confirm maintainers are accurate. (Recommendation to use: https://github.com/10up/credits-generator)
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .distignore.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Make sure the release date is added in the CHANGELOG.md.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk (git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Test: Run through common tasks while on trunk to be sure it functions correctly.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/publisher-media-kit/. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.3.0 do not make it into the release, update their milestone to 1.4.0 or Future Release.

Losslessly compress included images.

Is your enhancement related to a problem? Please describe.

While testing another issue, I notice that some of the images could be loselessly compressed and save about 17KB on the page.

This is based on running the images through https://compressor.io/

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Update PHPCS action to avoid deprecation errors.

Describe the bug

The PHPCS linting action is currently failing due to deprecation errors in the version of the sniffer in use.

This prevents two things:

  • warnings about coding standard errors
  • merging of approved pull requests by non-admins

Steps to Reproduce

See previous action run.

Screenshots, screen recording, code snippet

No response

Environment information

N/A: GitHub action.

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Our rates section should be responsive in mobile screen

Describe the bug
Our rates section should be responsive on mobile screen.
mobile viewport - (320*568)

Steps to Reproduce
-Go to Media Kit page

  • Scroll down

Expected behavior

  • Frontend should be match with design

Screenshots
https://www.screencast.com/t/HxT5mmqgQ

Environment information

Device: MacBook
OS: 12.0.1
Browser and version: Chrome 96.0.4664.55, Safari 15.1
WordPress version: 5.8.2
Theme and version: Twenty Twenty-OneVersion: 1.4 , NewspackVersion: 1.54.0-alpha.1 ,
Newspack JosephVersion: 1.53.2
** Site Helth Info**

Tab Title is editable from below the tab!

Describe the bug
It is noted in #29 that the tabs titles are now no more editable from their own location, however, it is now displaying below the tab! See #29 (comment)

editable-tab-title-changed-location

It should be editable from their own location as per the upstream tabs.

10up-tabs-block-title
image link

Steps to Reproduce

  1. Go to PMK Media Kit page.
  2. Scroll to "Our Rates" section.
  3. See the tab titles are editable from below the tab, unlike upstream.

Expected behavior
The tabs titles from the PMK plugin should be editable like upstream tabs.

Release 1.2.1

Release steps

  • Branch: Starting from develop, cut a release branch named release/1.2.1 for your changes.
  • Version bump: Bump the version number in package-lock.json, package.json, publisher-media-kit.php, readme.txt, and any other relevant files if it does not already reflect the version being released. Update both the plugin "Version:" property and the plugin PUBLISHER_MEDIA_KIT_VERSION constant in publisher-media-kit.php.
  • Changelog: Add/update the changelog in CHANGELOG.md and readme.txt. (Recommendation to use: https://github.com/10up/changelog-generator)
  • Props: update the CREDITS.md file with any new contributors, and confirm maintainers are accurate. (Recommendation to use: https://github.com/10up/credits-generator)
  • New files: Check to be sure any new files/paths that are unnecessary in the production version are included in .distignore.
  • Readme updates: Make any other readme changes as necessary. README.md is geared toward GitHub and readme.txt contains WordPress.org-specific content. The two are slightly different.
  • Make sure the release date is added in the CHANGELOG.md.
  • Merge: Make a non-fast-forward merge from your release branch to develop (or merge the pull request), then do the same for develop into trunk (git checkout trunk && git merge --no-ff develop). trunk contains the stable development version.
  • Push: Push your trunk branch to GitHub (e.g. git push origin trunk).
  • Release: Create a new release, naming the tag and the release with the new version number, and targeting the trunk branch. Paste the changelog from CHANGELOG.md into the body of the release and include a link to the closed issues on the milestone.
  • SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
  • Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/publisher-media-kit/. This may take a few minutes.
  • Close milestone: Edit the milestone with release date (in the Due date (optional) field) and link to GitHub release (in the Description field), then close the milestone.
  • Punt incomplete items: If any open issues or PRs which were milestoned for 1.2.1 do not make it into the release, update their milestone to1.3.0 or Future Release

Broken images as a result of latest update

Describe the bug

The update for images from /assets to /dist (due to a change in patterns?) has resulted in broken images for all plugin users who updated to the latest release. It seems the only way to fix this is by re-inserting the block patterns fresh and starting over with that block. But there are too many sites utilizing this plugin to explain that process for fixing 😅

Steps to Reproduce

  1. Update to the latest version of the plugin
  2. Go to the page editor for the Media Kit
  3. You'll see broken links where images should be (see screenshots)
  4. Preview the page and you'll see broken links on the frontend

Screenshots, screen recording, code snippet

Screen Shot 2022-07-12 at 12 47 27 PM

Screen Shot 2022-07-12 at 12 47 36 PM

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Images not displayed when WordPress is installed in a subdirectory

Describe the bug

As reported on WordPress.org, if a WordPress install is set up in a subdirectory, the images don't work. The issue here is we have hardcoded image paths that point directly to /wp-content. If a site is installed in a subdirectory, this results in images not working because the subdirectory path isn't added to those images.

Steps to Reproduce

  1. Set up a new WordPress site in a subdirectory
  2. Install and activate this plugin
  3. Check the Media Kit page and see broken images

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Our packages section should be responsive in mobile screen

Describe the bug
Our packages section should be responsive on mobile screen.
mobile viewport - (320*568)

Steps to Reproduce
-Go to Media Kit page

  • Scroll down

Expected behavior

  • Frontend should be match with design

Screenshots
https://www.screencast.com/t/nY73anok7Wwb

Environment information

Device: MacBook
OS: 12.0.1
Browser and version: Chrome 96.0.4664.55, Safari 15.1
WordPress version: 5.8.2
Theme and version: Twenty Twenty-OneVersion: 1.4 , NewspackVersion: 1.54.0-alpha.1 ,
Newspack JosephVersion: 1.53.2
** Site Helth Info**

Fix horizontal scroll issue on the editor

Describe the bug
For a great user experience, Gutenberg Block Editor should not be horizontally scrollable.

Steps to Reproduce
Edit 'Media Kit' page in BE

Expected behaviour
Gutenberg Block Editor should not be horizontally scrollable.

Screenshots
image

Console Error - Uncaught ReferenceError: wp is not defined

Describe the bug

I am getting a console error on the media-kit page. The error says Uncaught ReferenceError: wp is not defined in editor.js line no 56.

Steps to Reproduce

  1. Install and activate any theme I tried install the https://wordpress.org/themes/twentytwentyone/ theme
  2. Install and activate the https://github.com/10up/publisher-media-kit/ plugin
  3. Visit the media-kit page in the Front End
  4. Open Console tab to view the error.

Expected behavior

There should be no errors and warnings in the console tab.

Screenshots

Screenshot 2021-10-06 at 4 40 57 PM

Screenshot 2021-10-06 at 4 41 39 PM

Screenshot 2021-10-06 at 5 02 11 PM

Screenshot 2021-10-06 at 5 02 36 PM

Environment information

  • Device: MacBook
  • OS: MacOS 11.6
  • Browser and version: Chrome 94.0.4606.61
  • WordPress version: 5.8.1

Additional context

Test against WordPress 5.9

Is your enhancement related to a problem? Please describe.

Describe the solution you'd like

  • test WP New Relic on WordPress 5.9
  • open issues for any incompatibilities noted in testing
  • resolve issues identified in testing
  • bump "tested up to" version
  • if code changes needed due to incompatibilities, ship a plugin release, otherwise use "Plugin asset/readme update" action to update "tested up to" version on .org repo

Designs
n/a

Describe alternatives you've considered
None

Additional context

Test against WordPress 6.0

Is your enhancement related to a problem? Please describe.
Once WordPress 6.0 is released, we'll want to test Publisher Media Kit to see if any incompatibility issues arise.

Describe the solution you'd like

  • test Publisher Media Kit on WordPress 6.0
  • open issues for any incompatibilities noted in testing
  • resolve issues identified in testing
  • bump "tested up to" version
  • if code changes needed due to incompatibilities, ship a plugin release, otherwise use "Plugin asset/readme update" action to update "tested up to" version on .org repo

Designs
n/a

Describe alternatives you've considered
none

Additional context
Related: #56

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.