WP Accessibility - Version 1.7.5

Version Description

  • Bug fix: register_block_style only exists since WP 5.3; check function exists first.
Download this release

Release Info

Developer joedolson
Plugin Icon 128x128 WP Accessibility
Version 1.7.5
Comparing to
See all releases

Code changes from version 1.7.4 to 1.7.5

readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: title, accessibility, accessible, navigation, wcag, a11y, section508, focu
5
  Requires at least: 3.4.2
6
  Requires PHP: 5.3
7
  Tested up to: 5.6
8
- Stable tag: 1.7.4
9
  Text Domain: wp-accessibility
10
  License: GPLv2 or later
11
 
@@ -74,6 +74,10 @@ The plug-in is intended to help with deficiencies commonly found in themes and t
74
 
75
  [Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
76
 
 
 
 
 
77
  = 1.7.4 =
78
 
79
  * Change: mark ` ` as an invalid alt value.
5
  Requires at least: 3.4.2
6
  Requires PHP: 5.3
7
  Tested up to: 5.6
8
+ Stable tag: 1.7.5
9
  Text Domain: wp-accessibility
10
  License: GPLv2 or later
11
 
74
 
75
  [Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
76
 
77
+ = 1.7.5 =
78
+
79
+ * Bug fix: register_block_style only exists since WP 5.3; check function exists first.
80
+
81
  = 1.7.4 =
82
 
83
  * Change: mark ` ` as an invalid alt value.
wp-accessibility-longdesc.php CHANGED
@@ -170,14 +170,16 @@ function wpa_longdesc_add_attr( $html, $id, $caption, $title, $align, $url, $siz
170
  return $html;
171
  }
172
 
173
- /**
174
- * Core function. Add reference style for long description.
175
- */
176
- register_block_style(
177
- 'core/image',
178
- array(
179
- 'name' => 'longdesc',
180
- 'label' => __( 'Has Long Description', 'wp-accessibility' ),
181
- 'style_handle' => 'longdesc-style',
182
- )
183
- );
 
 
170
  return $html;
171
  }
172
 
173
+ if ( function_exists( 'register_block_style' ) ) {
174
+ /**
175
+ * Core function. Add reference style for long description.
176
+ */
177
+ register_block_style(
178
+ 'core/image',
179
+ array(
180
+ 'name' => 'longdesc',
181
+ 'label' => __( 'Has Long Description', 'wp-accessibility' ),
182
+ 'style_handle' => 'longdesc-style',
183
+ )
184
+ );
185
+ }
wp-accessibility.php CHANGED
@@ -17,7 +17,7 @@
17
  * Domain Path: /lang
18
  * License: GPL-2.0+
19
  * License URI: http://www.gnu.org/license/gpl-2.0.txt
20
- * Version: 1.7.4
21
  */
22
 
23
  /*
@@ -69,7 +69,7 @@ function wpa_admin_menu() {
69
  * Install on activation.
70
  */
71
  function wpa_install() {
72
- $wpa_version = '1.7.4';
73
  if ( 'true' !== get_option( 'wpa_installed' ) ) {
74
  add_option( 'rta_from_nav_menu', 'on' );
75
  add_option( 'rta_from_page_lists', 'on' );
17
  * Domain Path: /lang
18
  * License: GPL-2.0+
19
  * License URI: http://www.gnu.org/license/gpl-2.0.txt
20
+ * Version: 1.7.5
21
  */
22
 
23
  /*
69
  * Install on activation.
70
  */
71
  function wpa_install() {
72
+ $wpa_version = '1.7.5';
73
  if ( 'true' !== get_option( 'wpa_installed' ) ) {
74
  add_option( 'rta_from_nav_menu', 'on' );
75
  add_option( 'rta_from_page_lists', 'on' );