Update comments, .pot

This commit is contained in:
Robin Cornett
2016-04-30 14:20:30 -04:00
parent 9a30b702bb
commit 725cc0f020
4 changed files with 125 additions and 107 deletions
@@ -217,7 +217,7 @@ class Display_Featured_Image_Genesis_Admin {
* Make the featured image column sortable.
* @param $columns
* @return mixed
* @since x.y.z
* @since 2.5.0
*/
public function make_sortable( $columns ) {
$columns['featured_image'] = 'featured_image';
@@ -226,8 +226,8 @@ class Display_Featured_Image_Genesis_Admin {
/**
* Set a custom query to handle sorting by featured image
* @param $query
* @since x.y.z
* @param $query WP_Query
* @since 2.5.0
*/
public function orderby( $query ) {
if ( ! is_admin() ) {
@@ -249,7 +249,7 @@ class Display_Featured_Image_Genesis_Admin {
),
)
);
$post_type = $query->get ( 'post_type' );
$post_type = $query->get( 'post_type' );
$secondary_order = is_post_type_hierarchical( $post_type ) ? 'title' : 'date';
$query->set( 'orderby', "meta_value_num $secondary_order" );
}
@@ -172,6 +172,7 @@ class Display_Featured_Image_Genesis_Common {
}
}
// If this post type is set to always use a fallback image, stop here and use it.
if ( isset( $setting['fallback'][ $post_type ] ) && $setting['fallback'][ $post_type ] ) {
return $image_id;
}
@@ -10,13 +10,33 @@
class Display_Featured_Image_Genesis_Settings extends Display_Featured_Image_Genesis_Helper {
/**
* variable set for featured image option
* @var option
* The common plugin class.
* @var $commmon Display_Featured_Image_Genesis_Common
*/
protected $common;
/**
* The plugin admin page.
* @var $page string
*/
protected $page = 'displayfeaturedimagegenesis';
/**
* The plugin setting.
* @var $setting string
*/
protected $setting;
/**
* Public post types on the site.
* @var $post_types array
*/
protected $post_types;
/**
* The plugin settings fields.
* @var $fields array
*/
protected $fields;
/**
@@ -76,7 +96,7 @@ class Display_Featured_Image_Genesis_Settings extends Display_Featured_Image_Gen
}
/**
* Output tabs. All tabs will be output if it's a single site or the main site, and the settings page is not disabled.
* Output tabs.
* @return string
* @since 2.5.0
*/
@@ -708,7 +728,7 @@ class Display_Featured_Image_Genesis_Settings extends Display_Featured_Image_Gen
}
/**
* Check whether terms need to be udpated
* Check whether terms need to be updated
* @return boolean true if on 4.4 and wp_options for terms exist; false otherwise
*
* @since 2.4.0