[wp-trac] [WordPress Trac] #24087: Missing double slash on Javascript snippet on wp-admin/includes/file.php

WordPress Trac noreply at wordpress.org
Mon Apr 15 10:26:19 UTC 2013


#24087: Missing double slash on Javascript snippet on wp-admin/includes/file.php
----------------------------+----------------------
 Reporter:  satollo         |       Owner:
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:
 Severity:  minor           |  Resolution:  invalid
 Keywords:                  |
----------------------------+----------------------
Description changed by SergeyBiryukov:

Old description:

> There is a minor (may be formal) error on javascript generated by wp-
> admin/includes/file.php: the last --> that closes the HTML comment should
> be preceded by the Javascript comment marker //.
>
> Stefano.
>
> Here the patch:
>
> # This patch file was generated by NetBeans IDE
> # It uses platform neutral UTF-8 encoding and \n newlines.
> --- Base (BASE)
> +++ Locally Modified (Based On LOCAL)
> @@ -977,7 +977,7 @@
>         });
>         jQuery('form input[value=""]:first').focus();
>  });
> --->
> +//-->
>  </script>
>  <form action="<?php echo esc_url( $form_post ) ?>" method="post">
>  <div class="wrap">

New description:

 There is a minor (may be formal) error on javascript generated by wp-
 admin/includes/file.php: the last --> that closes the HTML comment should
 be preceded by the Javascript comment marker //.

 Stefano.

 Here the patch:
 {{{
 # This patch file was generated by NetBeans IDE
 # It uses platform neutral UTF-8 encoding and \n newlines.
 --- Base (BASE)
 +++ Locally Modified (Based On LOCAL)
 @@ -977,7 +977,7 @@
         });
         jQuery('form input[value=""]:first').focus();
  });
 --->
 +//-->
  </script>
  <form action="<?php echo esc_url( $form_post ) ?>" method="post">
  <div class="wrap">
 }}}

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24087#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list