%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /safe-wp/wp-admin/js/
Upload File :
Create Path :
Current File : //safe-wp/wp-admin/js/code-editor.js

/**
 * @output wp-admin/js/code-editor.js
 */

/* global console */

/* eslint-env es2020 */

if ( 'undefined' === typeof window.wp ) {
	/**
	 * @namespace wp
	 */
	window.wp = {};
}
if ( 'undefined' === typeof window.wp.codeEditor ) {
	/**
	 * @namespace wp.codeEditor
	 */
	window.wp.codeEditor = {};
}

/**
 * @typedef {object} CodeMirrorState
 * @property {boolean} [completionActive] - Whether completion is active.
 * @property {boolean} [focused] - Whether the editor is focused.
 */

/**
 * @typedef {import('codemirror').EditorFromTextArea & {
 *   options: import('codemirror').EditorConfiguration,
 *   performLint?: () => void,
 *   showHint?: (options: import('codemirror').ShowHintOptions) => void,
 *   state: CodeMirrorState
 * }} CodeMirrorEditor
 */

/**
 * @typedef {object} LintAnnotation
 * @property {string} message - Message.
 * @property {'error'|'warning'} severity - Severity.
 * @property {import('codemirror').Position} from - From position.
 * @property {import('codemirror').Position} to - To position.
 */

/**
 * @typedef {object} CodeMirrorTokenState
 * @property {object} [htmlState] - HTML state.
 * @property {string} [htmlState.tagName] - Tag name.
 * @property {CodeMirrorTokenState} [curState] - Current state.
 */

/**
 * @typedef {import('codemirror').EditorConfiguration & {
 *   lint?: boolean | CombinedLintOptions,
 *   autoCloseBrackets?: boolean,
 *   matchBrackets?: boolean,
 *   continueComments?: boolean,
 *   styleActiveLine?: boolean
 * }} CodeMirrorSettings
 */

/**
 * @typedef {object} CSSLintRules
 * @property {boolean} [errors] - Errors.
 * @property {boolean} [box-model] - Box model rules.
 * @property {boolean} [display-property-grouping] - Display property grouping rules.
 * @property {boolean} [duplicate-properties] - Duplicate properties rules.
 * @property {boolean} [known-properties] - Known properties rules.
 * @property {boolean} [outline-none] - Outline none rules.
 */

/**
 * @typedef {object} JSHintRules
 * @property {number} [esversion] - ECMAScript version.
 * @property {boolean} [module] - Whether to use modules.
 * @property {boolean} [boss] - Whether to allow assignments in control expressions.
 * @property {boolean} [curly] - Whether to require curly braces.
 * @property {boolean} [eqeqeq] - Whether to require === and !==.
 * @property {boolean} [eqnull] - Whether to allow == null.
 * @property {boolean} [expr] - Whether to allow expressions.
 * @property {boolean} [immed] - Whether to require immediate function invocation.
 * @property {boolean} [noarg] - Whether to prohibit arguments.caller/callee.
 * @property {boolean} [nonbsp] - Whether to prohibit non-breaking spaces.
 * @property {string} [quotmark] - Quote mark preference.
 * @property {boolean} [undef] - Whether to prohibit undefined variables.
 * @property {boolean} [unused] - Whether to prohibit unused variables.
 * @property {boolean} [browser] - Whether to enable browser globals.
 * @property {Record<string, boolean>} [globals] - Global variables.
 */

/**
 * @typedef {object} HTMLHintRules
 * @property {boolean} [tagname-lowercase] - Tag name lowercase rules.
 * @property {boolean} [attr-lowercase] - Attribute lowercase rules.
 * @property {boolean} [attr-value-double-quotes] - Attribute value double quotes rules.
 * @property {boolean} [doctype-first] - Doctype first rules.
 * @property {boolean} [tag-pair] - Tag pair rules.
 * @property {boolean} [spec-char-escape] - Spec char escape rules.
 * @property {boolean} [id-unique] - ID unique rules.
 * @property {boolean} [src-not-empty] - Src not empty rules.
 * @property {boolean} [attr-no-duplication] - Attribute no duplication rules.
 * @property {boolean} [alt-require] - Alt require rules.
 * @property {string} [space-tab-mixed-disabled] - Space tab mixed disabled rules.
 * @property {boolean} [attr-unsafe-chars] - Attribute unsafe chars rules.
 * @property {JSHintRules} [jshint] - JSHint rules.
 * @property {CSSLintRules} [csslint] - CSSLint rules.
 */

