Skip to content

Commit

Permalink
v 2.23.2
Browse files Browse the repository at this point in the history
- Update dependencies.
- Fix display author name.
  • Loading branch information
Darklg committed Apr 17, 2024
1 parent 1ea9623 commit ac94d82
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: PHP Lint
uses: michaelw90/[email protected]
1 change: 1 addition & 0 deletions inc/WPUBaseUpdate/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deny from all
4 changes: 3 additions & 1 deletion inc/WPUBaseUpdate/WPUBaseUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*
Class Name: WPU Base Update
Description: A class to handle plugin update from github
Version: 0.4.4
Version: 0.4.5
Class URI: https://github.com/WordPressUtilities/wpubaseplugin
Author: Darklg
Author URI: https://darklg.me/
Expand All @@ -13,6 +13,8 @@
Thanks: https://gist.github.com/danielbachhuber/7684646
*/

defined('ABSPATH') || die;

class WPUBaseUpdate {

public $current_version;
Expand Down
1 change: 1 addition & 0 deletions inc/WPUBaseUpdate/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php /* Silence */
10 changes: 6 additions & 4 deletions wpuseo.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
<?php
defined('ABSPATH') || die;

/*
Plugin Name: WPU SEO
Plugin URI: https://github.com/WordPressUtilities/wpuseo
Update URI: https://github.com/WordPressUtilities/wpuseo
Description: Enhance SEO : Clean title, Nice metas, GDPR friendly Analytics.
Version: 2.23.1
Version: 2.23.2
Author: Darklg
Author URI: https://darklg.me/
Text Domain: wpuseo
Domain Path: /lang
Requires at least: 6.2
Requires PHP: 8.0
Network: Optional
License: MIT License
License URI: https://opensource.org/licenses/MIT
Contributors: @boiteaweb, @CecileBr
*/

class WPUSEO {

public $plugin_version = '2.23.1';
public $plugin_version = '2.23.2';
private $active_wp_title = true;
private $active_metas = true;
private $fake_txt_files = array('ads', 'robots');
Expand Down Expand Up @@ -191,7 +193,7 @@ public function init() {
'summary_large_image' => 'summary_large_image'
));

require_once dirname(__FILE__) . '/inc/WPUBaseUpdate/WPUBaseUpdate.php';
require_once __DIR__ . '/inc/WPUBaseUpdate/WPUBaseUpdate.php';
$this->settings_update = new \wpuseo\WPUBaseUpdate(
'WordPressUtilities',
'wpuseo',
Expand Down Expand Up @@ -1034,7 +1036,7 @@ public function get_displayed_title($prefix = true) {
global $author;
$author_name = get_query_var('author_name');
$curauth = !empty($author_name) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
$displayed_title = $this->__('Author:') . ' ' . $curauth->nickname;
$displayed_title = $this->__('Author:') . ' ' . esc_html($curauth->display_name);
}
if (is_year()) {
$displayed_title = ($prefix ? $this->__('Year:') . ' ' : '') . get_the_time($this->__('Y'));
Expand Down

0 comments on commit ac94d82

Please sign in to comment.