Version Description
- Fixed the "show custom link" functionality. My bad.
Download this release
Release Info
Developer | bitacre |
Plugin | Custom Meta Widget |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- customMeta.php +6 -7
- readme.txt +7 -1
customMeta.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
Plugin Name: Custom Meta Widget
|
3 |
Plugin URI: http://shinraholdings.com/plugins/custom-meta-widget/
|
4 |
Description: Clone of the standard Meta widget with options to hide thlogin, admin, entry and comment feed, WordPress.org and /custom links.
|
5 |
-
Version: 1.5.
|
6 |
Author: bitacre
|
7 |
-
Author URI:
|
8 |
License: GPLv2
|
9 |
-
Copyright 2018 Shinra Web Holdings (
|
10 |
*/
|
11 |
|
12 |
|
@@ -56,7 +56,7 @@ class customMetaWidget extends WP_Widget
|
|
56 |
|
57 |
/** Before widgets filter */
|
58 |
echo '<!--' . PHP_EOL . __( 'Plugin: Custom Meta Widget', 'customMetaWidget' ) . PHP_EOL .
|
59 |
-
__( 'Plugin URL', 'customMetaWidget' ) . ': ' . $this->homepage .
|
60 |
PHP_EOL . '-->' . PHP_EOL . $args['before_widget'];
|
61 |
|
62 |
/** Title filter */
|
@@ -101,7 +101,7 @@ class customMetaWidget extends WP_Widget
|
|
101 |
endif;
|
102 |
|
103 |
// @TODO Integrate this into wp_meta()
|
104 |
-
if( (int) esc_attr( $instance['
|
105 |
echo ( !empty( $instance['customtext'] ) && !empty( $instance['customurl'] ) ?
|
106 |
'<li><a href="' . esc_url( $instance['customurl'] ) . '">' . esc_attr( $instance['customtext'] ) . '</a></li>' :
|
107 |
'<!--' . __( 'Error: "Show Custom Link" is checked, but either the text or URL for that link are not specified. The link was not displayed because it would be broken. Check the settings for your Custom Meta widget.', 'customMetaWidget' ) . '-->' );
|
@@ -199,7 +199,7 @@ function form( $instance ) {
|
|
199 |
$checked = checked( $instance[$slug], 1, false );
|
200 |
$value = 1;
|
201 |
}
|
202 |
-
$label_tag = '<label style="margin:0 3px;" for="' . $id . '">' . $label . '</label>';
|
203 |
?>
|
204 |
|
205 |
<!-- <?php echo $slug; ?> -->
|
@@ -252,7 +252,6 @@ function customMetaWidget_swap() {
|
|
252 |
register_widget( 'customMetaWidget' );
|
253 |
} add_action( 'widgets_init', 'customMetaWidget_swap' ); // hook
|
254 |
|
255 |
-
|
256 |
/**
|
257 |
* Load TextDomain
|
258 |
*/
|
2 |
Plugin Name: Custom Meta Widget
|
3 |
Plugin URI: http://shinraholdings.com/plugins/custom-meta-widget/
|
4 |
Description: Clone of the standard Meta widget with options to hide thlogin, admin, entry and comment feed, WordPress.org and /custom links.
|
5 |
+
Version: 1.5.1
|
6 |
Author: bitacre
|
7 |
+
Author URI: https://github.com/lmlsna
|
8 |
License: GPLv2
|
9 |
+
Copyright 2018 Shinra Web Holdings (https://shinraholdings.com)
|
10 |
*/
|
11 |
|
12 |
|
56 |
|
57 |
/** Before widgets filter */
|
58 |
echo '<!--' . PHP_EOL . __( 'Plugin: Custom Meta Widget', 'customMetaWidget' ) . PHP_EOL .
|
59 |
+
__( 'Plugin URL', 'customMetaWidget' ) . ': ' . $this->homepage .
|
60 |
PHP_EOL . '-->' . PHP_EOL . $args['before_widget'];
|
61 |
|
62 |
/** Title filter */
|
101 |
endif;
|
102 |
|
103 |
// @TODO Integrate this into wp_meta()
|
104 |
+
if( (int) esc_attr( $instance['showcustom'] ) === 1 ) :
|
105 |
echo ( !empty( $instance['customtext'] ) && !empty( $instance['customurl'] ) ?
|
106 |
'<li><a href="' . esc_url( $instance['customurl'] ) . '">' . esc_attr( $instance['customtext'] ) . '</a></li>' :
|
107 |
'<!--' . __( 'Error: "Show Custom Link" is checked, but either the text or URL for that link are not specified. The link was not displayed because it would be broken. Check the settings for your Custom Meta widget.', 'customMetaWidget' ) . '-->' );
|
199 |
$checked = checked( $instance[$slug], 1, false );
|
200 |
$value = 1;
|
201 |
}
|
202 |
+
$label_tag = '<label style="margin:0 3px;" for="' . $id . '">' . $label . '</label>';
|
203 |
?>
|
204 |
|
205 |
<!-- <?php echo $slug; ?> -->
|
252 |
register_widget( 'customMetaWidget' );
|
253 |
} add_action( 'widgets_init', 'customMetaWidget_swap' ); // hook
|
254 |
|
|
|
255 |
/**
|
256 |
* Load TextDomain
|
257 |
*/
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://shinraholdings.com/donate
|
|
5 |
Tags: meta,hide,link,admin,simple,widget,default,wordpress.org,change,rss,remove,login
|
6 |
Requires at least: 2.8
|
7 |
Tested up to: 4.9.4
|
8 |
-
Stable tag: 1.5.
|
9 |
|
10 |
Clone of the standard Meta widget plus options to hide log in/out, admin, feed and WordPress.org/custom links.
|
11 |
|
@@ -47,6 +47,9 @@ Most people, myself included, are understandably reluctant to donate real curren
|
|
47 |
3. Comparison of options between the standard and Custom Meta Widget.
|
48 |
|
49 |
== Changelog ==
|
|
|
|
|
|
|
50 |
= 1.5.0 =
|
51 |
* Some formatting changes to bring closer alignment with the current vanilla WordPress Meta Widget.
|
52 |
* Added ability for links added to the meta widget by other themes/plugins as introduced in 4.4 via `wp_meta()`.
|
@@ -137,6 +140,9 @@ Most people, myself included, are understandably reluctant to donate real curren
|
|
137 |
* There may still be bugs, but I can't find any.
|
138 |
|
139 |
== Upgrade Notice ==
|
|
|
|
|
|
|
140 |
= 1.5.0 =
|
141 |
This update implements new functionality implemented after WordPress 4.4. If you are, amazingly, somehow, still using a version of WordPress older than 4.4, this may cause problems. (But if your install is *that* old, you already have problems :D)
|
142 |
|
5 |
Tags: meta,hide,link,admin,simple,widget,default,wordpress.org,change,rss,remove,login
|
6 |
Requires at least: 2.8
|
7 |
Tested up to: 4.9.4
|
8 |
+
Stable tag: 1.5.1
|
9 |
|
10 |
Clone of the standard Meta widget plus options to hide log in/out, admin, feed and WordPress.org/custom links.
|
11 |
|
47 |
3. Comparison of options between the standard and Custom Meta Widget.
|
48 |
|
49 |
== Changelog ==
|
50 |
+
= 1.5.1 =
|
51 |
+
* Fixed the "show custom link" functionality. My bad.
|
52 |
+
|
53 |
= 1.5.0 =
|
54 |
* Some formatting changes to bring closer alignment with the current vanilla WordPress Meta Widget.
|
55 |
* Added ability for links added to the meta widget by other themes/plugins as introduced in 4.4 via `wp_meta()`.
|
140 |
* There may still be bugs, but I can't find any.
|
141 |
|
142 |
== Upgrade Notice ==
|
143 |
+
= 1.5.1 =
|
144 |
+
Restores the "show custom link" functionality.
|
145 |
+
|
146 |
= 1.5.0 =
|
147 |
This update implements new functionality implemented after WordPress 4.4. If you are, amazingly, somehow, still using a version of WordPress older than 4.4, this may cause problems. (But if your install is *that* old, you already have problems :D)
|
148 |
|