/**
 * Settings for the code editor.
 *
 * @typedef {object} CodeEditorSettings
 *
 * @property {CodeMirrorSettings} [codemirror] - CodeMirror settings.
 * @property {CSSLintRules} [csslint] - CSSLint rules.
 * @property {JSHintRules} [jshint] - JSHint rules.
 * @property {HTMLHintRules} [htmlhint] - HTMLHint rules.
 *
 * @property {(codemirror: CodeMirrorEditor, event: KeyboardEvent|JQuery.KeyDownEvent) => void} [onTabNext] - Callback to handle tabbing to the next tabbable element.
 * @property {(codemirror: CodeMirrorEditor, event: KeyboardEvent|JQuery.KeyDownEvent) => void} [onTabPrevious] - Callback to handle tabbing to the previous tabbable element.
 * @property {(errorAnnotations: LintAnnotation[], annotations: LintAnnotation[], annotationsSorted: LintAnnotation[], cm: CodeMirrorEditor) => void} [onChangeLintingErrors] - Callback for when the linting errors have changed.
 * @property {(errorAnnotations: LintAnnotation[], editor: CodeMirrorEditor) => void} [onUpdateErrorNotice] - Callback for when error notice should be displayed.
 */

/**
 * @typedef {import('codemirror/addon/lint/lint').LintStateOptions<Record<string, unknown>> & JSHintRules & CSSLintRules & { rules?: HTMLHintRules }} CombinedLintOptions
 */

/**
 * @typedef {object} CodeEditorInstance
 * @property {CodeEditorSettings} settings - The code editor settings.
 * @property {CodeMirrorEditor} codemirror - The CodeMirror instance.
 * @property {() => void} updateErrorNotice - Force update the error notice.
 */

/**
 * @typedef {object} WpCodeEditor
 * @property {CodeEditorSettings} defaultSettings - Default settings.
 * @property {(textarea: string|JQuery|Element, settings?: CodeEditorSettings) => CodeEditorInstance} initialize - Initialize.
 */

/**
 * @param {JQueryStatic} $ - jQuery.
 * @param {Object & {
 *   codeEditor: WpCodeEditor,
 *   CodeMirror: typeof import('codemirror'),
 * }} wp - WordPress namespace.
 */
