s3lf
Forum Replies Created
-
Forum: Plugins
In reply to: [Category Color] Get raw PHP Code of pluginSorry I cannot help you, I suggest to just use the plugin as-is
Forum: Plugins
In reply to: [Category Color] Get raw PHP Code of pluginHi
While I would not recommend that, just temporarily install the plugin and extract the code.
Alex
Hi,
I am also on the latest version (2.1.3)
Auto translation was on. I opened the /am/robots.txt and it was translated.Which steps did you use to test?
Regards,
Alex
- This reply was modified 4 years, 6 months ago by s3lf.
Thanks for your answer,
It’s in stock WordPress, I do not use any SEO Plugin.
What steps did you do to replicate? Which Plugin version?
This would help for the second problem:
// fix robots.txt does not need to be translated add_filter( 'trp_stop_translating_page', 'trp_robots_txt_dont_translate', 10, 2 ); function trp_robots_txt_dont_translate( $bool, $output ){ if ( substr($_SERVER['REQUEST_URI'],-10) === 'robots.txt') { return true; } return $bool; }Forum: Plugins
In reply to: [Category Color] Undefined index / undefined propertyHere’s a patch, please apply 🙂
Thanks 🙂
Index: public/wp-content/plugins/category-color/rl_category_color.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
— public/wp-content/plugins/category-color/rl_category_color.php (date 1545999820000)
+++ public/wp-content/plugins/category-color/rl_category_color.php (date 1546000323000)
@@ -13,6 +13,8 @@
protected $_meta;
protected $_taxonomies;
protected $_fields;
+ protected $js;
+ protected $css;function __construct( $meta ){
if ( !is_admin() )
@@ -105,7 +107,7 @@
foreach ( $this->_fields as $field ) {
echo ‘<tr>’;– $meta = !empty( $metas[$field[‘id’]] ) ? $metas[$field[‘id’]] : $field[‘std’];
+ $meta = !empty( $metas[$field[‘id’]] ) ? $metas[$field[‘id’]] : (isset($field[‘std’]) ? $field[‘std’] : null);
$meta = is_array( $meta ) ? array_map( ‘esc_attr’, $meta ) : esc_attr( $meta );
call_user_func( array( $this, ‘show_field_’ . $field[‘type’] ), $field, $meta );@@ -123,7 +125,7 @@
}function show_field_end( $field, $meta ) {
– echo $field[‘desc’] ? “<br><span class=’description’>{$field[‘desc’]}</span></td>” : ‘</td>’;
+ echo (isset($field[‘desc’]) && $field[‘desc’]) ? “<br><span class=’description’>{$field[‘desc’]}</span></td>” : ‘</td>’;
}function show_field_color( $field, $meta ){
Forum: Plugins
In reply to: [Relative URL] Removes lang attributes in URL (Polylang)are you using the plugin out of the box or any customizations?
Forum: Plugins
In reply to: [Relative URL] Removes lang attributes in URL (Polylang)Same problem here
Forum: Plugins
In reply to: [Category Color] Color Picker doesn't work !Same here…
Workaround:
In wp-content/plugins/category-color/rl_category_color.php:35Change load_edit_page like this:
function load_edit_page(){ $screen = get_current_screen(); if( /*'edit-tags' != $screen->base || empty( $_GET['action'] ) || 'edit' != $_GET['action'] ||*/ !in_array( $screen->taxonomy, $this->_taxonomies ) ){ return; } add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); add_action( 'admin_head', array( $this, 'output_css' ) ); add_action( 'admin_footer', array( $this, 'output_js' ), 100 ); }