';
echo "\n";
}
@@ -505,7 +505,7 @@ public static function display() {
__( 'Names that begin with a project, organization, or trademark are only accepted if submitted by the verified owner. Ownership can be confirmed through the email domain in your user profile - update it before submitting.', 'wporg-plugins' )
),
esc_url( 'https://profiles.wordpress.org/profile/edit' )
- ); ?>
+ ); ?>
For example, use an official Acme email domain (e.g., “john@acme.example”) for a plugin named “Acme AI Writer”.', 'wporg-plugins' ) ); ?>
@@ -562,10 +562,10 @@ public static function display() {
diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php
index 609e2555ca..623064b670 100644
--- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php
+++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-categorization.php
@@ -62,10 +62,10 @@ public function widget( $args, $instance ) {
// and the current user can update the categorization options so that the update can be
// easily reflected in the widget on the same page. (CSS will prevent a link with an empty
// URL from being shown.)
- if ( $url || ( get_query_var( 'plugin_advanced' ) && current_user_can( 'plugin_admin_edit', $post ) ) ) {
- printf( '%2$s', esc_url( $url ), esc_html( $link_text ) );
- }
- ?>
+ if ( $url || ( get_query_var( 'plugin_advanced' ) && current_user_can( 'plugin_admin_edit', $post ) ) ) {
+ printf( '%2$s', esc_url( $url ), esc_html( $link_text ) );
+ }
+ ?>
+ ?>
diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
index fc293e91df..69ee8c22f5 100644
--- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
+++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
@@ -662,7 +662,7 @@ public function get_view_link( $url, $view ) {
}
$url = home_url( user_trailingslashit( $url ) );
- // Unpretty permalinks.
+ // Unpretty permalinks.
} else {
$url = add_query_arg( array(
bbp_get_view_rewrite_id() => $view,
diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php
index d3297e6cd5..4c78986906 100644
--- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php
+++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-dropin.php
@@ -278,7 +278,7 @@ function bbp_update_topic( $topic_id = 0, $forum_id = 0, $anonymous_data = false
if ( true === $subscribed && false === $subscheck ) {
bbp_remove_user_subscription( $author_id, $topic_id );
- // Subscribing
+ // Subscribing
} elseif ( false === $subscribed && true === $subscheck ) {
bbp_add_user_subscription( $author_id, $topic_id );
}
@@ -304,8 +304,8 @@ function bbp_update_topic( $topic_id = 0, $forum_id = 0, $anonymous_data = false
bbp_update_topic_reply_count_hidden ( $topic_id, 0 );
bbp_update_topic_voice_count ( $topic_id );
- // Walk up ancestors and do the dirty work
- // bbp_update_topic_walker( $topic_id, $last_active, $forum_id, 0, false );
+ // Walk up ancestors and do the dirty work
+ // bbp_update_topic_walker( $topic_id, $last_active, $forum_id, 0, false );
}
}
@@ -402,7 +402,7 @@ function bbp_update_reply( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymo
if ( true === $subscribed && false === $subscheck ) {
bbp_remove_user_subscription( $author_id, $topic_id );
- // Subscribing
+ // Subscribing
} elseif ( false === $subscribed && true === $subscheck ) {
bbp_add_user_subscription( $author_id, $topic_id );
}
diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
index faf14084b2..29867ba4c9 100644
--- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
+++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
@@ -536,7 +536,7 @@ public function should_noindex_robots( $robots ) {
if ( bbpress()->displayed_user && bbpress()->displayed_user->has_cap( bbp_get_blocked_role() ) ) {
$robots = true;
- // Users with no Topics/Replies/Reviews are not indexed.
+ // Users with no Topics/Replies/Reviews are not indexed.
} elseif (
! wporg_support_get_user_topics_count() &&
! bbp_get_user_reply_count_raw() &&
@@ -544,7 +544,7 @@ public function should_noindex_robots( $robots ) {
) {
$robots = true;
- // Noindex all of the single user subpages.
+ // Noindex all of the single user subpages.
} elseif ( ! bbp_is_single_user_profile() ) {
$robots = true;
}
diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
index c72f4fa89b..a0b2ea7ff4 100644
--- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
+++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
@@ -384,11 +384,11 @@ public function archive_handler( $action = '' ) {
if ( ! $post ) {
bbp_add_error( 'wporg_bbp_archive_post_id', __( 'Error: No post was found! Which post are you archiving?', 'wporg-forums' ) );
- // Check for current user.
+ // Check for current user.
} elseif ( empty( $user_id ) ) {
bbp_add_error( 'wporg_bbp_archive_logged_in', __( 'Error: You must be logged in to do this!', 'wporg-forums' ) );
- // Check nonce.
+ // Check nonce.
} elseif ( ! bbp_verify_nonce_request( 'toggle-post-archive_' . $user_id . '_' . $post->ID ) ) {
bbp_add_error( 'wporg_bbp_archive_nonce', __( 'Error: Are you sure you wanted to do that?', 'wporg-forums' ) );
@@ -811,7 +811,7 @@ public function handle_topic_actions_request( $action = '' ) {
if ( ( false !== $retval['status'] ) && ! is_wp_error( $retval['status'] ) ) {
bbp_redirect( $retval['redirect_to'] );
- // Handle errors
+ // Handle errors
} else {
bbp_add_error( 'bbp_toggle_topic', $retval['message'] );
}
@@ -875,7 +875,7 @@ public function handle_reply_actions_request( $action = '' ) {
if ( ( false !== $retval['status'] ) && ! is_wp_error( $retval['status'] ) ) {
bbp_redirect( $retval['redirect_to'] );
- // Handle errors
+ // Handle errors
} else {
bbp_add_error( 'bbp_toggle_reply', $retval['message'] );
}
diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
index 247eb1f7cf..8ef1de9907 100644
--- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
+++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
@@ -277,8 +277,8 @@ public function has_topics( $r ) {
unset( $r['meta_key'] );
unset( $r['meta_type'] );
$r['orderby'] = 'ID';
- // Some views use meta key lookups and should only look at known
- // open topics.
+ // Some views use meta key lookups and should only look at known
+ // open topics.
} elseif ( ! empty( $r['meta_key'] ) ) {
$r['orderby'] = 'ID';
add_filter( 'posts_where', array( $this, 'posts_in_last_six_months' ) );
diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
index 0272c1b7cf..14dbeedeca 100644
--- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
+++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
@@ -218,34 +218,34 @@ public function do_view_header() {
// Undo the above filter, for titles of replies to reviews. See #meta4254
add_filter( 'bbp_get_topic_last_topic_title', array( $this, 'undo_topic_title' ), 10, 1 );
-?>
+ ?>
' ); ?>
';
- if ( $this->review_exists() ) {
- _e( 'Edit your review', 'wporg-forums' );
- } else {
- _e( 'Add your own review', 'wporg-forums' );
- }
- echo '';
+ if ( is_user_logged_in() ) {
+ echo '';
+ if ( $this->review_exists() ) {
+ _e( 'Edit your review', 'wporg-forums' );
} else {
- echo '';
- printf(
- /* translators: %s: login URL */
- __( 'You must be logged in to submit a review.', 'wporg-forums' ),
- add_query_arg(
- 'redirect_to',
- urlencode( esc_url_raw( sprintf( home_url( '/%s/%s/reviews/' ), $this->compat, $this->slug ) ) ),
- 'https://login.wordpress.org/'
- )
- );
- echo '';
+ _e( 'Add your own review', 'wporg-forums' );
}
+ echo '';
+ } else {
+ echo '';
+ printf(
+ /* translators: %s: login URL */
+ __( 'You must be logged in to submit a review.', 'wporg-forums' ),
+ add_query_arg(
+ 'redirect_to',
+ urlencode( esc_url_raw( sprintf( home_url( '/%s/%s/reviews/' ), $this->compat, $this->slug ) ) ),
+ 'https://login.wordpress.org/'
+ )
+ );
+ echo '';
+ }
?>
@@ -256,8 +256,8 @@ public function do_view_header() {
/* translators: %s: number of reviews */
_n( '%s review', '%s reviews', $this->reviews_count, 'wporg-forums' ),
'' . number_format_i18n( $this->reviews_count ) . ''
- );
- ?>
+ );
+ ?>
' ); ?>
@@ -489,7 +489,7 @@ public function do_template_notice() {
__( 'Please do not add links to your review, keep the review about your experience in text only.', 'wporg-forums' ),
esc_url( __( 'https://wordpress.org/support/forum-user-guide/faq/#why-are-links-not-allowed-in-reviews', 'wporg-forums' ) )
);
- ?>
+ ?>
Error: No topic was found! Which topic are you sticking?', 'wporg-forums' ) );
- // Check user.
+ // Check user.
} elseif ( ! $this->user_can_stick( $user_id, $term->term_id, $topic->ID ) ) {
bbp_add_error( 'wporg_bbp_sticky_logged_in', __( 'Error: You do not have permission to do this!', 'wporg-forums' ) );
- // Check nonce.
+ // Check nonce.
} elseif( ! bbp_verify_nonce_request( 'toggle-topic-sticky_' . $topic->ID . '_' . $term->term_id ) ) {
bbp_add_error( 'wporg_bbp_sticky_nonce', __( 'Error: Are you sure you wanted to do that?', 'wporg-forums' ) );
}
diff --git a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php
index a650d71805..9dd8033abc 100644
--- a/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php
+++ b/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-support-compat.php
@@ -268,7 +268,7 @@ public function get_view_link( $url, $view ) {
$url = $wp_rewrite->root . "view/{$view}/" . $this->user->user_nicename;
$url = home_url( user_trailingslashit( $url ) );
- // Unpretty permalinks.
+ // Unpretty permalinks.
} else {
$url = add_query_arg( array(
bbp_get_view_rewrite_id() => $view,
@@ -609,7 +609,7 @@ public function redirect_old_topic_id() {
$forum_id = absint( $segments[ $count - 2 ] );
$topic_id = absint( $segments[ $count - 1 ] );
- // {...}/{forum_id} - but not /page/{n}/ pagination.
+ // {...}/{forum_id} - but not /page/{n}/ pagination.
} elseif (
$count >= 1 &&
ctype_digit( $segments[ $count - 1 ] ) &&
diff --git a/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php b/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
index b0348ef3b8..fc4175b2cf 100644
--- a/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
+++ b/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
@@ -589,7 +589,7 @@ function wporg_themes_meta_box_callback( $post ) {
-
+ ?>
-ID) ? $user_ID : $post->post_author;
$user = new WP_User($value);
echo "";
echo "";
-?>
+ ?>
-
+ ?>
- __('Team', 'wporg') )
+ array_slice( $columns, 1, null, true );
- return $columns;
- }
-
- public function meeting_custom_columns( $column, $post_id ) {
- switch ( $column ) {
- case 'team' :
- $team = get_post_meta( $post_id, 'team', true );
- echo esc_html( $team );
- break;
+ return $columns;
}
- }
- public function meeting_archive_page_query( $query ) {
- if ( is_admin() || ! $query->is_main_query() || ! $query->is_post_type_archive( 'meeting' ) ) {
- return;
+ public function meeting_custom_columns( $column, $post_id ) {
+ switch ( $column ) {
+ case 'team' :
+ $team = get_post_meta( $post_id, 'team', true );
+ echo esc_html( $team );
+ break;
+ }
}
- // turn off paging on the archive page, to show all meetings in the table
- $query->set( 'nopaging', true );
- // meta query to eliminate expired meetings from query
- $query->set( 'meta_query', $this->meeting_meta_query );
+ public function meeting_archive_page_query( $query ) {
+ if ( is_admin() || ! $query->is_main_query() || ! $query->is_post_type_archive( 'meeting' ) ) {
+ return;
+ }
+ // turn off paging on the archive page, to show all meetings in the table
+ $query->set( 'nopaging', true );
- // WP doesn't understand CURDATE() and prepares it as a quoted string. Repair this:
- add_filter( 'get_meta_sql', function ($sql) {
- return str_replace( "'CURDATE()'", 'CURDATE()', $sql );
- } );
+ // meta query to eliminate expired meetings from query
+ $query->set( 'meta_query', $this->meeting_meta_query );
- }
+ // WP doesn't understand CURDATE() and prepares it as a quoted string. Repair this:
+ add_filter( 'get_meta_sql', function ($sql) {
+ return str_replace( "'CURDATE()'", 'CURDATE()', $sql );
+ } );
- public function meeting_set_next_meeting( $posts, $query ) {
- if ( !$query->is_post_type_archive( 'meeting' ) ) {
- return $posts;
}
- // for each entry, set a fake meta value to show the next date for recurring meetings
- array_walk( $posts, function ( &$post ) {
- if ( 'weekly' === $post->recurring || '1' === $post->recurring ) {
- try {
- // from the start date, advance the week until it's past now
- $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
- $next = $start;
- // minus 30 minutes to account for currently ongoing meetings
- $now = new DateTime( '-30 minutes' );
-
- if ( $next < $now ) {
- $interval = $start->diff( $now );
- // add one to days to account for events that happened earlier today
- $weekdiff = ceil( ( $interval->days + 1 ) / 7 );
- $next->modify( '+ ' . $weekdiff . ' weeks' );
- }
+ public function meeting_set_next_meeting( $posts, $query ) {
+ if ( !$query->is_post_type_archive( 'meeting' ) ) {
+ return $posts;
+ }
- $post->next_date = $next->format( 'Y-m-d' );
- } catch ( Exception $e ) {
- // if the datetime is invalid, then set the post->next_date to the start date instead
- $post->next_date = $post->start_date;
- }
- } else if ( 'biweekly' === $post->recurring ) {
- try {
- // advance the start date 2 weeks at a time until it's past now
- $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
- $next = $start;
- // minus 30 minutes to account for currently ongoing meetings
- $now = new DateTime( '-30 minutes' );
-
- while ( $next < $now ) {
- $next->modify( '+2 weeks' );
+ // for each entry, set a fake meta value to show the next date for recurring meetings
+ array_walk( $posts, function ( &$post ) {
+ if ( 'weekly' === $post->recurring || '1' === $post->recurring ) {
+ try {
+ // from the start date, advance the week until it's past now
+ $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
+ $next = $start;
+ // minus 30 minutes to account for currently ongoing meetings
+ $now = new DateTime( '-30 minutes' );
+
+ if ( $next < $now ) {
+ $interval = $start->diff( $now );
+ // add one to days to account for events that happened earlier today
+ $weekdiff = ceil( ( $interval->days + 1 ) / 7 );
+ $next->modify( '+ ' . $weekdiff . ' weeks' );
+ }
+
+ $post->next_date = $next->format( 'Y-m-d' );
+ } catch ( Exception $e ) {
+ // if the datetime is invalid, then set the post->next_date to the start date instead
+ $post->next_date = $post->start_date;
}
+ } else if ( 'biweekly' === $post->recurring ) {
+ try {
+ // advance the start date 2 weeks at a time until it's past now
+ $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
+ $next = $start;
+ // minus 30 minutes to account for currently ongoing meetings
+ $now = new DateTime( '-30 minutes' );
+
+ while ( $next < $now ) {
+ $next->modify( '+2 weeks' );
+ }
- $post->next_date = $next->format( 'Y-m-d' );
- } catch ( Exception $e ) {
- // if the datetime is invalid, then set the post->next_date to the start date instead
- $post->next_date = $post->start_date;
- }
- } else if ( 'occurrence' === $post->recurring ) {
- try {
- // advance the occurrence day in the current month until it's past now
- $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
- $next = $start;
- // minus 30 minutes to account for currently ongoing meetings
- $now = new DateTime( '-30 minutes' );
-
- $day_index = date( 'w', strtotime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ) );
- $day_name = $GLOBALS['wp_locale']->get_weekday( $day_index );
- $numerals = array( 'first', 'second', 'third', 'fourth' );
- $months = array( 'this month', 'next month' );
-
- foreach ( $months as $month ) {
- foreach ( $post->occurrence as $index ) {
- $next = new DateTime( sprintf( '%s %s of %s %s GMT', $numerals[ $index - 1 ], $day_name, $month, $post->time ) );
- if ( $next > $now ) {
- break 2;
+ $post->next_date = $next->format( 'Y-m-d' );
+ } catch ( Exception $e ) {
+ // if the datetime is invalid, then set the post->next_date to the start date instead
+ $post->next_date = $post->start_date;
+ }
+ } else if ( 'occurrence' === $post->recurring ) {
+ try {
+ // advance the occurrence day in the current month until it's past now
+ $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
+ $next = $start;
+ // minus 30 minutes to account for currently ongoing meetings
+ $now = new DateTime( '-30 minutes' );
+
+ $day_index = date( 'w', strtotime( sprintf( '%s %s GMT', $post->start_date, $post->time ) ) );
+ $day_name = $GLOBALS['wp_locale']->get_weekday( $day_index );
+ $numerals = array( 'first', 'second', 'third', 'fourth' );
+ $months = array( 'this month', 'next month' );
+
+ foreach ( $months as $month ) {
+ foreach ( $post->occurrence as $index ) {
+ $next = new DateTime( sprintf( '%s %s of %s %s GMT', $numerals[ $index - 1 ], $day_name, $month, $post->time ) );
+ if ( $next > $now ) {
+ break 2;
+ }
}
}
- }
- $post->next_date = $next->format( 'Y-m-d' );
- } catch ( Exception $e ) {
- // if the datetime is invalid, then set the post->next_date to the start date instead
- $post->next_date = $post->start_date;
- }
- } else if ( 'monthly' === $post->recurring ) {
- try {
- // advance the start date 1 month at a time until it's past now
- $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
- $next = $start;
- // minus 30 minutes to account for currently ongoing meetings
- $now = new DateTime( '-30 minutes' );
-
- while ( $next < $now ) {
- $next->modify( '+1 month' );
+ $post->next_date = $next->format( 'Y-m-d' );
+ } catch ( Exception $e ) {
+ // if the datetime is invalid, then set the post->next_date to the start date instead
+ $post->next_date = $post->start_date;
}
+ } else if ( 'monthly' === $post->recurring ) {
+ try {
+ // advance the start date 1 month at a time until it's past now
+ $start = new DateTime( sprintf( '%s %s GMT', $post->start_date, $post->time ) );
+ $next = $start;
+ // minus 30 minutes to account for currently ongoing meetings
+ $now = new DateTime( '-30 minutes' );
+
+ while ( $next < $now ) {
+ $next->modify( '+1 month' );
+ }
- $post->next_date = $next->format( 'Y-m-d' );
- } catch ( Exception $e ) {
- // if the datetime is invalid, then set the post->next_date to the start date instead
+ $post->next_date = $next->format( 'Y-m-d' );
+ } catch ( Exception $e ) {
+ // if the datetime is invalid, then set the post->next_date to the start date instead
+ $post->next_date = $post->start_date;
+ }
+ } else {
$post->next_date = $post->start_date;
}
- } else {
- $post->next_date = $post->start_date;
- }
- });
+ });
- // reorder the posts by next_date + time
- usort( $posts, function ($a, $b) {
- $adate = strtotime( $a->next_date . ' ' . $a->time );
- $bdate = strtotime( $b->next_date . ' ' . $b->time );
- if ( $adate == $bdate ) {
- return 0;
- }
- return ( $adate < $bdate ) ? -1 : 1;
- });
+ // reorder the posts by next_date + time
+ usort( $posts, function ($a, $b) {
+ $adate = strtotime( $a->next_date . ' ' . $a->time );
+ $bdate = strtotime( $b->next_date . ' ' . $b->time );
+ if ( $adate == $bdate ) {
+ return 0;
+ }
+ return ( $adate < $bdate ) ? -1 : 1;
+ });
- return $posts;
- }
+ return $posts;
+ }
- public function register_meeting_post_type() {
- $labels = array(
+ public function register_meeting_post_type() {
+ $labels = array(
'name' => _x( 'Meetings', 'Post Type General Name', 'wporg' ),
'singular_name' => _x( 'Meeting', 'Post Type Singular Name', 'wporg' ),
'menu_name' => __( 'Meetings', 'wporg' ),
@@ -198,8 +198,8 @@ public function register_meeting_post_type() {
'search_items' => __( 'Search Meeting', 'wporg' ),
'not_found' => __( 'Not found', 'wporg' ),
'not_found_in_trash' => __( 'Not found in Trash', 'wporg' ),
- );
- $args = array(
+ );
+ $args = array(
'label' => __( 'meeting', 'wporg' ),
'description' => __( 'Meeting', 'wporg' ),
'labels' => $labels,
@@ -222,39 +222,39 @@ public function register_meeting_post_type() {
'with_front' => false,
'slug' => __( 'meetings', 'wporg' ),
),
- );
- register_post_type( 'meeting', $args );
- }
+ );
+ register_post_type( 'meeting', $args );
+ }
- public function add_meta_boxes() {
- add_meta_box(
+ public function add_meta_boxes() {
+ add_meta_box(
'meeting-info',
'Meeting Info',
array( $this, 'render_meta_boxes' ),
'meeting',
'normal',
'high'
- );
- }
-
- function render_meta_boxes( $post ) {
- wp_enqueue_script( 'jquery-ui-datepicker' );
- wp_enqueue_style( 'jquery-ui-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css', true);
-
- $meta = get_post_custom( $post->ID );
- $team = isset( $meta['team'][0] ) ? $meta['team'][0] : '';
- $start = isset( $meta['start_date'][0] ) ? $meta['start_date'][0] : '';
- $end = isset( $meta['end_date'][0] ) ? $meta['end_date'][0] : '';
- $time = isset( $meta['time'][0] ) ? $meta['time'][0] : '';
- $recurring = isset( $meta['recurring'][0] ) ? $meta['recurring'][0] : '';
- if ( '1' === $recurring ) {
- $recurring = 'weekly';
+ );
}
- $occurrence = isset( $meta['occurrence'][0] ) ? unserialize( $meta['occurrence'][0] ) : array();
- $link = isset( $meta['link'][0] ) ? $meta['link'][0] : '';
- $location = isset( $meta['location'][0] ) ? $meta['location'][0] : '';
- wp_nonce_field( 'save_meeting_meta_'.$post->ID , 'meeting_nonce' );
- ?>
+
+ function render_meta_boxes( $post ) {
+ wp_enqueue_script( 'jquery-ui-datepicker' );
+ wp_enqueue_style( 'jquery-ui-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css', true);
+
+ $meta = get_post_custom( $post->ID );
+ $team = isset( $meta['team'][0] ) ? $meta['team'][0] : '';
+ $start = isset( $meta['start_date'][0] ) ? $meta['start_date'][0] : '';
+ $end = isset( $meta['end_date'][0] ) ? $meta['end_date'][0] : '';
+ $time = isset( $meta['time'][0] ) ? $meta['time'][0] : '';
+ $recurring = isset( $meta['recurring'][0] ) ? $meta['recurring'][0] : '';
+ if ( '1' === $recurring ) {
+ $recurring = 'weekly';
+ }
+ $occurrence = isset( $meta['occurrence'][0] ) ? unserialize( $meta['occurrence'][0] ) : array();
+ $link = isset( $meta['link'][0] ) ? $meta['link'][0] : '';
+ $location = isset( $meta['location'][0] ) ? $meta['location'][0] : '';
+ wp_nonce_field( 'save_meeting_meta_'.$post->ID , 'meeting_nonce' );
+ ?>
-
+
';
- }
- restore_current_blog();
+ restore_current_blog();
- return $out;
- }
+ return $out;
+ }
- private $meeting_meta_query = array(
+ private $meeting_meta_query = array(
'relation'=>'OR',
// not recurring AND start_date >= CURDATE() = one-time meeting today or still in future
array(
@@ -553,8 +553,8 @@ public function meeting_time_shortcode( $attr, $content = '' ) {
),
);
- public function time_conversion_script() {
- echo <<
var parse_date = function (text) {
@@ -584,11 +584,11 @@ public function time_conversion_script() {
}
EOF;
+ }
}
-}
-// fire it up
-Meeting_Post_Type::init();
+ // fire it up
+ Meeting_Post_Type::init();
endif;
diff --git a/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php b/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php
index acfab2968a..6616cb0f52 100644
--- a/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php
+++ b/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/admin/reports-page.php
@@ -289,29 +289,29 @@ function display_reports_page( $details ) {
echo '
These codes are intended to be used when you lose access to your authentication device. Please take a moment to review your account settings and ensure your two-factor settings are up-to-date.", 'wporg' );
+if ( $used_backup_code ) {
+ _e( "You've logged in with a backup code. These codes are intended to be used when you lose access to your authentication device. Please take a moment to review your account settings and ensure your two-factor settings are up-to-date.", 'wporg' );
+} else {
+ if ( ! $codes_available ) {
+ _e( 'You do not have any backup codes remaining.', 'wporg' );
} else {
- if ( ! $codes_available ) {
- _e( 'You do not have any backup codes remaining.', 'wporg' );
- } else {
- printf(
- _n(
- 'You have %s backup code remaining.',
- 'You have %s backup codes remaining.',
- $codes_available,
- 'wporg'
- ),
- '' . number_format_i18n( $codes_available ) . ''
- );
- }
-
- // Direct to the backup codes screen.
- $account_settings_url = add_query_arg( 'screen', 'backup-codes', $account_settings_url );
+ printf(
+ _n(
+ 'You have %s backup code remaining.',
+ 'You have %s backup codes remaining.',
+ $codes_available,
+ 'wporg'
+ ),
+ '' . number_format_i18n( $codes_available ) . ''
+ );
}
+
+ // Direct to the backup codes screen.
+ $account_settings_url = add_query_arg( 'screen', 'backup-codes', $account_settings_url );
+}
?>
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/updated-tos.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/updated-tos.php
index 1057327e87..f7f767c424 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/updated-tos.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/updated-tos.php
@@ -53,7 +53,7 @@
__u( 'Welcome back %s, Some of our policies have been updated, please review the items below before continuing.', 'wporg' ),
$user->display_name ?: $user->user_login
);
-?>
@@ -69,7 +69,7 @@
wp_kses_post( __( 'The WordPress Accessibility Team provides accessibility expertise across the project to improve the accessibility of WordPress core and resources.', 'wporg' ) ),
'https://make.wordpress.org/accessibility/'
);
- ?>
+ ?>
@@ -93,7 +93,7 @@
wp_kses_post( __( 'To report an Accessibility issue you’ve encountered in WordPress or on WordPress.org, please see the Accessibility Handbook page on Reporting Accessibility Issues.', 'wporg' ) ),
'https://make.wordpress.org/accessibility/handbook/reporting-issues/'
);
- ?>
+ ?>
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php
index a3b220a6f6..6177da0487 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-cookies.php
@@ -56,7 +56,7 @@
__( 'Our Privacy Policy explains our principles when it comes to the collection, processing, and storage of your information. The Cookie Policy specifically explains how we, our partners, and users of our services deploy cookies, as well as the options you have to control them.', 'wporg' ),
home_url( '/about/privacy/' )
) );
- ?>
+ ?>
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php
index 824adce9e6..a5a8a3ccb6 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php
@@ -148,7 +148,7 @@
__( 'Please see our cookie policy for more information about what cookies are collected on WordPress.org.', 'wporg' ),
home_url( '/about/privacy/cookies/' )
) );
- ?>
+ ?>
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php
index 05bac2d84e..085b0fdcdf 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php
@@ -49,7 +49,7 @@
wp_kses_post( __( 'Learn more about WordPress core software security in this free white paper. You can also download it in PDF format.', 'wporg' ) ),
'https://github.com/WordPress/Security-White-Paper/blob/master/WordPressSecurityWhitePaper.pdf?raw=true'
);
- ?>
+ ?>
@@ -67,7 +67,7 @@
esc_html__( 'WordPress is a dynamic open-source content management system which is used to power millions of websites, web applications, and blogs. It currently powers more than %s%% of the top 10 million websites on the Internet. WordPress’ usability, extensibility, and mature development community make it a popular and secure choice for websites of all sizes.', 'wporg' ),
esc_html( WP_MARKET_SHARE )
);
- ?>
+ ?>
@@ -85,7 +85,7 @@
'1',
62
);
- ?>
+ ?>
@@ -113,7 +113,7 @@
esc_html__( 'A release cycle follows the following pattern%s:', 'wporg' ),
'2'
);
- ?>
+ ?>
@@ -134,7 +134,7 @@
esc_html__( 'A minor WordPress version is dictated by the third sequence. Version 3.5.1 is a minor release, as is 3.4.2%s. A minor release is reserved for fixing security vulnerabilities and addressing critical bugs only. Since new versions of WordPress are released so frequently — the aim is every 4-5 months for a major release, and minor releases happen as needed — there is only a need for major and minor releases.', 'wporg' ),
'3'
);
- ?>
+ ?>
@@ -149,7 +149,7 @@
50,
'3'
);
- ?>
+ ?>
@@ -159,7 +159,7 @@
esc_html__( 'The WordPress Security Team often collaborates with other security teams to address issues in common dependencies, such as resolving the vulnerability in the PHP XML parser, used by the XML-RPC API that ships with WordPress, in WordPress 3.9.2%s. This vulnerability resolution was a result of a joint effort by both WordPress and Drupal security teams.', 'wporg' ),
'4'
);
- ?>
+ ?>
@@ -182,7 +182,7 @@
esc_html__( 'For an immediate security release, an advisory is published by the Security Team to the WordPress.org News site%s announcing the release and detailing the changes. Credit for the responsible disclosure of a vulnerability is given in the advisory to encourage and reinforce continued responsible reporting in the future.', 'wporg' ),
'6'
);
- ?>
+ ?>
@@ -195,7 +195,7 @@
esc_html__( 'Starting with version 3.7, WordPress introduced automated background updates for all minor releases%s, such as 3.7.1 and 3.7.2. The WordPress Security Team can identify, fix, and push out automated security enhancements for WordPress without the site owner needing to do anything on their end, and the security update will install automatically.', 'wporg' ),
'7'
);
- ?>
+ ?>
@@ -209,7 +209,7 @@
esc_html__( 'The Open Web Application Security Project (OWASP) is an online community dedicated to web application security. The OWASP Top 10 list%s focuses on identifying the most serious application security risks for a broad array of organizations. The Top 10 items are selected and prioritized in combination with consensus estimates of exploitability, detectability, and impact estimates.', 'wporg' ),
'8'
);
- ?>
+ ?>
@@ -221,7 +221,7 @@
esc_html__( 'There is a set of functions and APIs available in WordPress to assist developers in making sure unauthorized code cannot be injected, and help them validate and sanitize data. Best practices and documentation are available%s on how to use these APIs to protect, validate, or sanitize input and output data in HTML, URLs, HTTP headers, and when interacting with the database and filesystem. Administrators can also further restrict the types of file which can be uploaded via filters.', 'wporg' ),
'9'
);
- ?>
+ ?>
@@ -234,7 +234,7 @@
'10',
'wp_kses'
);
- ?>
+ ?>
@@ -244,7 +244,7 @@
esc_html__( 'As an example, the WordPress core team noticed before the release of WordPress 2.3 that the function %s was being misused by most theme authors, who were not escaping the function’s output for use in HTML. In a very rare case of slightly breaking backward compatibility, the function’s output was changed in WordPress 2.3 to be pre-escaped.', 'wporg' ),
'the_search_query()'
);
- ?>
+ ?>
@@ -256,7 +256,7 @@
esc_html__( 'The majority of the WordPress security configuration operations are limited to a single authorized administrator. Default settings for WordPress are continually evaluated at the core team level, and the WordPress core team provides documentation and best practices to tighten security for server configuration for running a WordPress site%s.', 'wporg' ),
'11'
);
- ?>
+ ?>
@@ -266,7 +266,7 @@
esc_html__( 'WordPress user account passwords are salted and hashed based on the Portable PHP Password Hashing Framework%s. WordPress’ permission system is used to control access to private information such an registered users’ PII, commenters’ email addresses, privately published content, etc. In WordPress 3.7, a password strength meter was included in the core software providing additional information to users setting their passwords and hints on increasing strength. WordPress also has an optional configuration setting for requiring HTTPS.', 'wporg' ),
'12'
);
- ?>
+ ?>
@@ -280,7 +280,7 @@
esc_html__( 'WordPress uses cryptographic tokens, called nonces%s, to validate intent of action requests from authorized users to protect against potential CSRF threats. WordPress provides an API for the generation of these tokens to create and verify unique and temporary tokens, and the token is limited to a specific user, a specific action, a specific object, and a specific time period, which can be added to forms and URLs as needed. Additionally, all nonces are invalidated upon logout.', 'wporg' ),
'13'
);
- ?>
+ ?>
@@ -291,7 +291,7 @@
esc_html__( 'The WordPress core team closely monitors the few included libraries and frameworks WordPress integrates with for core functionality. In the past the core team has made contributions to several third-party components to make them more secure, such as the update to fix a cross-site vulnerability in TinyMCE in WordPress 3.5.2%s.', 'wporg' ),
'14'
);
- ?>
+ ?>
@@ -301,7 +301,7 @@
esc_html__( 'If necessary, the core team may decide to fork or replace critical external components, such as when the SWFUpload library was officially replaced by the Plupload library in 3.5.2, and a secure fork of SWFUpload was made available by the security team<%s for those plugins who continued to use SWFUpload in the short-term.', 'wporg' ),
'15'
);
- ?>
+ ?>
@@ -312,7 +312,7 @@
wp_kses_post( __( 'WordPress’ internal access control and authentication system will protect against attempts to direct users to unwanted destinations or automatic redirects. This functionality is also made available to plugin developers via an API, wp_safe_redirect()%s.', 'wporg' ) ),
'16'
);
- ?>
+ ?>
@@ -328,7 +328,7 @@
esc_html__( 'WordPress requires a theme to be enabled to render content visible on the frontend. The default theme which ships with core WordPress (currently "%s") has been vigorously reviewed and tested for security reasons by both the team of theme developers plus the core development team.', 'wporg' ),
esc_html( wp_get_theme( 'core/' . WP_CORE_DEFAULT_THEME )->display( 'Name' ) )
);
- ?>
+ ?>
@@ -345,7 +345,7 @@
esc_html( number_format_i18n( 50000 ) ),
esc_html( number_format_i18n( 5000 ) )
);
- ?>
+ ?>
@@ -372,7 +372,7 @@
'20',
'21'
);
- ?>
+ ?>
@@ -384,7 +384,7 @@
esc_html__( 'WordPress.com is the largest WordPress installation in the world, and is owned and managed by Automattic, Inc., which was founded by Matt Mullenweg, the WordPress project co-creator. WordPress.com runs on the core WordPress software, and has its own security processes, risks, and solutions%s. This document refers to security regarding the self-hosted, downloadable open source WordPress software available from WordPress.org and installable on any server in the world.', 'wporg' ),
'22'
);
- ?>
+ ?>
@@ -395,7 +395,7 @@
esc_html__( 'The WordPress Core Application Programming Interface (API) is comprised of several individual APIs%s, each one covering the functions involved in, and use of, a given set of functionality. Together, these form the project interface which allows plugins and themes to interact with, alter, and extend WordPress core functionality safely and securely.', 'wporg' ),
'23'
);
- ?>
+ ?>
@@ -409,7 +409,7 @@
esc_html__( 'The Database API%s, added in WordPress 0.71, provides the correct method for accessing data as named values which are stored in the database layer.', 'wporg' ),
'24'
);
- ?>
+ ?>
@@ -422,7 +422,7 @@
'25',
'26'
);
- ?>
+ ?>
WP_Filesystem_Base class, and several subclasses which implement different ways of connecting to the local filesystem, depending on individual host support. Any theme or plugin that needs to write files locally should do so using the WP_Filesystem family of classes.', 'wporg' ) ); ?>
@@ -437,7 +437,7 @@
'27',
'28'
);
- ?>
+ ?>
@@ -449,7 +449,7 @@
esc_html__( 'The permissions and current user API%s is a set of functions which will help verify the current user’s permissions and authority to perform any task or operation being requested, and can protect further against unauthorized users accessing or performing functions beyond their permitted capabilities.', 'wporg' ),
'29'
);
- ?>
+ ?>
@@ -470,7 +470,7 @@
wp_kses_post( __( 'A special thank you to Drupal’s security white paper, which provided some inspiration. ', 'wporg' ) ),
'https://www.drupal.org/files/drupal-security-whitepaper-1-3_0.pdf'
);
- ?>
+ ?>
\n";
- echo $output;
- }
+ echo $output;
+ }
?>
', ''); ?>
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-user.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-user.php
index b6d971d5b3..d52feaf8cc 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-user.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-user.php
@@ -28,9 +28,9 @@
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-view.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-view.php
index d69446e247..68a0df0100 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-view.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-view.php
@@ -23,11 +23,11 @@
-
+
-
+
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php
index 4592840cdc..f9d30910a4 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php
@@ -43,7 +43,7 @@
esc_html__( 'The forum ‘%s’ is closed to new topics and replies, however your posting capabilities still allow you to post.', 'wporg-forums' ),
bbp_get_forum_title( bbp_get_topic_forum_id() )
);
- ?>
+ ?>
@@ -212,19 +212,19 @@
logged in to reply to this review.', 'wporg-forums' ), wp_login_url() );
- }
+ if ( wporg_support_is_single_review() ) {
+ if ( is_user_logged_in() ) {
+ esc_html_e( 'You cannot reply to this review.', 'wporg-forums' );
} else {
- if ( is_user_logged_in() ) {
- esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' );
- } else {
- printf( __( 'You must be logged in to reply to this topic.', 'wporg-forums' ), wp_login_url() );
- }
+ printf( __( 'You must be logged in to reply to this review.', 'wporg-forums' ), wp_login_url() );
}
+ } else {
+ if ( is_user_logged_in() ) {
+ esc_html_e( 'You cannot reply to this topic.', 'wporg-forums' );
+ } else {
+ printf( __( 'You must be logged in to reply to this topic.', 'wporg-forums' ), wp_login_url() );
+ }
+ }
?>
+ ?>
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php
index 64b7a5d9cb..eab8c02c81 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php
@@ -79,13 +79,13 @@
printf( __( 'Read the Welcome Guide to maximize your odds of getting help.', 'wporg-forums' ),
esc_url( __( 'https://wordpress.org/support/welcome/', 'wporg-forums' ) )
);
- ?>
+ ?>
Search the forums for similar inquiries.', 'wporg-forums' ),
esc_url( bbp_get_search_url() )
);
- ?>
+ ?>
Update your plugins, themes, and WordPress site to the latest versions.', 'wporg-forums' ); ?>
Describe the steps needed to reproduce an issue.', 'wporg-forums' ); ?>
Provide relevant information, such as your browser, operating system, or server environment.', 'wporg-forums' ); ?>
',
'title_reply' => __( 'Was this article helpful? How could it be improved?', 'wporg-forums' ),
@@ -44,6 +44,6 @@
' ' . sprintf( __( 'This is not for personalized support. Please create a forum thread instead to receive help from the community.', 'wporg-forums'), home_url( '/forums/#bbpress-forums' ) ),
'label_submit' => __( 'Submit Feedback', 'wporg-forums' ),
)
- );
+ );
endif;
endif;
diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php
index 428049e112..024e9becc8 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php
@@ -1256,12 +1256,12 @@ function wporg_support_wrap_standalone_li_tags_in_ul( $content ) {
}
$i++; // Skip $next_part;
- // Does this text chunk contain a
? If so, it's got no matching start element.
+ // Does this text chunk contain a
? If so, it's got no matching start element.
} elseif ( false !== stripos( $part, '
' ) ) {
$part = preg_replace( '#
#i', '
', $part, 1 ); // Replace the first li tag
$content .= force_balance_tags( $part );
- // This shouldn't actually be hit, but is here for completeness.
+ // This shouldn't actually be hit, but is here for completeness.
} else {
$content .= force_balance_tags( $part );
}
@@ -1360,7 +1360,7 @@ function wporg_support_get_welcome_url() {
/** bb Base *******************************************************************/
function bb_base_search_form() {
-?>
+ ?>
@@ -1372,11 +1372,11 @@ function bb_base_search_form() {
-
+ ?>
@@ -1387,11 +1387,11 @@ function bb_base_topic_search_form() {
-
+ ?>
@@ -1402,11 +1402,11 @@ function bb_base_reply_search_form() {
-
+ ?>
@@ -1417,7 +1417,7 @@ function bb_base_plugin_search_form() {
+ ); ?>