Skip to content

Commit

Permalink
edit collection/licenses/creator links fixed, description kses updated
Browse files Browse the repository at this point in the history
  • Loading branch information
maharzan committed Jan 24, 2024
1 parent 6813af3 commit c30ff5c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Contributors: endortrails, nhuja
Donate link: https://graphpaperpress.com/plugins/sell-media/
Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart
Requires at least: 6.2.1
Tested up to: 6.3.1
Stable tag: 2.5.8.3
Tested up to: 6.4.2
Stable tag: 2.5.8.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down
6 changes: 3 additions & 3 deletions inc/class-admin-add-item.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function advanced_options_callback( $post ) {
<?php
echo wp_kses( sprintf( '<p class="tax-description description">%1$s %2$s %3$s.</p>', esc_attr__( 'Assign this', 'sell_media' ), esc_attr( strtolower( $obj->labels->singular_name )), esc_attr__( 'to a collection (optional). Archive pages are automatically created for each collection and can be accessed by adding /collection/name-of-collection/ to the end of your website url (replace "name-of-collection" with the url-friendly collection name)', 'sell_media' ) ), array('p' => array('class' => true)) );
post_categories_meta_box( $post, array( 'args' => array( 'taxonomy' => 'collection' ) ) );
echo wp_kses( sprintf( '<div class="tax-edit"><a href="' . esc_url( admin_url( 'edit-tags.php?taxonomy=collection&post_type=sell_media_item' ) ) . '">%s</a></div>', __( 'Edit All Collections', 'sell_media' ) ), array('p' => array('class' => true)) );
echo wp_kses( sprintf( '<div class="tax-edit"><a href="' . esc_url( admin_url( 'edit-tags.php?taxonomy=collection&post_type=sell_media_item' ) ) . '">%s</a></div>', __( 'Edit All Collections', 'sell_media' ) ), GPP_WP_KSES_EXTENDED_LIST );
?>
</div>
<?php
Expand All @@ -211,7 +211,7 @@ function advanced_options_callback( $post ) {
echo wp_kses( sprintf( '<h3 class="tax-title">%s</h3>', esc_attr__( 'Licenses', 'sell_media' ) ), array('h3' => array('class'), 'p' => array('class' => true)) );
echo wp_kses( sprintf( '<p class="tax-description description">%s.</p>', esc_attr__( 'Select the available usage licenses that buyers can choose from when purchasing (optional). Licenses can be assigned "markup" which will increase the cost of the item being purchase. For example, you can might have a "Personal" usage license with no markup from your base pricelists and a "Commercial" usage license with 50% markup from your base pricelists', 'sell_media' ) ), array('h3' => array('class' => true), 'p' => array('class' => true)) );
post_categories_meta_box( $post, array( 'args' => array( 'taxonomy' => 'licenses' ) ) );
echo wp_kses( sprintf( '<div class="tax-edit"><a href="' . esc_url( admin_url( 'edit-tags.php?taxonomy=licenses&post_type=sell_media_item' ) ) . '">%s</a></div>', esc_attr__( 'Edit All Licenses', 'sell_media' ) ), array('h3' => array('class' => true), 'p' => array('class' => true), 'div' => array('class' => true)) );
echo wp_kses( sprintf( '<div class="tax-edit"><a href="' . esc_url( admin_url( 'edit-tags.php?taxonomy=licenses&post_type=sell_media_item' ) ) . '">%s</a></div>', esc_attr__( 'Edit All Licenses', 'sell_media' ) ), GPP_WP_KSES_EXTENDED_LIST );
?>
</div>
<?php
Expand All @@ -225,7 +225,7 @@ function advanced_options_callback( $post ) {
echo wp_kses( sprintf( '<h3 class="tax-title">%s</h3>', esc_attr__( 'Creators', 'sell_media' ) ), array('h3' => array('class' => true), 'p' => array('class' => true), 'div' => array('class' => true)) );
echo wp_kses( sprintf( '<p class="tax-description description">%s.</p>', esc_attr__( 'Assign a creator (optional). Creators are also automatically imported from the "Credit" IPCT metadata field in the files that you upload. Archive pages are then automatically created for each creator and can be accessed by adding /creator/name-of-creator/ to the end of your website url (replace "name-of-creator" with the url-friendly name)', 'sell_media' ) ), array('h3' => array('class' => true), 'p' => array('class' => true), 'div' => array('class' => true)) );
post_categories_meta_box( $post, array( 'args' => array( 'taxonomy' => 'creator' ) ) );
echo wp_kses( sprintf( '<div class="tax-edit"><a href="' . esc_url( admin_url( 'edit-tags.php?taxonomy=creator&post_type=sell_media_item' ) ) . '">%s</a></div>', esc_attr__( 'Edit All Creators', 'sell_media' ) ), array('h3' => array('class' => true), 'p' => array('class' => true), 'div' => array('class' => true)) );
echo wp_kses( sprintf( '<div class="tax-edit"><a href="' . esc_url( admin_url( 'edit-tags.php?taxonomy=creator&post_type=sell_media_item' ) ) . '">%s</a></div>', esc_attr__( 'Edit All Creators', 'sell_media' ) ), GPP_WP_KSES_EXTENDED_LIST );
?>
</div>
<?php
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Contributors: endortrails, nhuja
Donate link: https://graphpaperpress.com/plugins/sell-media/
Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart
Requires at least: 6.2.1
Tested up to: 6.3.1
Stable tag: 2.5.8.3
Tested up to: 6.4.2
Stable tag: 2.5.8.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down
10 changes: 5 additions & 5 deletions sell-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Sell Media
* Plugin URI: http://graphpaperpress.com/plugins/sell-media/
* Description: A plugin for selling photos, prints and other downloads.
* Version: 2.5.8.3
* Version: 2.5.8.4
* Author: Graph Paper Press
* Author URI: http://graphpaperpress.com
* Author Email: [email protected]
Expand All @@ -24,7 +24,7 @@
* @package SellMedia
* @category Core
* @author Thad Allender
* @version 2.5.8.3
* @version 2.5.8.4
*/

// Exit if accessed directly.
Expand Down Expand Up @@ -155,7 +155,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'sell_media' ), '2.5.8.3' );
_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'sell_media' ), '2.5.8.4' );
}

/**
Expand All @@ -167,7 +167,7 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'sell_media' ), '2.5.8.3' );
_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'sell_media' ), '2.5.8.4' );
}

/**
Expand All @@ -181,7 +181,7 @@ private function constants() {

// Plugin version.
if ( ! defined( 'SELL_MEDIA_VERSION' ) ) {
define( 'SELL_MEDIA_VERSION', '2.5.8.3' );
define( 'SELL_MEDIA_VERSION', '2.5.8.4' );
}

// Plugin Folder Path.
Expand Down
2 changes: 1 addition & 1 deletion themes/archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<?php
$term_description = term_description();
if ( ! empty( $term_description ) ) {
?><h2 class="collection_description"><?php echo esc_html( $term_description ); ?></h2><?php
?><h2 class="collection_description"><?php echo wp_kses( $term_description, GPP_WP_KSES_EXTENDED_LIST ); ?></h2><?php
}
?>
<?php do_shortcode( '[sell_media_searchform]' ); ?>
Expand Down

0 comments on commit c30ff5c

Please sign in to comment.