Skip to content

Commit

Permalink
2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Nov 13, 2023
1 parent 83d0993 commit e2645a4
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 75 deletions.
4 changes: 4 additions & 0 deletions assets/images/svg/social-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Modern Changelog

## 2.6.1, 20231113

### Updated
- Twitter/X icon

### Fixed
- Preventing issue with post formats
- Updating TGMPA script to prevent PHP8 error

### File updates
changelog.md
readme.txt
style.css
assets/images/svg/social-icons.svg
includes/frontend/class-menu.php
includes/post-formats/class-post-formats.php
includes/starter-content/class-starter-content.php
library/includes/vendor/tgmpa/class-tgm-plugin-activation.php


## 2.6.0, 20230105

### Updated
Expand Down
6 changes: 3 additions & 3 deletions includes/frontend/class-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 2.0.0
* @version 2.5.0
* @version 2.6.1
*
* Contents:
*
Expand Down Expand Up @@ -421,7 +421,7 @@ public static function get_menu_args_social( $items_wrap = '<ul data-id="%1$s" c
* Social links supported icons
*
* @since 2.0.0
* @version 2.5.0
* @version 2.6.1
*/
public static function social_links_icons() {

Expand Down Expand Up @@ -467,7 +467,7 @@ public static function social_links_icons() {
'tripadvisor.' => 'tripadvisor',
'tumblr.com' => 'tumblr',
'twitch.tv' => 'twitch',
'twitter.com' => 'twitter',
'twitter.com' => 'x',
'vimeo.com' => 'vimeo',
'vine.co' => 'vine',
'vk.com' => 'vk',
Expand Down
9 changes: 8 additions & 1 deletion includes/post-formats/class-post-formats.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ static public function get( $format = null ) {
*
* @since 1.0.0
* @version 3.0.0
* @version 2.6.1
*
* @param int $post_id
* @param string $format
Expand Down Expand Up @@ -285,7 +286,13 @@ static public function format_media( $post_id = null, $format = null ) {

// Requirements check

if ( ! in_array( $format, $supported_formats ) ) {
if (
! in_array( $format, $supported_formats )
|| doing_action( 'save_post' )
) {

delete_post_meta( $post_id, '_' . $meta_name );

return;
}

Expand Down
6 changes: 3 additions & 3 deletions includes/starter-content/class-starter-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @copyright WebMan Design, Oliver Juhas
*
* @since 2.0.0
* @version 2.0.0
* @version 2.6.1
*
* Contents:
*
Expand Down Expand Up @@ -202,7 +202,7 @@ public static function options() {
* Navigational menus
*
* @since 2.0.0
* @version 2.0.0
* @version 2.6.1
*/
public static function nav_menus() {

Expand Down Expand Up @@ -251,7 +251,7 @@ public static function nav_menus() {
),

'link_twitter' => array(
'title' => esc_html_x( 'Twitter', 'Theme starter content', 'modern' ),
'title' => esc_html_x( 'X', 'Theme starter content', 'modern' ),
'url' => 'https://twitter.com/',
),

Expand Down
2 changes: 1 addition & 1 deletion languages/modern.pot
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ msgstr ""

#: includes/starter-content/class-starter-content.php:254
msgctxt "Theme starter content"
msgid "Twitter"
msgid "X"
msgstr ""

#: includes/starter-content/class-starter-content.php:286
Expand Down
Loading

0 comments on commit e2645a4

Please sign in to comment.