Comments (5)
I have the latest version of WP on my own domain. My theme is Salient 7.0.1 from themeforest.net
I got three warnings on my Salient dashboard:
Redux Framework Warning
select2-css CDN unavailable. Some controls may not render properly. Please wait a few minutes, then try refreshing the page. Unable to load some remotely hosted scripts..
Redux Framework Warning
select2-js CDN unavailable. Some controls may not render properly. Please wait a few minutes, then try refreshing the page. Unable to load some remotely hosted scripts..
Redux Framework Warning
ace-editor-js CDN unavailable. Some controls may not render properly. Please wait a few minutes, then try refreshing the page. Unable to load some remotely hosted scripts.
I got this fatal eror message on my WP dashboard:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected '.', expecting ',' or ';' in /home/fabergla/public_html/markcorbettwilson.com/wp/wp-content/plugins/creativecommons-wordpress-plugin-2.1-beta/includes/class-creativecommons-button.php on line 9
from wp-plugin-creativecommons.
@simonemontrucchio This is likely to be due to the fact that you are running an outdated PHP version (< 5.4). The problem lies in the compact syntax for defining an array:
foreach (['license_url', 'attribution_url', 'source_work_url', 'extra_permissions_url'] as $field) {
which instead could be
foreach ( array( 'license_url', 'attribution_url', 'source_work_url', 'extra_permissions_url' ) as $field) {
As explained here :)
However, I don't see any reason why we should be using a syntax that is not backwards-compatible, since there is another that is. I have just submitted PR #56 fixing the issue :)
from wp-plugin-creativecommons.
May I suggest to define the array outside of the loop?
This is:
- more readable
- better performance (although I doubt you'll notice) due to the array being defined each foreach call.
Instead of:
foreach ( array( 'license_url', 'attribution_url', 'source_work_url', 'extra_permissions_url' ) as $field) {
I'd suggest:
$license_metadata = array( 'license_url', 'attribution_url', 'source_work_url', 'extra_permissions_url' );
foreach( $license_metadata as $field) {
from wp-plugin-creativecommons.
Totally! Just done that :)
from wp-plugin-creativecommons.
Issue fixed in PR #56.
from wp-plugin-creativecommons.
Related Issues (20)
- Verify for WordPress 6 HOT 3
- "Media & Text" blocks does not show CC labels properly
- Test adding `wordpress/env` for local development HOT 11
- Notice: wp_enqueue_script() was called incorrectly HOT 12
- Warning: getimagesize: failed to open stream HOT 18
- [RFC] deprecate `create-guten-block` scripts; use `@wordpress/scripts` instead HOT 4
- Composer Upgrade failed HOT 2
- [Feature] Setup baseline docker-compose.yml file for easier development
- [Feature] Expand docker-compose.yml file to include wpcli functionality HOT 1
- [Feature] Expand docker-compose.yml file to include composer and phpcs functionality HOT 2
- [Feature] Expand docker-compose.yml file to include database GUI application image (Adminer, phpMyAdmin)
- [Bug] Footer display option for site-wide license is flush to left viewport edge HOT 4
- [Bug] Media item meta options area will not preserve selected license Title in License URL, despite License URL updating correctly HOT 3
- Release/deploy v2022.07.1
- CC plugin admin fails to load with PHP 8
- Scope strategy of the migration from `create-guten-block` scripts to a `@wordpress/scripts` core setup
- Release/deploy v2022.09.1
- [Bug] CC logos do not show on images, when using the WPZoom theme Inspiro HOT 3
- [Feature] Test the plugin with the latest major releases of WordPress HOT 3
- [Feature] Add support for attribution on featured image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-plugin-creativecommons.