Skip to content

Commit

Permalink
Merge pull request #1396 from visual-framework/news-and-awards
Browse files Browse the repository at this point in the history
misc updates
  • Loading branch information
kasprzyk-sz authored Feb 20, 2025
2 parents 75e339f + 538487e commit ab087fe
Show file tree
Hide file tree
Showing 14 changed files with 1,035 additions and 105 deletions.
30 changes: 15 additions & 15 deletions wp-content/plugins/embl-taxonomy/includes/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,21 +768,21 @@ public function action_admin_notices() {
$notice = false;

// Sync required (all pages)
if (($now - $modified) >= EMBL_Taxonomy::MAX_AGE) {
printf('<div class="%1$s"><p><span>%2$s</span> %3$s</p></div>',
esc_attr('notice notice-warning'),
esc_html(sprintf(
__('The %1$s may be outdated and should be synced', 'embl'),
$this->labels['name']
)),
sprintf(
'<button id="embl-taxonomy-sync" type="button" data-href="%1$s" class="button button-small">%2$s</button>',
esc_attr('edit-tags.php?taxonomy=' . EMBL_Taxonomy::TAXONOMY_NAME . '&sync=true'),
esc_html(__('Sync now', 'embl'))
)
);
$notice = true;
}
// if (($now - $modified) >= EMBL_Taxonomy::MAX_AGE) {
// printf('<div class="%1$s"><p><span>%2$s</span> %3$s</p></div>',
// esc_attr('notice notice-warning'),
// esc_html(sprintf(
// __('The %1$s may be outdated and should be synced', 'embl'),
// $this->labels['name']
// )),
// sprintf(
// '<button id="embl-taxonomy-sync" type="button" data-href="%1$s" class="button button-small">%2$s</button>',
// esc_attr('edit-tags.php?taxonomy=' . EMBL_Taxonomy::TAXONOMY_NAME . '&sync=true'),
// esc_html(__('Sync now', 'embl'))
// )
// );
// $notice = true;
// }

// Sync happened (all pages)
// if (($now - $modified) <= 10) {
Expand Down
Loading

0 comments on commit ab087fe

Please sign in to comment.