Skip to content

Commit a1e894b

Browse files
committed
V2.2
Minor functions.php improvements + Removed old GitHub dependency
1 parent fbe52bd commit a1e894b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+9
-12982
lines changed

functions.php

+8-10
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ function load_modules() {
2020
if (get_option('pasw_eulaw') != 0) { require ( get_template_directory() . '/include/moduli/pasw2015-eulaw.php' ); }
2121
if (get_option('pasw_post_tpl') != 0) { require ( get_template_directory() . '/include/moduli/pasw2015-post-templates.php' ); }
2222
}
23-
add_action('admin_init', "reg_set_p");
24-
25-
function reg_set_p() {
23+
add_action('admin_init', function() {
24+
2625
require (get_template_directory() . '/include/moduli-pasw2015.php' );
2726

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

76-
}
75+
} );
7776

78-
add_action('admin_notices', 'pasw_admin_messages');
79-
function pasw_admin_messages() {;
77+
add_action('admin_notices', function() {
8078

81-
if ( isset($_GET['pasw2015alert'])) {
82-
update_option( 'pasw2015_versionalert', '0' );
83-
}
79+
if ( isset($_GET['pasw2015alert'])) {
80+
update_option( 'pasw2015_versionalert', '0' );
81+
}
8482

8583
if ( get_option('pasw2015_versionalert') == '1.6.6') {
8684
echo '
@@ -93,7 +91,7 @@ function pasw_admin_messages() {;
9391
</p>
9492
</div>';
9593
}
96-
}
94+
} );
9795

9896
add_action( 'after_setup_theme', 'pasw2015_setup' );
9997
add_action('admin_notices', 'pasw_alerts');

github/CHANGES.md

-428
This file was deleted.

github/LICENSE

-339
This file was deleted.

github/README.md

-321
This file was deleted.

github/assets/GitHub_Updater_logo.png

-10.9 KB
Binary file not shown.
-5.11 KB
Binary file not shown.

github/assets/screenshot-1.png

-141 KB
Binary file not shown.

github/assets/screenshot-2.png

-72.4 KB
Binary file not shown.

github/github-updater.php

-64
This file was deleted.

github/js/ghu_install.js

-32
This file was deleted.

github/languages/description-i18n-keys.txt

-29
This file was deleted.

github/languages/github-updater-ar.mo

-5.48 KB
Binary file not shown.

0 commit comments

Comments
 (0)