Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 13766ec

Browse files
committed
2 parents ce3d6a0 + 344e373 commit 13766ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

semantic-linkbacks.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Requires PHP: 5.4
1313
*/
1414

15-
add_action( 'plugins_loaded', array( 'Semantic_Linkbacks_Plugin', 'init' ) );
15+
add_action( 'plugins_loaded', array( 'Semantic_Linkbacks_Plugin', 'init' ), 11 );
1616

1717
// initialize admin settings
1818
add_action( 'admin_init', array( 'Semantic_Linkbacks_Plugin', 'admin_init' ) );
@@ -61,7 +61,7 @@ public static function init() {
6161

6262
public static function admin_init() {
6363
self::privacy_declaration();
64-
$page = class_exists( 'Webmention_Plugin' ) ? 'webmention' : 'discussion';
64+
$page = function_exists( 'webmention_init' ) ? 'webmention' : 'discussion';
6565
add_settings_section(
6666
'semantic-linkbacks',
6767
__( 'Semantic Linkbacks Settings', 'semantic-linkbacks' ),
@@ -93,13 +93,13 @@ public static function facepile_checkboxes() {
9393
$facepile = get_option( 'semantic_linkbacks_facepiles' );
9494
echo '<div id="facepile-all">';
9595
foreach ( $strings as $key => $value ) {
96-
printf( '<input name="semantic_linkbacks_facepiles[]" type="checkbox" value="%1$s" %2$s />%3$s<br />', $key, checked( in_array( $key, $facepile, true ), true, false ), $value );
96+
printf( '<input name="semantic_linkbacks_facepiles[]" type="checkbox" value="%1$s" id="%1$s" %2$s /><label for="%1$s">%3$s</label><br />', $key, checked( in_array( $key, $facepile, true ), true, false ), $value );
9797
}
9898
echo '</div>';
9999
}
100100

101101
public static function register_settings() {
102-
$option_group = class_exists( 'Webmention_Plugin' ) ? 'webmention' : 'discussion';
102+
$option_group = function_exists( 'webmention_init' ) ? 'webmention' : 'discussion';
103103
register_setting(
104104
$option_group,
105105
'semantic_linkbacks_facepiles',

0 commit comments

Comments
 (0)