( function( $, wp ) {
	'use strict';

	/**
	 * Default settings for code editor.
	 *
	 * @since 4.9.0
	 * @type {CodeEditorSettings}
	 */
	wp.codeEditor.defaultSettings = {
		codemirror: {},
		csslint: {},
		htmlhint: {},
		jshint: {},
		onTabNext: function() {},
		onTabPrevious: function() {},
		onChangeLintingErrors: function() {},
		onUpdateErrorNotice: function() {},
	};

	/**
	 * Configure linting.
	 *
	 * @param {CodeEditorSettings} settings - Code editor settings.
	 *
	 * @return {LintingController} Linting controller.
	 */
	function configureLinting( settings ) { // eslint-disable-line complexity
		/** @type {LintAnnotation[]} */
		let currentErrorAnnotations = [];

		/** @type {LintAnnotation[]} */
		let previouslyShownErrorAnnotations = [];

		/**
		 * Call the onUpdateErrorNotice if there are new errors to show.
		 *
		 * @param {import('codemirror').Editor} editor - Editor.
		 * @return {void}
		 */
		function updateErrorNotice( editor ) {
			if ( settings.onUpdateErrorNotice && ! _.isEqual( currentErrorAnnotations, previouslyShownErrorAnnotations ) ) {
				settings.onUpdateErrorNotice( currentErrorAnnotations, /** @type {CodeMirrorEditor} */ ( editor ) );
				previouslyShownErrorAnnotations = currentErrorAnnotations;
			}
		}

		/**
		 * Get lint options.
		 *
		 * @return {CombinedLintOptions|false} Lint options.
		 */
		function getLintOptions() { // eslint-disable-line complexity
			/** @type {CombinedLintOptions | boolean} */
			let options = settings.codemirror?.lint ?? false;

			if ( ! options ) {
				return false;
			}

			if ( true === options ) {
				options = {};
			} else if ( _.isObject( options ) ) {
				options = $.extend( {}, options );
			}
			const linterOptions = /** @type {CombinedLintOptions} */ ( options );

			// Configure JSHint.
			if ( 'javascript' === settings.codemirror?.mode && settings.jshint ) {
				$.extend( linterOptions, settings.jshint );
			}

			// Configure CSSLint.
			if ( 'css' === settings.codemirror?.mode && settings.csslint ) {
				$.extend( linterOptions, settings.csslint );
			}

			// Configure HTMLHint.
			if ( 'htmlmixed' === settings.codemirror?.mode && settings.htmlhint ) {
				linterOptions.rules = $.extend( {}, settings.htmlhint );

				if ( settings.jshint && linterOptions.rules ) {
					linterOptions.rules.jshint = settings.jshint;
				}
				if ( settings.csslint && linterOptions.rules ) {
					linterOptions.rules.csslint = settings.csslint;
				}
			}

			// Wrap the onUpdateLinting CodeMirror event to route to onChangeLintingErrors and onUpdateErrorNotice.
			linterOptions.onUpdateLinting = (function( onUpdateLintingOverridden ) {
				/**
				 * @param {LintAnnotation[]} annotations - Annotations.
				 * @param {LintAnnotation[]} annotationsSorted - Sorted annotations.
				 * @param {CodeMirrorEditor} cm - Editor.
				 */
				return function( annotations, annotationsSorted, cm ) {
					const errorAnnotations = annotations.filter( function( annotation ) {
						return 'error' === annotation.severity;
					} );

					if ( onUpdateLintingOverridden ) {
						onUpdateLintingOverridden( annotations, annotationsSorted, cm );
					}

					// Skip if there are no changes to the errors.
					if ( _.isEqual( errorAnnotations, currentErrorAnnotations ) ) {
						return;
					}

					currentErrorAnnotations = errorAnnotations;

					if ( settings.onChangeLintingErrors ) {
						settings.onChangeLintingErrors( errorAnnotations, annotations, annotationsSorted, cm );
					}

					/*
					 * Update notifications when the editor is not focused to prevent error message
					 * from overwhelming the user during input, unless there are now no errors or there
					 * were previously errors shown. In these cases, update immediately so they can know
					 * that they fixed the errors.
					 */
					if ( ! cm.state.focused || 0 === currentErrorAnnotations.length || previouslyShownErrorAnnotations.length > 0 ) {
						updateErrorNotice( cm );
					}
				};
			})( linterOptions.onUpdateLinting );

			return linterOptions;
		}

		return {
			getLintOptions,
			/**
			 * @param {CodeMirrorEditor} editor - Editor instance.
			 * @return {void}
			 */
			init: function( editor ) {
				// Keep lint options populated.
				editor.on( 'optionChange', function( _cm, option ) {
					const gutterName = 'CodeMirror-lint-markers';
					if ( 'lint' !== ( /** @type {string} */ ( option ) ) ) {
						return;
					}
					const gutters = ( /** @type {string[]} */ ( editor.getOption( 'gutters' ) ) ) || [];
					const options = editor.getOption( 'lint' );
					if ( true === options ) {
						if ( ! _.contains( gutters, gutterName ) ) {
							editor.setOption( 'gutters', [ gutterName ].concat( gutters ) );
						}
						editor.setOption( 'lint', getLintOptions() ); // Expand to include linting options.
					} else if ( ! options ) {
						editor.setOption( 'gutters', _.without( gutters, gutterName ) );
					}

					// Force update on error notice to show or hide.
					if ( editor.getOption( 'lint' ) && editor.performLint ) {
						editor.performLint();
					} else {
						currentErrorAnnotations = [];
						updateErrorNotice( editor );
					}
				} );

				// Update error notice when leaving the editor.
				editor.on( 'blur', updateErrorNotice );

				// Work around hint selection with mouse causing focus to leave editor.
				editor.on( 'startCompletion', function() {
					editor.off( 'blur', updateErrorNotice );
				} );
				editor.on( 'endCompletion', function() {
					const editorRefocusWait = 500;
					editor.on( 'blur', updateErrorNotice );

					// Wait for editor to possibly get re-focused after selection.
					_.delay( function() {
						if ( ! editor.state.focused ) {
							updateErrorNotice( editor );
						}
					}, editorRefocusWait );
				} );

				/*
				 * Make sure setting validities are set if the user tries to click Publish
				 * while an autocomplete dropdown is still open. The Customizer will block
				 * saving when a setting has an error notifications on it. This is only
				 * necessary for mouse interactions because keyboards will have already
				 * blurred the field and cause onUpdateErrorNotice to have already been
				 * called.
				 */
				$( document.body ).on( 'mousedown', function( /** @type {JQuery.MouseDownEvent} */ event ) {
					if (
						editor.state.focused &&
						! editor.getWrapperElement().contains( event.target ) &&
						! event.target.classList.contains( 'CodeMirror-hint' )
					) {
						updateErrorNotice( editor );
					}
				} );
			},
			/**
			 * @param {CodeMirrorEditor} editor - Editor instance.
			 * @return {void}
			 */
			updateErrorNotice,
		};
	}

	/**
	 * Configure tabbing.
	 *
	 * @param {CodeMirrorEditor} codemirror - Editor.
	 * @param {CodeEditorSettings} settings - Code editor settings.
	 *
	 * @return {void}
	 */
	function configureTabbing( codemirror, settings ) {
		const $textarea = $( codemirror.getTextArea() );

		codemirror.on( 'blur', function() {
			$textarea.data( 'next-tab-blurs', false );
		});
		codemirror.on( 'keydown', function onKeydown( _editor, event ) {
			// Take note of the ESC keypress so that the next TAB can focus outside the editor.
			if ( 'Escape' === event.key ) {
				$textarea.data( 'next-tab-blurs', true );
				return;
			}

			// Short-circuit if tab key is not being pressed or the tab key press should move focus.
			if ( 'Tab' !== event.key || ! $textarea.data( 'next-tab-blurs' ) ) {
				return;
			}

			// Focus on previous or next focusable item.
			if ( event.shiftKey && settings.onTabPrevious ) {
				settings.onTabPrevious( codemirror, event );
			} else if ( ! event.shiftKey && settings.onTabNext ) {
				settings.onTabNext( codemirror, event );
			}

			// Reset tab state.
			$textarea.data( 'next-tab-blurs', false );

			// Prevent tab character from being added.
			event.preventDefault();
		});
	}

	/**
	 * @typedef {object} LintingController
	 * @property {() => CombinedLintOptions|false} getLintOptions - Get lint options.
	 * @property {(editor: CodeMirrorEditor) => void} init - Initialize.
	 * @property {(editor: import('codemirror').Editor) => void} updateErrorNotice - Update error notice.
	 */

	/**
	 * Initialize Code Editor (CodeMirror) for an existing textarea.
	 *
	 * @since 4.9.0
	 *
	 * @param {string|JQuery<HTMLElement>|HTMLElement} textarea - The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor.
	 * @param {CodeEditorSettings}    [settings] - Settings to override defaults.
	 *
	 * @return {CodeEditorInstance} Instance.
	 */
	wp.codeEditor.initialize = function initialize( textarea, settings ) {
		if ( document.readyState === 'loading' ) {
			console.warn( 'wp.codeEditor.initialize() ran too early. Invoke this function in a `DOMContentLoaded` event listener.' );
		}

		let $textarea;
		if ( 'string' === typeof textarea ) {
			$textarea = $( '#' + textarea );
		} else {
			$textarea = $( textarea );
		}

		/** @type {CodeEditorSettings} */
		const instanceSettings = $.extend( true, {}, wp.codeEditor.defaultSettings, settings );

		const lintingController = configureLinting( instanceSettings );
		if ( instanceSettings.codemirror ) {
			instanceSettings.codemirror.lint = lintingController.getLintOptions();
		}

		const codemirror = /** @type {CodeMirrorEditor} */ ( wp.CodeMirror.fromTextArea( $textarea[0], instanceSettings.codemirror ) );

		lintingController.init( codemirror );

		/** @type {CodeEditorInstance} */
		const instance = {
			settings: instanceSettings,
			codemirror,
			updateErrorNotice: function() {
				lintingController.updateErrorNotice( codemirror );
			},
		};

		if ( codemirror.showHint ) {
			codemirror.on( 'inputRead', function( _editor, change ) {
				// Only trigger autocompletion for typed input or IME composition.
				if ( ! change.origin || ( '+input' !== change.origin && ! change.origin.startsWith( '*compose' ) ) ) {
					return;
				}

				// Only trigger autocompletion for single-character inputs.
				// The text property is an array of strings, one for each line.
				// We check that there is only one line and that line has only one character.
				if ( 1 !== change.text.length || 1 !== change.text[0].length ) {
					return;
				}

				const char = change.text[0];
				const isAlphaKey = /^[a-zA-Z]$/.test( char );
				if ( codemirror.state.completionActive && isAlphaKey ) {
					return;
				}

				// Prevent autocompletion in string literals or comments.
				const token = /** @type {import('codemirror').Token & { state: CodeMirrorTokenState }} */ ( codemirror.getTokenAt( codemirror.getCursor() ) );
				if ( 'string' === token.type || 'comment' === token.type ) {
					return;
				}

				const innerMode = wp.CodeMirror.innerMode( codemirror.getMode(), token.state ).mode.name;
				const doc = codemirror.getDoc();
				const lineBeforeCursor = doc.getLine( doc.getCursor().line ).slice( 0, doc.getCursor().ch );
				let shouldAutocomplete = false;
				if ( 'html' === innerMode || 'xml' === innerMode ) {
					shouldAutocomplete = (
						'<' === char ||
						( '/' === char && 'tag' === token.type ) ||
						( isAlphaKey && 'tag' === token.type ) ||
						( isAlphaKey && 'attribute' === token.type ) ||
						( '=' === char && !! (
							token.state.htmlState?.tagName ||
							token.state.curState?.htmlState?.tagName
						) )
					);
				} else if ( 'css' === innerMode ) {
					shouldAutocomplete =
						isAlphaKey ||
						':' === char ||
						( ' ' === char && /:\s+$/.test( lineBeforeCursor ) );
				} else if ( 'javascript' === innerMode ) {
					shouldAutocomplete = isAlphaKey || '.' === char;
				} else if ( 'clike' === innerMode && 'php' === codemirror.options.mode ) {
					shouldAutocomplete = isAlphaKey && ( 'keyword' === token.type || 'variable' === token.type );
				}
				if ( shouldAutocomplete ) {
					codemirror.showHint( { completeSingle: false } );
				}
			} );
		}

		// Facilitate tabbing out of the editor.
		configureTabbing( codemirror, instanceSettings );

		return instance;
	};

})( jQuery, window.wp );

