Skip to content

Commit

Permalink
Adjust naming to be clearer and add some more descriptive text around…
Browse files Browse the repository at this point in the history
… the use
  • Loading branch information
pkevan committed Dec 11, 2024
1 parent 2f10f30 commit 6a87370
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public_html/wp-content/plugins/camptix/camptix.php
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@ function format_name_string( $name_string, $given_name, $surname ) {
function admin_menu() {
add_submenu_page( 'edit.php?post_type=tix_ticket', __( 'Tools', 'wordcamporg' ), __( 'Tools', 'wordcamporg' ), $this->caps['manage_tools'], 'camptix_tools', array( $this, 'menu_tools' ) );
add_submenu_page( 'edit.php?post_type=tix_ticket', __( 'Setup', 'wordcamporg' ), __( 'Setup', 'wordcamporg' ), $this->caps['manage_options'], 'camptix_options', array( $this, 'menu_setup' ) );
add_submenu_page( 'edit.php?post_type=tix_ticket', __( 'Badges', 'wordcamporg' ), __( 'Badges', 'wordcamporg' ), $this->caps['manage_options'], 'camptix_badges', 'Camptix\Badges\menu_badges' );
add_submenu_page( 'edit.php?post_type=tix_ticket', __( 'Profile Badges', 'wordcamporg' ), __( 'Profile Badges', 'wordcamporg' ), $this->caps['manage_options'], 'camptix_badges', 'Camptix\Profile_Badges\menu_badges' );
remove_submenu_page( 'edit.php?post_type=tix_ticket', 'post-new.php?post_type=tix_ticket' );
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Camptix\Badges;
namespace Camptix\Profile_Badges;

use WordPressdotorg\Profiles;

Expand Down Expand Up @@ -55,7 +55,10 @@ function menu_badges() {

// If adding more badges, make sure to add them to the validation check in `process_badges`.
?>
<div class="wrap"><h1><?php esc_html_e( 'WordCamp Badge Management', 'wordcamporg' ); ?></h1></div>
<div class="wrap">
<h1><?php esc_html_e( 'Profile Badge Management', 'wordcamporg' ); ?></h1>
<p><?php esc_html_e( 'This tool allows a limited number of badges to be managed on wordpress.org profiles', 'wordcamporg' ); ?></p>
</div>
<form method="post" action="<?php echo esc_url( add_query_arg( 'badge-submit', '1' ) ); ?>">
<div>
<select name="badge_name">
Expand Down

0 comments on commit 6a87370

Please sign in to comment.