diff --git a/public_html/wp-includes/nav-menu-template.php b/public_html/wp-includes/nav-menu-template.php
index e947eb8..62a7f27 100644
--- a/wp-includes/nav-menu-template.php
+++ b/wp-includes/nav-menu-template.php
@@ -542,6 +542,11 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
 		$classes[] = 'menu-item-type-' . $menu_item->type;
 		$classes[] = 'menu-item-object-' . $menu_item->object;
 
+		// If the menu item URL corresponds to the currently-queried object's slug
+		if ( isset($wp_query->queried_object->rewrite['slug']) && trim($menu_item->url,'/') == trim($wp_query->queried_object->rewrite['slug'],'/') ) {
+			$classes[] = 'current-menu-item';
+		}
+
 		// if the menu item corresponds to a taxonomy term for the currently-queried non-hierarchical post object
 		if ( $wp_query->is_singular && 'taxonomy' == $menu_item->type && in_array( $menu_item->object_id, $possible_object_parents ) ) {
 			$active_parent_object_ids[] = (int) $menu_item->object_id;