Zerion Mini Shell 1.0
Sarah Provancher – Jefferson County Republican Party https://louisvillegop.com Local Republican Party Fri, 20 Nov 2026 19:48:38 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 Election Night Victory Party! Nov. 3, 6-9pm https://louisvillegop.com/2026/11/02/election-night-victory-party-nov-3-6-9pm/ Mon, 02 Nov 2026 17:49:21 +0000 https://louisvillegop.com/?p=7215 All are Welcome! Free to Attend!

]]>
Non-Partisan GOP Endorsed Candidates https://louisvillegop.com/2026/11/02/non-partisan-gop-endorsed-candidates/ Mon, 02 Nov 2026 17:40:20 +0000 https://louisvillegop.com/?p=7212

]]>
Jefferson County Republican Party Condemns Morgan McGarvey’s Repeated Failures to Denounce Socialism https://louisvillegop.com/2026/09/04/jefferson-county-republican-party-condemns-morgan-mcgarveys-repeated-failures-to-denounce-socialism/ Fri, 04 Sep 2026 02:56:16 +0000 https://louisvillegop.com/?p=7145  

For the second time in less than a year, Morgan McGarvey voted against a straightforward resolution denouncing an ideology that has consistently resulted in oppression, economic devastation, and the erosion of individual liberties. By voting against HR 1490, McGarvey totally ignores the historic failures of socialist regimes, including the Soviet Union, Venezuela, and Cuba, which have only served to produce systemic poverty.

