Provisional tag 2.3.0

This commit is contained in:
Robin Cornett
2015-07-12 11:35:08 -04:00
parent a27419917f
commit 41ac3732cd
8 changed files with 29 additions and 20 deletions
+5
View File
@@ -204,6 +204,11 @@ This will follow the settings you choose in the Genesis Theme Settings.
## Changelog
### 2.3.0
* new: set a featured image for each author!
* added settings page link to plugin table
* refactored settings page
### 2.2.2
* fixed default image id function error
+1 -1
View File
@@ -12,7 +12,7 @@
* Plugin Name: Display Featured Image for Genesis
* Plugin URI: http://github.com/robincornett/display-featured-image-genesis/
* Description: This plugin works within the Genesis Framework, to display featured images in beautiful and dynamic ways.
* Version: 2.2.2
* Version: 2.3.0
* Author: Robin Cornett
* Author URI: http://robincornett.com
* License: GPL-2.0+
@@ -13,7 +13,7 @@ class Display_Featured_Image_Genesis_Common {
* @var string
* @since 1.4.3
*/
public $version = '2.2.2';
public $version = '2.3.0';
/**
* set and retreive variables for the featured image.
@@ -67,7 +67,7 @@ class Display_Featured_Image_Genesis_Description {
* filter to show title on front page
* @return boolean true/false
*
* @since x.y.z
* @since 2.3.0
*/
$show_front_page_title = apply_filters( 'display_featured_image_genesis_excerpt_show_front_page_title', false );
$show_front_page_title = true === $show_front_page_title ? $show_front_page_title : false;
@@ -125,7 +125,7 @@ class Display_Featured_Image_Genesis_Output {
* Pass variables through to our js
* @return backstretchVars variable array to send to js
*
* @since x.y.z
* @since 2.3.0
*/
public function localize_scripts() {
// backstretch settings from plugin/featured image settings
@@ -166,7 +166,7 @@ class Display_Featured_Image_Genesis_Output {
* filter to show title on front page
* @return boolean true/false
*
* @since x.y.z
* @since 2.3.0
*/
$show_front_page_title = apply_filters( 'display_featured_image_genesis_excerpt_show_front_page_title', false );
$show_front_page_title = true === $show_front_page_title ? $show_front_page_title : false;
@@ -300,12 +300,11 @@ class Display_Featured_Image_Genesis_Settings {
if ( empty( $id ) ) {
return;
}
echo '<p class="description">';
printf( __( 'View your <a href="%1$s" target="_blank">%2$s</a> archive.', 'display-featured-image-genesis' ),
$description = sprintf( __( 'View your <a href="%1$s" target="_blank">%2$s</a> archive.', 'display-featured-image-genesis' ),
esc_url( get_post_type_archive_link( $post_type ) ),
esc_attr( $args['post_type']->label )
);
echo '</p>';
printf( '<p class="description">%s</p>', wp_kses_post( $description ) );
}
/**
@@ -313,7 +312,7 @@ class Display_Featured_Image_Genesis_Settings {
* @param variable $id featured image ID
* @return $image image preview
*
* @since x.y.z
* @since 2.3.0
*/
public function render_image_preview( $id ) {
if ( empty( $id ) ) {
@@ -337,19 +336,19 @@ class Display_Featured_Image_Genesis_Settings {
* @param varable $name name for value/ID/class
* @return $buttons select/delete image buttons
*
* @since x.y.z
* @since 2.3.0
*/
public function render_buttons( $id, $name ) {
$id = is_numeric( $id ) ? $id : Display_Featured_Image_Genesis_Common::get_image_id( $id );
$id = $id ? (int) $id : '';
printf( '<input type="hidden" class="upload_image_id" id="%1$s" name="%1$s" value="%2$s" />', esc_attr( $name ), $id );
printf( '<input type="hidden" class="upload_image_id" id="%1$s" name="%1$s" value="%2$s" />', esc_attr( $name ), esc_attr( $id ) );
printf( '<input id="%s" type="button" class="upload_default_image button-secondary" value="%s" />',
esc_attr( $name ),
__( 'Select Image', 'display-featured-image-genesis' )
esc_attr__( 'Select Image', 'display-featured-image-genesis' )
);
if ( ! empty( $id ) ) {
printf( ' <input type="button" class="delete_image button-secondary" value="%s" />',
__( 'Delete Image', 'display-featured-image-genesis' )
esc_attr__( 'Delete Image', 'display-featured-image-genesis' )
);
}
}
@@ -506,7 +505,7 @@ class Display_Featured_Image_Genesis_Settings {
* Returns old value for author image if not correct file type/size
* @param string $new_value New value
* @return string New value or old, depending on allowed image size.
* @since x.y.z
* @since 2.3.0
*/
public function validate_author_image( $new_value, $old_value ) {
@@ -532,7 +531,7 @@ class Display_Featured_Image_Genesis_Settings {
* @param var $user user being updated
* @return error message
*
* @since x.y.z
* @since 2.3.0
*/
public function user_profile_error_message( $errors, $update, $user ) {
$new_value = (int) $_POST['displayfeaturedimagegenesis'];
@@ -170,7 +170,7 @@ class Display_Featured_Image_Genesis {
/**
* Set new profile field for authors
*
* @since x.y.z
* @since 2.3.0
*/
public function set_author_meta() {
// current user
+9 -4
View File
@@ -4,8 +4,8 @@ Contributors: littler.chicken
Donate link: https://robincornett.com/donate/
Tags: backstretch, featured image, featured images, genesis, studiopress, post thumbnails, featured image rss, rss
Requires at least: 3.8
Tested up to: 4.2
Stable tag: 2.2.2
Tested up to: 4.3
Stable tag: 2.3.0
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -162,11 +162,16 @@ This will follow the settings you choose in the Genesis Theme Settings.
3. Quickly see the featured image assigned to each post or term.
== Upgrade Notice ==
= 2.2.2 =
Bugfix: default image ID function
= 2.3.0 =
featured images for authors, yay!
== Changelog ==
= 2.3.0 =
* new: set a featured image for each author!
* added settings page link to plugin table
* refactored settings page
= 2.2.2 =
* fixed default image id function error