Permalink
Browse files

Ampliado soporte para custom post types en las entradas relacionadas …

…t_em_single_related_posts().

Agregado el filtro t_em_filter_single_related_post_query
  • Loading branch information...
rogertm committed Oct 9, 2017
1 parent 21e1687 commit c78571fb261476af6640fbf624df14d48b7e499d
View
@@ -1,5 +1,10 @@
== Changelog ==
= 1.2 =
Release Date: October 09, 2017
* Enhancement: Better Debug Info Panel
* Enhancement: Support for custom post types in single related posts. Added the "t_em_filter_single_related_post_query" filter
= Bootstrap 4 =
Release Date: September 09, 2017
* Enhancement: A fully migration to Bootstrap v4.0.0-beta
View
@@ -73,7 +73,7 @@
define ( 'T_EM_FRAMEWORK_VERSION', '1.2' );
define ( 'T_EM_FRAMEWORK_VERSION_NAME', __( 'Plymita picta', 't_em' ) );
define ( 'T_EM_FRAMEWORK_VERSION_STATUS', 'Beta' );
define ( 'T_EM_DB_VERSION', '20170909' ); // In date format Ymd
define ( 'T_EM_DB_VERSION', '20171009' ); // In date format Ymd
// Third Party Softwares
define ( 'T_EM_BOOTSTRAP_VERSION', '4.0.0-beta' );
View
@@ -17,7 +17,8 @@
* If WP_DEBUG is set to true, show debug information for the user
*/
function t_em_register_debug_init(){
if ( WP_DEBUG ) :
global $t_em;
if ( WP_DEBUG || $t_em['show_debug_panel'] ) :
add_settings_field( 't_em_debug_info', __( 'Debug Information', 't_em' ), 't_em_settings_field_debug_set', 'twenty-em-options', 'twenty-em-section' );
endif;
}
@@ -61,6 +61,11 @@ function t_em_general_options( $general_options = '' ){
'label' => __( 'Enable shortcodes buttons', 't_em' ),
'sublabel' => __( 'Shortcodes are always enables, but you can hide or show the buttons in the posts or pages editor', 't_em' ),
),
'show_debug_panel' => array(
'value' => 'show_debug_panel',
'label' => __( 'Show Debug Panel', 't_em' ),
'sublabel' => __( 'Great tool for developers. Display a Debug Panel with important information at the bottom of this administration panel. If <code>WP_DEBUG</code> is enable, this panel will be shown any way.', 't_em' ),
),
);
/**
View
@@ -148,6 +148,7 @@ function t_em_default_theme_options( $default_theme_options = '' ){
'separate_comments_pings_tracks' => '1',
'single_page_comments' => '1',
'shortcode_buttoms' => '1',
'show_debug_panel' => '0',
// Header Options
'header_set' => 'no-header',
'header_featured_image_home_only' => '0',
@@ -369,6 +370,7 @@ function t_em_theme_options_validate( $input ){
'separate_comments_pings_tracks',
'single_page_comments',
'shortcode_buttoms',
'show_debug_panel',
'header_featured_image_home_only',
'header_featured_image',
'slider_home_only',
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit c78571f

Please sign in to comment.