McGarvey’s vote on this common-sense measure does not reflect the core values of the people he was elected to represent in the 3rd Congressional District. Kentuckians value hard work, accountability, and the freedom to pursue opportunity and their chosen religion without authoritarian overreach. This is one more example of a congressman out of step with his constituents in Louisville, particularly with the tens of thousands of Cubans who escaped from the communist Castro regime.

We challenge Congressman McGarvey to a forum on socialism with his opponent, Maria Rodriguez, who fled Cuba as a young adult due to the religious persecution of her family. Although likely to continue voting with his far-left colleagues, he may learn something from the experience.

Don Fitzpatrick

Chair, Jefferson County Republican Party

 

]]>
Learn More About Lincoln Day Dinner Guest Speaker, Alina Fernández https://louisvillegop.com/2026/08/04/lincoln-day-dinner-guest-alina-fernandez/ Tue, 04 Aug 2026 17:39:09 +0000 https://louisvillegop.com/?p=7069

Who is Alina Fernandez?

Guest Speaker at JCRP 2026 Lincoln Day Dinner

Alina Fernández is a nationally prominent Cuban-born anti-communist activist. She is the daughter of Fidel Castro and niece of recently-indicted Raul Castro. With the aid of a disguise and forged identity papers, Alina defected from Cuba in 1993, eventually arriving in the Miami area. Since then, she has been an outspoken critic of Cuba’s destructive communist regime, sharing first-hand stories of what life is like in a country where organized oppression has directly contributed to economic depression and the humanitarian crisis now suffered by the Cuban people. Alina has been a strong advocate for the liberties denied Cuban citizens under the 60+ year reign of her father and his successors. She speaks reverently about the privileges that U.S. citizens enjoy and the importance of continually fighting to protect freedom and democracy.

