Skip to content

Commit

Permalink
4.7.4.2 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbroes committed Nov 6, 2024
1 parent 3c6b23f commit e49951c
Show file tree
Hide file tree
Showing 9 changed files with 639 additions and 184 deletions.
2 changes: 1 addition & 1 deletion all_in_one_seo_pack.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: SEO for WordPress. Features like XML Sitemaps, SEO for custom post types, SEO for blogs, business sites, ecommerce sites, and much more. More than 100 million downloads since 2007.
* Author: All in One SEO Team
* Author URI: https://aioseo.com/
* Version: 4.7.4.1
* Version: 4.7.4.2
* Text Domain: all-in-one-seo-pack
* Domain Path: /languages
* License: GPL-3.0+
Expand Down
731 changes: 571 additions & 160 deletions languages/aioseo-lite.php

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@
"@wordpress/i18n": "5.2.0",
"animate-vanilla-js": "1.0.10",
"apexcharts": "3.50.0",
"caniuse-lite": "^1.0.30001658",
"caniuse-lite": "^1.0.30001677",
"clipboard": "2.0.11",
"codemirror": "6.0.1",
"element-plus": "2.7.6",
"emoji-mart": "5.6.0",
"he": "^1.2.0",
"libphonenumber-js": "^1.11.4",
"libphonenumber-js": "^1.11.13",
"lodash-es": "4.17.21",
"lottie-web": "5.12.2",
"luxon": "3.4.4",
"maz-ui": "3.44.3",
"npm-check-updates": "^16.14.20",
"pinia": "^2.1.7",
"pinia": "^2.2.6",
"popper.js": "1.15.0",
"quill": "2.0.2",
"superagent": "9.0.2",
Expand All @@ -70,34 +70,34 @@
},
"devDependencies": {
"@rollup/plugin-replace": "^5.0.7",
"@rollup/pluginutils": "^5.1.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-vue": "^5.0.5",
"@rollup/pluginutils": "^5.1.3",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/eslint-config-standard": "^8.0.1",
"classnames": "^2.5.1",
"dotenv": "^16.4.5",
"dotenv-cli": "^7.4.2",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.27.0",
"eslint": "^8.57.1",
"eslint-plugin-vue": "^9.30.0",
"gettext-extractor": "^3.8.0",
"htm": "3.1.1",
"plural-forms": "^0.5.5",
"pofile": "^1.1.4",
"postcss": "^8.4.39",
"postcss-rtlcss": "^5.3.0",
"postcss": "^8.4.47",
"postcss-rtlcss": "^5.5.0",
"replace-in-files-cli": "^3.0.0",
"rollup-plugin-delete": "^2.0.0",
"sass": "^1.77.6",
"rollup-plugin-delete": "^2.1.0",
"sass": "^1.80.6",
"source-map-support": "^0.5.21",
"unplugin-element-plus": "^0.8.0",
"url": "^0.11.3",
"vite": "^5.4.7",
"url": "^0.11.4",
"vite": "^5.4.10",
"vite-plugin-copy": "^0.1.6",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-live-reload": "^3.0.3"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.18.1"
"@rollup/rollup-linux-x64-gnu": "^4.24.4"
},
"repository": {
"type": "git",
Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ AIOSEO® is a registered trademark of Semper Plugins LLC. When writing about

== Changelog ==

**New in Version 4.7.4.2**

* Updated: Compatibility with WordPress 6.7.
* Fixed: AIOSEO metabox or setting pages sometimes not loading because WAFs or web server block JavaScript files from being loaded due to false-positives.

**New in Version 4.7.4.1**

* New: Writing Assistant + SEOBoost: Elevate Your Content Strategy! Integrate seamlessly with SEOBoost via AIOSEO to supercharge your WordPress content. Harness the power of AI to optimize your content, drive organic traffic, and outrank competitors.
Expand Down
1 change: 1 addition & 0 deletions src/react/link-format/block-old/components/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class Edit extends Component {
activeAttributes={ activeAttributes }
value={ value }
onChange={ onChange }
contentRef={ this.props.contentRef }
/>

</Toolbar>
Expand Down
22 changes: 20 additions & 2 deletions src/react/link-format/block/assets/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
padding: 0;
}

.block-editor-url-input__input {
input.block-editor-url-input__input,
/* WordPress 6.7 */
input.components-input-control__input {
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
box-shadow: 0 0 0 transparent;
transition: box-shadow .1s linear;
Expand All @@ -55,11 +57,27 @@

&:focus {
border-color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
box-shadow: none;
outline: 2px solid transparent;
}
}

/* WordPress 6.7 */
input.components-input-control__input {
margin: 16px 16px 8px 16px;
}

/* WordPress 6.7 */
.components-input-control__backdrop {
border: none;
box-shadow: none;

&:focus {
border: none;
box-shadow: none;
}
}

.block-editor-link-control__search-actions {
top: 12px;
right: 10px;
Expand Down
5 changes: 4 additions & 1 deletion src/react/link-format/block/formats/link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
slice,
isCollapsed
} from '@wordpress/rich-text'

import { isURL, isEmail } from '@wordpress/url'
import {
RichTextToolbarButton,
Expand Down Expand Up @@ -112,7 +113,8 @@ export const link = {
isActive,
activeAttributes,
value,
onChange
onChange,
contentRef
} = this.props

return (
Expand Down Expand Up @@ -158,6 +160,7 @@ export const link = {
activeAttributes={ activeAttributes }
value={ value }
onChange={ onChange }
contentRef={ contentRef }
/>
) }
</Fragment>
Expand Down
25 changes: 21 additions & 4 deletions src/react/link-format/block/formats/link/inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import { useMemo, useState } from '@wordpress/element'
import { __ } from '@wordpress/i18n'
import { withSpokenMessages, Popover } from '@wordpress/components'
import { prependHTTP } from '@wordpress/url'
import { create, insert, isCollapsed, applyFormat } from '@wordpress/rich-text'
import { create, insert, isCollapsed, applyFormat, useAnchor } from '@wordpress/rich-text'
import { versionCompare } from '../../../../../vue/utils/helpers'

/**
* Internal dependencies
*/
import { LinkControl } from '../../components/index'
import { createLinkFormat, isValidHref } from './utils'
import { link as linkSettings } from './index'

function InlineLinkUI ({
isActive,
Expand All @@ -26,7 +27,8 @@ function InlineLinkUI ({
value,
onChange,
speak,
stopAddingLink
stopAddingLink,
contentRef
}) {
/**
* A unique key is generated when switching between editing and not editing
Expand Down Expand Up @@ -57,6 +59,14 @@ function InlineLinkUI ({
// Set the selected text from the value string.
const selectedText = value.text.substring(value.start, value.end)

const anchor = useAnchor( {
editableContentElement: contentRef.current,
settings: {
...linkSettings,
isActive,
},
} )

const anchorRef = useMemo(() => {
const selection = window.getSelection()

Expand Down Expand Up @@ -170,11 +180,18 @@ function InlineLinkUI ({
}
}

let anchorValue = undefined
if ( versionCompare(window.aioseo.wpVersion, '6.1', '>=') ) {
anchorValue = anchorRef
}
if ( versionCompare(window.aioseo.wpVersion, '6.6', '>=') ) {
anchorValue = anchor
}

return (
<Popover
key={ mountingKey }
anchor={ versionCompare(window.aioseo.wpVersion, '6.1', '>=') ? anchorRef : undefined }
anchorRef={ versionCompare(window.aioseo.wpVersion, '6.1', '<') ? anchorRef : undefined }
anchor={ anchorValue }
focusOnMount={ addingLink ? 'firstElement' : false }
onClose={ stopAddingLink }
>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default ({ mode }) => {
rollupOptions : {
input : getInputs(version),
output : {
hashCharacters : 'base36',
hashCharacters : 'hex',
dir : `dist/${version}/assets/`,
assetFileNames : assetInfo => {
const images = [
Expand Down

0 comments on commit e49951c

Please sign in to comment.