SEOPress - Version 5.0.3

Version Description

  • FIX Fatal error: Uncaught Error: Call to undefined function seopress_render_dyn_variables() if "Hide help icons and SEOPress documentation links" (White Label) is enabled
  • FIX Some CSS
Download this release

Release Info

Developer rainbowgeek
Plugin Icon 128x128 SEOPress
Version 5.0.3
Comparing to
See all releases

Code changes from version 5.0.2 to 5.0.3

inc/admin/admin-dyn-variables-helper.php CHANGED
@@ -63,14 +63,7 @@ function seopress_get_dyn_variables()
63
  */
64
  function seopress_render_dyn_variables($classes)
65
  {
66
- //Classic Editor compatibility
67
- if (function_exists('get_current_screen') && true === get_current_screen()->is_block_editor()) {
68
- $btn_classes_secondary = 'components-button is-secondary';
69
- } else {
70
- $btn_classes_secondary = 'button button-secondary';
71
- }
72
-
73
- $html = sprintf('<button type="button" class="'.$btn_classes_secondary.' seopress-tag-single-all seopress-tag-dropdown %s"><span class="dashicons dashicons-arrow-down-alt2"></span></button>', $classes);
74
  if (! empty(seopress_get_dyn_variables())) {
75
  $html .= '<div class="sp-wrap-tag-variables-list"><ul class="sp-tag-variables-list">';
76
  foreach (seopress_get_dyn_variables() as $key => $value) {
63
  */
64
  function seopress_render_dyn_variables($classes)
65
  {
66
+ $html = sprintf('<button type="button" class="btn btnSecondary seopress-tag-single-all seopress-tag-dropdown %s"><span class="dashicons dashicons-arrow-down-alt2"></span></button>', $classes);
 
 
 
 
 
 
 
67
  if (! empty(seopress_get_dyn_variables())) {
68
  $html .= '<div class="sp-wrap-tag-variables-list"><ul class="sp-tag-variables-list">';
69
  foreach (seopress_get_dyn_variables() as $key => $value) {
inc/admin/admin.php CHANGED
@@ -16,6 +16,8 @@ class seopress_options
16
  */
17
  public function __construct()
18
  {
 
 
19
  add_action('admin_menu', [$this, 'add_plugin_page'], 10);
20
  add_action('admin_init', [$this, 'page_init']);
21
  add_action('admin_init', [$this, 'seopress_feature_save'], 30);
16
  */
17
  public function __construct()
18
  {
19
+ require_once dirname(__FILE__) . '/admin-dyn-variables-helper.php'; //Dynamic variables
20
+
21
  add_action('admin_menu', [$this, 'add_plugin_page'], 10);
22
  add_action('admin_init', [$this, 'page_init']);
23
  add_action('admin_init', [$this, 'seopress_feature_save'], 30);
inc/admin/help-tabs/Titles.php CHANGED
@@ -7,8 +7,6 @@ function seopress_titles_help_tab() {
7
 
8
  $screen = get_current_screen();
9
 
10
- require_once dirname(dirname(__FILE__)) . '/admin-dyn-variables-helper.php'; //Dynamic variables
11
-
12
  $dyn_var = seopress_get_dyn_variables();
13
 
14
  $seopress_titles_help_tab_content = '<ul>';
7
 
8
  $screen = get_current_screen();
9
 
 
 
10
  $dyn_var = seopress_get_dyn_variables();
11
 
12
  $seopress_titles_help_tab_content = '<ul>';
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge grap
6
  Requires at least: 4.7+
7
  Tested up to: 5.8
8
  Requires PHP: 5.6
9
- Stable tag: 5.0.2
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -331,6 +331,9 @@ You're theme is probably using a deprecated function to handle the title. <a hre
331
  9. Schemas metabox
332
 
333
  == Changelog ==
 
 
 
334
  = 5.0.2 =
335
  * NEW Allow user to drag and drop the beacon
336
  * INFO Allow users with edit_posts capability to use the universal SEO metabox in frontend
6
  Requires at least: 4.7+
7
  Tested up to: 5.8
8
  Requires PHP: 5.6
9
+ Stable tag: 5.0.3
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
331
  9. Schemas metabox
332
 
333
  == Changelog ==
334
+ = 5.0.3 =
335
+ * FIX Fatal error: Uncaught Error: Call to undefined function seopress_render_dyn_variables() if "Hide help icons and SEOPress documentation links" (White Label) is enabled
336
+ * FIX Some CSS
337
  = 5.0.2 =
338
  * NEW Allow user to drag and drop the beacon
339
  * INFO Allow users with edit_posts capability to use the universal SEO metabox in frontend
seopress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
  Author: SEOPress
7
- Version: 5.0.2
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
10
  Text Domain: wp-seopress
@@ -55,7 +55,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
55
  ///////////////////////////////////////////////////////////////////////////////////////////////////
56
  //Define
57
  ///////////////////////////////////////////////////////////////////////////////////////////////////
58
- define('SEOPRESS_VERSION', '5.0.2');
59
  define('SEOPRESS_AUTHOR', 'Benjamin Denis');
60
  define('SEOPRESS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
61
  define('SEOPRESS_PLUGIN_DIR_URL', plugin_dir_url(__FILE__));
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
  Author: SEOPress
7
+ Version: 5.0.3
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
10
  Text Domain: wp-seopress
55
  ///////////////////////////////////////////////////////////////////////////////////////////////////
56
  //Define
57
  ///////////////////////////////////////////////////////////////////////////////////////////////////
58
+ define('SEOPRESS_VERSION', '5.0.3');
59
  define('SEOPRESS_AUTHOR', 'Benjamin Denis');
60
  define('SEOPRESS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
61
  define('SEOPRESS_PLUGIN_DIR_URL', plugin_dir_url(__FILE__));