JCRP is honored to welcome Alina as a featured speaker for our 2026 Lincoln Day Dinner. In stark contrast to the growing aspirations of socialists and communists across our Country, Alina’s message and those of our other speakers will celebrate the values of patriotism, freedom, and individual liberty.

]]>
Congratulations to Jeff. Cty’s Republican Primary Election Winners https://louisvillegop.com/2026/05/22/congratulations-to-jeff-ctys-republican-primary-election-winners/ Fri, 22 May 2026 03:30:03 +0000 https://louisvillegop.com/?p=6963

]]>
Primary Election Voting Information https://louisvillegop.com/2026/05/01/primary-election-voting-information/ Fri, 01 May 2026 15:13:08 +0000 https://louisvillegop.com/?p=6778 Important Links to Vote in This Year’s Primary

Where Can I Find a List of Republican Candidates in Jefferson County on This Year’s Ballot?

Republican Candidates in 2026 Elections – Jefferson County Republican Party

Where is My In-Person Voting Location? (May 19, 2026)

Where Do I Vote?

Where Can I Get an Absentee Ballot to Send by Mail or Drop Off? (due before May 5, 2026)

Welcome – Kentucky State Board of Elections

Where Can I Vote Early? – What is an Excused Reason for Voting Early? (May 6, May 7, May 8, May 11, May 12 and May 13, 2026)

In-Person Absentee Voting – Elections

Where Can I Vote Early? – What is a Non-Excused Reason (May 14 – May 16, 2026)

In-Person Absentee Voting – Elections

How Can I See What My Ballot Will Look Like? – Who Will Be on My Ballot?

My Ballot

How Does Non-Partisan Voting Affect Who I Can Vote For?

Q_and_A

How Do I Report a Suspected Election/Voting Irregularity?

Election Law Violations Hotline Updates – Kentucky Attorney General

How Can I Become a Poll Worker and Make $299?

Election Officer Information – Elections

Where Can I Register to Vote or Change My Voter Affiliation to Republican?

Welcome – Kentucky State Board of Elections

Where Can I Find Election Results?

