Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-19888

Deprecate addslashes_js

    XMLWordPrintable

Details

    • MOODLE_20_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE

    Description

      All our new code like $PAGE->requires->data_for_js and ->js_function_call automatically does json_encode on data, which is better than addslashes_js.

      A quiz grep finds about 50 references in HEAD. We need to

      1. Eliminate all calls in core.
      2. Move it to deprecatedlib.php and add debugging output.

      Attachments

        Issue Links

          Activity

            People

              moodle.com Moodle HQ
              timhunt Tim Hunt
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona), Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona), Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Dan Marsden, Matteo Scaramuccia, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: