| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for display error wrong permalink structure. |
| 4 |
* |
| 5 |
* @since 3.0.0 |
| 6 |
* @version 1.0.1 |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Exit if accessed directly |
| 11 |
} |
| 12 |
|
| 13 |
if ( ! isset( $data ) || ! isset( $data['check'] ) ) { |
| 14 |
return; |
| 15 |
} |
| 16 |
|
| 17 |
if ( ! $data['check'] ) { |
| 18 |
return; |
| 19 |
} |
| 20 |
?> |
| 21 |
|
| 22 |
<div class="notice notice-warning"> |
| 23 |
<p> |
| 24 |
<?php |
| 25 |
echo sprintf( |
| 26 |
'LearnPress requires permalink option <strong>Post name</strong> is enabled. Please enable it <a href="%s">here</a> to ensure that all functions work properly.', |
| 27 |
admin_url( 'options-permalink.php' ) |
| 28 |
) |
| 29 |
?> |
| 30 |
</p> |
| 31 |
</div> |
| 32 |
|