Election Night Reporting

 

 

]]>
Louisville GOP Hosts First Statewide Kentucky U.S. Senate Debate https://louisvillegop.com/2026/04/21/louisville-gop-hosts-first-statewide-kentucky-u-s-senate-debate/ Tue, 21 Apr 2026 16:27:38 +0000 https://louisvillegop.com/?p=6644
JCRP Hosts First Statewide Republican U.S. Senate Debate

 The Jefferson County Republican Party (JCRP) hosted the first statewide Kentucky Republican U.S. Senate Debate on Monday, March 16 at 7pm. Candidates Andy Barr, Daniel Cameron and Nate Morris participated. The debate was moderated by WDRB Anchors Lindsey Allen and Gil Corsey, as well as WLEX Political Reporter Karolina Buczek.

The debate was live on stage in front of an audience of 400 guests and was televised statewide in Louisville on WDRB, in Lexington on WLEX and in Northern Kentucky on WCPO as well as streamed on WFIE in Owensboro and WBKO in Bowling Green.

Click here to watch a recording of the debate.

 

]]>
Louisville Republicans are closer than ever to gaining a majority on Louisville Metro Council https://louisvillegop.com/2026/02/24/louisville-republicans-are-closer-than-ever-to-gaining-a-majority-on-louisville-metro-council/ Tue, 24 Feb 2026 05:11:57 +0000 https://louisvillegop.com/?p=6555
Louisville Public Media | By Roberto Roldan
Published January 22, 2026 at 6:00 AM EST

Louisville Republicans are hoping to flip three more seats on Metro Council in this year’s elections. If successful, it would put Republicans squarely in the majority on the legislative body for the first time since the 2003 city-county merger.

Speaking to LPM News, Jefferson County Republican Party Chair Don Fitzpatrick said the party will target three seats currently held by Democrats they believe are vulnerable. Two are in the far East End of Louisville Metro and the other is in the South End, near Iroquois Park.

“We’re focused on three districts and protecting our incumbents in five others,” he said. “We understand, by the way, that that makes it pretty easy for folks on the other side to understand what we’re doing. We didn’t hide it before, we’re not going to hide it now.”

Fitzpatrick called the strategy “Protect 5, pick up 4,” a reference to their strategy in the last local elections in 2024, when Republicans protected four incumbents while flipping three seats in the South End.

Local Republicans have been building momentum in Metro Council races since 2022, when the party gained seats for the first time since merger. Republican council members currently represent 12 of 26 districts on the council, one fewer than the Democratic Majority Caucus.

This year, Republicans have set their sights on Districts 7, 17 and 21.

Covering parts of Graymoor-Devondale, St. Matthews and Indian Hills, among others, District 7 is currently represented by Council Member Paula McCraney. She was first elected in 2018 and served in the Democratic Majority Caucus leadership before becoming an Independent last year.

Republican Catherine “Cat” Timmerman, a public school teacher, has filed to run against McCraney. They will both advance to the General Election in November, since there are only two candidates.

In District 17, Democratic incumbent Markus Winkler is facing a reelection challenge from two candidates: Merideth Booth, a member of the Louisville Democratic Party Executive Committee, and Republican Nancy-Lynne Walters. The district covers parts of Anchorage, Middletown and Lyndon.

The race in District 21, which includes parts of Iroquois and Beechmont east to Okolona, is a crowded one. Savannah Hughes, Ben Spalding and Lonnie Joseph are challenging incumbent Democrat Betsy Ruhe. Joseph, the uncle of District 12 Council Member Jonathan “JJ” Joseph, is the lone Republican candidate in that race.

Even though Metro Council and the mayor’s races are officially nonpartisan this year — meaning candidates won’t have an “R” or a “D” next to their names on the ballot — candidates can still tell voters their party affiliation. They can also ask for a party’s endorsement.

Fitzpatrick said he believes there’s still an important role for these parties in local politics in Louisville. He said the Jefferson County Republican Party has put in a lot of effort to recruit strong candidates for Metro Council races and to craft a unified message focused on “law and order.”

“Public safety is just so important,” Fitzpatrick said. “We want to build successful communities, we want to build communities where there are more job opportunities, but it’s got to be safe.”

LPM News’ recent interview with Fitzpatrick, edited for length and clarity, is below:

RR: So two years ago, Republicans took the strategy of protecting the four seats that they had up for re-election and pushing to pick up three seats in the South End, and it worked. What is the strategy this year?

