WordPRess GSoC

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#289 closed task (fixed)

Redirect to corresponding code editor when opening a 'code' post in the post editor

Reported by: a.hoereth Owned by: a.hoereth
Milestone: 2013 Midterm (Beta) Priority: normal
Component: Code Revisions Keywords:


Posts of the custom post type for code should not be edited directly through the post editor.
Redirect the user to the corresponding code editor (theme or plugin) with the correct file opened up.

Change History (3)

#1 @aaroncampbell
5 years ago

My first thought on this was that a redirect wasn't needed. Just not having the UI should be enough, but then Alex explained the problem via chat:

The problem occurred when viewing the code revision in the revision viewer. The post title on the top of the page links to the post edit editor. This link is fine and desired, but it should bring you to the correct code editor.

We need to look into either a redirect or filtering that link.

#2 @a.hoereth
5 years ago

  • Owner set to a.hoereth
  • Resolution set to fixed
  • Status changed from new to closed

In 2033:

Fixes #289 and a "uncaught reference" JS error on edit screens.

#3 @a.hoereth
5 years ago

In 2035:

Fixes #289 and a "uncaught reference" JS error on edit screens. Fixed version of [2033].

Note: See TracTickets for help on using tickets.