Skip to content

Commit fa83bef

Browse files
authored
Merge pull request #191 from brainstormforce/aiosrs_warning_fix
EPS-1344: AIOSRS Undefined Array Key Warnings
2 parents f971c6d + 85ba50c commit fa83bef

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ No, the plugin provides an easy-to-use interface where you can add schema markup
8585

8686
### 1.7.5 ###
8787
- Improvement: Compatibility with PHP version 8.3.
88+
- Fixed: Resolved undefined array key warnings in plugin.
8889

8990
### 1.7.4 ###
9091
- Fixed: WooCommerce product editor compatibility - Added exclusions for WooCommerce post types.

admin/index.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function rich_snippet_dashboard() {
182182
</tr>
183183
<tr>
184184
<td align="right"><strong><label>' . esc_html__( 'Ticket Promotion :', 'rich-snippets' ) . '</label></strong></td>
185-
<td><input class="bsf_text_medium" type="text" name="events_price" value="' . esc_attr( stripslashes( $args_event['events_price'] ) ) . '"/></td>
185+
<td><input class="bsf_text_medium" type="text" name="events_price" value="' . esc_attr( stripslashes( isset( $args_event['events_price'] ) ? $args_event['events_price'] : '' ) ) . '"/></td>
186186
</tr>
187187
<tr><td colspan="2"></td></tr>
188188
<tr>
@@ -370,7 +370,7 @@ function rich_snippet_dashboard() {
370370
</tr>
371371
<tr>
372372
<td align="right"><strong><label>' . esc_html__( 'User Rating :', 'rich-snippets' ) . '</label></strong></td>
373-
<td><input class="bsf_text_medium" type="text" name="software_agr" value="' . esc_attr( stripslashes( $args_soft['software_agr'] ) ) . '"/></td>
373+
<td><input class="bsf_text_medium" type="text" name="software_agr" value="' . esc_attr( stripslashes( isset( $args_soft['software_agr'] ) ? $args_soft['software_agr'] : '' ) ) . '"/></td>
374374
</tr>
375375
<tr>
376376
<td align="right"><strong><label>' . esc_html__( 'Software Price :', 'rich-snippets' ) . '</label></strong></td>
@@ -474,11 +474,11 @@ function rich_snippet_dashboard() {
474474
</tr>
475475
<tr>
476476
<td align="right"><strong><label>' . esc_html__( 'Publisher :', 'rich-snippets' ) . '</label></strong></td>
477-
<td><input class="bsf_text_medium" type="text" name="article_publisher" value="' . esc_attr( stripslashes( $args_article['article_publisher'] ) ) . '"/></td>
477+
<td><input class="bsf_text_medium" type="text" name="article_publisher" value="' . esc_attr( stripslashes( isset( $args_article['article_publisher'] ) ? $args_article['article_publisher'] : '' ) ) . '"/></td>
478478
</tr>
479479
<tr>
480480
<td align="right"><strong><label>' . esc_html__( 'Publisher Logo :', 'rich-snippets' ) . '</label></strong></td>
481-
<td><input class="bsf_text_medium" type="text" name="article_publisher_logo" value="' . esc_attr( stripslashes( $args_article['article_publisher_logo'] ) ) . '"/></td>
481+
<td><input class="bsf_text_medium" type="text" name="article_publisher_logo" value="' . esc_attr( stripslashes( isset( $args_article['article_publisher_logo'] ) ? $args_article['article_publisher_logo'] : '' ) ) . '"/></td>
482482
</tr>
483483
<tr><td colspan="2"></td></tr>
484484
<tr>

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ No, the plugin provides an easy-to-use interface where you can add schema markup
8585

8686
### 1.7.5 ###
8787
- Improvement: Compatibility with PHP version 8.3.
88+
- Fixed: Resolved undefined array key warnings in plugin.
8889

8990
### 1.7.4 ###
9091
- Fixed: WooCommerce product editor compatibility - Added exclusions for WooCommerce post types.

0 commit comments

Comments
 (0)