diff --git a/assets/images/svg/social-icons.svg b/assets/images/svg/social-icons.svg
index 920f990..89ed48a 100644
--- a/assets/images/svg/social-icons.svg
+++ b/assets/images/svg/social-icons.svg
@@ -67,6 +67,10 @@
+
+
+
+
@@ -172,6 +176,10 @@
+
+
+
+
diff --git a/changelog.md b/changelog.md
index 6f6acd4..246ee0a 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,30 @@
# Reykjavik Changelog
+## 1.5.3
+
+* **Add**: Adding WhatsApp and Google social icon
+* **Update**: Implementing WordPress 5.2 code updates
+* **Fix**: Preventing PHP error after theme activation
+
+### Files changed:
+
+ changelog.md
+ header.php
+ readme.txt
+ style.css
+ assets/images/svg/social-icons.svg
+ includes/frontend/class-header.php
+ includes/frontend/class-menu.php
+ includes/welcome/welcome.php
+ templates/parts/admin/notice-welcome.php
+ templates/parts/admin/welcome-demo.php
+ templates/parts/admin/welcome-footer.php
+ templates/parts/admin/welcome-header.php
+ templates/parts/admin/welcome-promo.php
+ templates/parts/admin/welcome-quickstart.php
+ templates/parts/admin/welcome-wordpress.php
+
+
## 1.5.2
* **Update**: Custom typography info in theme options
diff --git a/header.php b/header.php
index bea9671..8d7d32d 100644
--- a/header.php
+++ b/header.php
@@ -9,7 +9,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
- * @version 1.5.2
+ * @version 1.5.3
*/
@@ -40,6 +40,12 @@
'facebook',
'flickr.com' => 'flickr',
'foursquare.com' => 'foursquare',
- 'plus.google.com' => 'google-plus',
+ 'plus.google.' => 'google-plus',
+ 'google.' => 'google',
'github.com' => 'github',
'instagram.com' => 'instagram',
'linkedin.com' => 'linkedin',
@@ -486,6 +487,7 @@ public static function social_links_icons() {
'vimeo.com' => 'vimeo',
'vine.co' => 'vine',
'vk.com' => 'vk',
+ 'wa.me' => 'whatsapp',
'wordpress.org' => 'wordpress',
'wordpress.com' => 'wordpress',
'xing.com' => 'xing',
diff --git a/includes/welcome/welcome.php b/includes/welcome/welcome.php
index 5439850..dfa0839 100644
--- a/includes/welcome/welcome.php
+++ b/includes/welcome/welcome.php
@@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
- * @version 1.3.0
+ * @version 1.5.3
*
* Contents:
*
@@ -24,7 +24,8 @@
if (
! is_admin()
- || ! Reykjavik_Library_Customize::get_theme_mod( 'admin_welcome_page' )
+ // Reykjavik_Library_Customize::get_theme_mod() does not work here yet.
+ || ! get_theme_mod( 'admin_welcome_page', true )
) {
return;
}
diff --git a/readme.txt b/readme.txt
index aaf1b08..05dfc60 100644
--- a/readme.txt
+++ b/readme.txt
@@ -2,8 +2,8 @@
Contributors: webmandesign
Tags: one-column, two-columns, right-sidebar, grid-layout, flexible-header, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-image-header, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce, portfolio
Requires at least: 4.7.0
-Tested up to: 5.1.1
-Stable tag: 1.5.2
+Tested up to: 5.2
+Stable tag: 1.5.3
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -37,8 +37,8 @@ Please see `changelog.md` file.
== Upgrade Notice ==
-= 1.5.2 =
-Fixing "Continue reading" broken HTML for posts with more tag, updating themer plugins compatibility, improving accessibility skip links, updating info and code.
+= 1.5.3 =
+Implementing WordPress 5.2 code updates, adding WhatsApp and Google social icon, preventing PHP error after theme activation.
== Resources ==
diff --git a/style.css b/style.css
index 54cb51b..012bd12 100644
--- a/style.css
+++ b/style.css
@@ -3,7 +3,7 @@ Theme Name: Reykjavik
Theme URI: https://www.webmandesign.eu/portfolio/reykjavik-wordpress-theme/
Author: WebMan Design
Author URI: https://www.webmandesign.eu/
-Version: 1.5.2
+Version: 1.5.3
Text Domain: reykjavik
Domain Path: /languages
License: GNU General Public License v3
diff --git a/templates/parts/admin/notice-welcome.php b/templates/parts/admin/notice-welcome.php
index 1dd38b0..3a1a682 100644
--- a/templates/parts/admin/notice-welcome.php
+++ b/templates/parts/admin/notice-welcome.php
@@ -6,13 +6,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.5.2
- * @version 1.5.2
+ * @version 1.5.3
*/
+// Requirements check
+
+ if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
+ return;
+ }
+
+
// Variables
$theme_name = wp_get_theme( 'reykjavik' )->display( 'Name' );
diff --git a/templates/parts/admin/welcome-demo.php b/templates/parts/admin/welcome-demo.php
index 58d65dd..b4b2ee0 100644
--- a/templates/parts/admin/welcome-demo.php
+++ b/templates/parts/admin/welcome-demo.php
@@ -8,13 +8,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
- * @version 1.0.0
+ * @version 1.5.3
*/
+// Requirements check
+
+ if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
+ return;
+ }
+
+
?>
diff --git a/templates/parts/admin/welcome-footer.php b/templates/parts/admin/welcome-footer.php
index 6998537..8212ec1 100644
--- a/templates/parts/admin/welcome-footer.php
+++ b/templates/parts/admin/welcome-footer.php
@@ -8,13 +8,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
- * @version 1.5.2
+ * @version 1.5.3
*/
+// Requirements check
+
+ if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
+ return;
+ }
+
+
?>
diff --git a/templates/parts/admin/welcome-header.php b/templates/parts/admin/welcome-header.php
index b301c28..27cc2b4 100644
--- a/templates/parts/admin/welcome-header.php
+++ b/templates/parts/admin/welcome-header.php
@@ -8,13 +8,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
- * @version 1.5.2
+ * @version 1.5.3
*/
+// Requirements check
+
+ if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
+ return;
+ }
+
+
?>
diff --git a/templates/parts/admin/welcome-promo.php b/templates/parts/admin/welcome-promo.php
index b9e97fb..ab9e972 100644
--- a/templates/parts/admin/welcome-promo.php
+++ b/templates/parts/admin/welcome-promo.php
@@ -8,20 +8,27 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
- * @version 1.5.2
+ * @version 1.5.3
*/
+// Requirements check
+
+ if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
+ return;
+ }
+
+
?>
-
+
-
+
@@ -30,7 +37,7 @@
(
)
→
-
+
@@ -41,7 +48,7 @@
-
+
@@ -50,7 +57,7 @@
-
+
diff --git a/templates/parts/admin/welcome-quickstart.php b/templates/parts/admin/welcome-quickstart.php
index d36f6bb..aab37fb 100644
--- a/templates/parts/admin/welcome-quickstart.php
+++ b/templates/parts/admin/welcome-quickstart.php
@@ -8,20 +8,27 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
- * @version 1.4.0
+ * @version 1.5.3
*/
+// Requirements check
+
+ if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
+ return;
+ }
+
+
?>
-
+
-
+
1
@@ -41,7 +48,7 @@
-
+
2
diff --git a/templates/parts/admin/welcome-wordpress.php b/templates/parts/admin/welcome-wordpress.php
index 23ce622..8851f4c 100644
--- a/templates/parts/admin/welcome-wordpress.php
+++ b/templates/parts/admin/welcome-wordpress.php
@@ -8,13 +8,20 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 1.0.0
- * @version 1.0.0
+ * @version 1.5.3
*/
+// Requirements check
+
+ if ( ! class_exists( 'Reykjavik_Welcome' ) ) {
+ return;
+ }
+
+
?>