Title: Works and is usefull.
Last modified: April 29, 2020

---

# Works and is usefull.

 *  [Name](https://wordpress.org/support/users/e467gj6x/)
 * (@e467gj6x)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/works-does/)
 * Works. Solves a problem. I will keep it for now.
 * [ Text removed. I was complaining about an issue that finally proved to be caused
   by core wp files, not this plugin. This plugin is great.]
    -  This topic was modified 6 years, 3 months ago by [Name](https://wordpress.org/support/users/e467gj6x/).
    -  This topic was modified 6 years, 3 months ago by [Name](https://wordpress.org/support/users/e467gj6x/).
    -  This topic was modified 6 years, 3 months ago by [Name](https://wordpress.org/support/users/e467gj6x/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/works-does/#post-12747567)
 * Thank you for the review and feedback on the CSP.
 * Not exactly sure what inline javascript you are referred to. The only JS that
   the plugin loads is in the Widgets admin area–and this is being appended properly
   by enqueueing an external .js file.
 * Feel free to open a [support thread](https://wordpress.org/support/plugin/anual-archive/)
   here on WordPress or on [GitHub](https://github.com/baden03/Annual-Archive) and
   we will be happy to get that inline js issue sussed out!
    -  This reply was modified 6 years, 3 months ago by [twinpictures](https://wordpress.org/support/users/twinpictures/).
      Reason: added links to support channels
 *  Thread Starter [Name](https://wordpress.org/support/users/e467gj6x/)
 * (@e467gj6x)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/works-does/#post-12747687)
 * Because this “inline js” was the cause of an only average review (***), I will
   post the js here:
 * The action when I select a category or year from the dropdown list:
 * <script type=’text/javascript’>
    /* <![CDATA[ */ ( function() { var dropdown 
   = document.getElementById( ‘wp-block-categories-1’ ); function onCatChange() {
   if ( dropdown.options[ dropdown.selectedIndex ].value > 0 ) { location.href =“
   [https://luolaseura.fi/?cat=&#8221](https://luolaseura.fi/?cat=&#8221); + dropdown.
   options[ dropdown.selectedIndex ].value; } } dropdown.onchange = onCatChange;})();/*]]
   > */ </script>
 * I have now opened a support thread. Let’s see what causes this problem. But it’s
   clear that without allowing inline javascript the dropdown menus do nothing :/
   WordPress is a complicated environment, as I have noticed during the last ten
   years…
    -  This reply was modified 6 years, 3 months ago by [Name](https://wordpress.org/support/users/e467gj6x/).
    -  This reply was modified 6 years, 3 months ago by [Name](https://wordpress.org/support/users/e467gj6x/).
 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/works-does/#post-12749260)
 * Look forward to discovering where this is coming from, but I can assure you none
   of this code is found in our plugin. Are you sure there is not a filter being
   used by your theme or another plugin? Regardless, we’ll pick this up in the support
   forum in [this thread](https://wordpress.org/support/topic/annual-archive-seems-to-require-csp-script-src-unsafe-inline/).
 *  Thread Starter [Name](https://wordpress.org/support/users/e467gj6x/)
 * (@e467gj6x)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/works-does/#post-12753610)
 * Oops, sorry, that piece of code comes from WordPress core 🙁
    Not your fault.
   I will correct my original review.
 * That inline javascript that prevents proper use of CSP (and opens doors to XSS),
   comes from wp-includes/blocks/categories.php and from wp-includes/widgets/class-
   wp-widget-categories.php See: [https://core.trac.wordpress.org/ticket/32067](https://core.trac.wordpress.org/ticket/32067)
    -  This reply was modified 6 years, 3 months ago by [Name](https://wordpress.org/support/users/e467gj6x/).
    -  This reply was modified 6 years, 3 months ago by [Name](https://wordpress.org/support/users/e467gj6x/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Works and is usefull.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/anual-archive_8690a8.svg)
 * [Annual Archive](https://wordpress.org/plugins/anual-archive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anual-archive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anual-archive/)
 * [Active Topics](https://wordpress.org/support/plugin/anual-archive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anual-archive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anual-archive/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Name](https://wordpress.org/support/users/e467gj6x/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/works-does/#post-12753610)