In the previous work, LCgau-core-BOP, which includes the short-range interelectronic Gaussian attenuating Hartree−Fock (HF) exchange to the long-range HF exchange, showed high accuracy core-excitation energies from 1s orbitals of the second-row atoms (1s → π*, 1s → σ*, 1s → n*, and 1s → Rydberg), but underestimates the core-excitation energies from 1s orbitals of the third-row atoms. To improve this, we added one more Gaussian attenuating HF exchange to LCgau-core-BOP. We named it LC2gau-core-BOP, which achieves a mean absolute error (MAE) of 0.6 and 0.3 eV for core excitation energies of the second-and third-row atoms of the tested small molecules, respectively. We found that the inclusion of the short-range interelectronic HF exchange at a distance ranging from 0.2 to 0.6 a.u. contributes to the increase of performances on 1s orbital energy calculations of the second-row atoms, while the inclusion of more short-range interelectronic HF exchange at a distance ranging from 0 to 0.2 a.u. does to the increase of performance on 1s orbital energy calculations of the third-row atoms. It is notable that all of these improvements were accomplished using flexible Gaussian attenuating HF exchange inclusion. LC2gau-core-BOP shows deviations of less than 0.8 eV from experimental values for all of the core-excitation energies of the tested medium-size molecules consisting of thymine, oxazole, glycine, and dibenzothiophene sulfone. Moreover, by optimizing one parameter of the OP correlation functional, LC2gau-core-BOP provides atomization energies over the G3 test set with an accuracy comparable to that of B3LYP.