DF: Two years ago, it made sense for us to protect the four incumbent seats that we had, but we really decided to focus our energy on making sure that, number one, we had great candidates in those districts, and also that we really focused a lot of our energies, whether it’s getting people to walk, knock doors, etc.

That put us in a pretty good position on Metro council with 12 Republicans. I think the high point prior to that was 11 back when it was first formed. So, that was a good record. But this coming year, or I should say this year now that we’re into 2026, it is going to be “Five plus three’’”. We’re going to go after [Districts] 7, 17 and 21.

RR: It does seem like that’s building on the success that you’ve already had in the more suburban areas surrounding the urban core, right?

DF: That’s true. And look, it’s a nonpartisan race. We all understand that. But at the same time, really, the only thing that’s changed of significance is that on the ballot, the names are not going to be with an “R” or a “D” next to them.

RR: Given the nonpartisan nature of these elections, at least in terms of the information on the ballot, does that put more pressure on the Republican Party and the Democratic Party?

DF: It does in the sense that we’re going to have to help people understand.

Personally, I’m old-fashioned. Even if I’m hitting all Rs, I go down [the list of candidates.] But lots of people do just hit “All Democrats” or “All Republicans”.

We’re going to have to ensure that they understand that if they do that and they don’t look further down in the ballot and don’t see that, ‘Oh, gee, in my Metro Council district I need to vote,’ then perhaps there’s going to be folks that will just leave and miss the opportunity to vote for their council member.

RR: You mentioned that the Republican Party on Metro Council is at a high water mark. Why do you think that voters in Jefferson County, where registered Democrats outnumber Republicans, are increasingly choosing more conservative candidates for Metro Council?

DF: I think it’s a combination of things. Sometimes you use the term “common sense solutions,” and people think that’s rather trite, but I do think that there is something to be said. I think we feel that [the candidates we ran in 2022] brought some common sense solutions toward things like public safety, some of the initiatives in the South End in bringing businesses in and also just a focus on where the council does have an impact: public education, transportation and other areas.

RR: If Republicans do take over as the majority party in Metro Council, what differences will that make for residents?

DF: Well, I think, again, the focus is on spending money as intelligently as we can, making the right investments in the community, staying focused on things that really matter to folks. I’m a big believer that public safety needs to continue to be a, if not the, top priority. Because how can you bring businesses in if the person that is looking at putting a new restaurant or putting a small manufacturing company in a particular part of town, if they feel that things are just not safe there? it’s not going to happen. So, public safety has to continue to be number one.

Roberto Roldan is LPM’s City Politics and Government Reporter.
]]>
Louisville GOP Honors Sen. Mitch McConnell https://louisvillegop.com/2025/12/31/louisville-gop-honors-sen-mitch-mcconnell/ Wed, 31 Dec 2025 04:36:45 +0000 https://louisvillegop.com/?p=6448 JCRP was pleased to recognize the more than 50 years of service of Sen. Mitch McConnell to Louisville and the Commonwealth of Kentucky, as well as his service as Chairman of Jefferson County Republican Party in 1973-74.

The honorary event took place at the Sons of the American Revolution HQ in early December in downtown Louisville.

JCRP is so honored to have 50+ years of friendship with our former Chairman, Sen. Mitch McConnell.

]]>
Rep. Brett Guthrie to Speak at JCRP Lincoln Day Dinner https://louisvillegop.com/2025/07/18/rep-brett-guthrie-to-speak-at-jcrp-lincoln-day-dinner/ Fri, 18 Jul 2025 00:54:54 +0000 https://louisvillegop.com/?p=6350 Second Congressional District U.S. Rep Brett Guthrie has been confirmed as a speaker for the JCRP Lincoln Day Dinner on Wed., August 20. Rep. Guthrie will join Keynote Speaker, Riley Gaines, U.S. Senate Candidates from Kentucky, Rep. Andy Barr, Daniel Cameron and Nate Morris, as well as local Jefferson County leaders.

Rep. Guthrie is Chairman of the U.S. Energy & Commerce Committee. He has served in the U.S. House of Representatives since 2008 and was previously in the Kentucky Senate from 1999-2008.

Tickets are available now for the Jefferson County Republican Party’s annual Lincoln Day Dinner by visiting:

https://secure.winred.com/jefferson-county-republican-party/2025ldd

]]>