Skip to content

Commit

Permalink
V2.2
Browse files Browse the repository at this point in the history
Minor functions.php improvements + Removed old GitHub dependency
  • Loading branch information
milesimarco committed Dec 8, 2020
1 parent fbe52bd commit a1e894b
Show file tree
Hide file tree
Showing 60 changed files with 9 additions and 12,982 deletions.
18 changes: 8 additions & 10 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ function load_modules() {
if (get_option('pasw_eulaw') != 0) { require ( get_template_directory() . '/include/moduli/pasw2015-eulaw.php' ); }
if (get_option('pasw_post_tpl') != 0) { require ( get_template_directory() . '/include/moduli/pasw2015-post-templates.php' ); }
}
add_action('admin_init', "reg_set_p");

function reg_set_p() {
add_action('admin_init', function() {

require (get_template_directory() . '/include/moduli-pasw2015.php' );

register_setting( 'pasw2015_options', 'pasw_social');
Expand Down Expand Up @@ -73,14 +72,13 @@ function reg_set_p() {
wp_safe_redirect(admin_url('/admin.php?page=pasw2015', 'http'), 301);
}

}
} );

add_action('admin_notices', 'pasw_admin_messages');
function pasw_admin_messages() {;
add_action('admin_notices', function() {

if ( isset($_GET['pasw2015alert'])) {
update_option( 'pasw2015_versionalert', '0' );
}
if ( isset($_GET['pasw2015alert'])) {
update_option( 'pasw2015_versionalert', '0' );
}

if ( get_option('pasw2015_versionalert') == '1.6.6') {
echo '
Expand All @@ -93,7 +91,7 @@ function pasw_admin_messages() {;
</p>
</div>';
}
}
} );

add_action( 'after_setup_theme', 'pasw2015_setup' );
add_action('admin_notices', 'pasw_alerts');
Expand Down
428 changes: 0 additions & 428 deletions github/CHANGES.md

This file was deleted.

339 changes: 0 additions & 339 deletions github/LICENSE

This file was deleted.

321 changes: 0 additions & 321 deletions github/README.md

This file was deleted.

Binary file removed github/assets/GitHub_Updater_logo.png
Binary file not shown.
Binary file removed github/assets/GitHub_Updater_logo_small.png
Binary file not shown.
Binary file removed github/assets/screenshot-1.png
Binary file not shown.
Binary file removed github/assets/screenshot-2.png
Binary file not shown.
64 changes: 0 additions & 64 deletions github/github-updater.php

This file was deleted.

32 changes: 0 additions & 32 deletions github/js/ghu_install.js

This file was deleted.

29 changes: 0 additions & 29 deletions github/languages/description-i18n-keys.txt

This file was deleted.

Binary file removed github/languages/github-updater-ar.mo
Binary file not shown.
Loading

0 comments on commit a1e894b

Please sign in to comment.