Compatibility of Photon with AngularJS
-
Hi, I am the developer of https://wordpress.org/plugins/crosswordsearch/. It seems that there is a compatibility problem with Photon, as experienced by one of my customers (https://wordpress.org/support/topic/color-icons-on-answer-words-are-broken has a link to an example).
The plugin uses AngularJS for a client-side app. Part of that is the dynamic generation of links to icon resources. One line in the app.php file looks like this:
<img ng-if="word.solved" title="{{localize(word.color)}}" ng-src="<?php echo CRW_PLUGIN_URL ?>images/bullet-{{word.color}}.png">
Photon rewrites this to
<img ng-if="word.solved" title="{{localize(word.color)}}" ng-src="http://i2.wp.com/toni-esl.com/quiz/wp-content/plugins/crosswordsearch/images/bullet-word.color.png?w=750" data-recalc-dims="1">
Essentially it is breaking because the curly braces are stripped out. I would say Photon is definitely in error to change a non-HTTML attribute.
As a short-time measure, is there a way to configure the module in a way to exclude certain files/folders from rewriting?
- The topic ‘Compatibility of Photon with AngularJS’ is closed to new replies.